Terminal is absolutely important for every programmer. We have to be tremendously familiar with it. Here is the list of foremost keywords for using the terminal.
pwd
The pwd command allows you to know in which directory you’re located (pwd stands for “print working directory”).
cd
It stands for change directory.
- To navigate into the root directory, use “cd /”
- To navigate to your home directory, use “cd” or “cd ~”
- To navigate up one directory level, use “cd ..”
- To navigate to the previous directory (or back), use “cd -“
- To navigate through multiple levels of directory at once, specify the full directory path that you want to go to. For example, use, “cd /var/www” to go directly to the /www subdirectory of /var/. As another example, “cd ~/Desktop” will move you to the Desktop subdirectory inside your home directory.
cp
cp: The cp command will make a copy of a file for you. Example: “cp file foo” will make an exact copy of “file” and name it “foo”, but the file “file” will still be there. If you are copying a directory, you must use “cp -r directory foo” (copy recursively). (To understand what “recursively” means, think of it this way: to copy the directory and all its files and subdirectories and all their files and subdirectories of the subdirectories and all their files, and on and on, “recursively”)
rm
Use this command to remove or delete a file in your directory.
rmdir
The rmdir command will delete an empty directory. To delete a directory and all of its contents recursively, use rm -r instead.
mkdir
mkdir: The mkdir command will allow you to create directories. Example: “mkdir music” will create a directory called “music”.
Reference: https://help.ubuntu.com/community/UsingTheTerminal