When the file is not useful anymore you may remove it via rm command. Unlike to GUI (Graphical User Interface) Linux terminal don’t have a trash to restore the content, the file is killed and will never be back.
Other Options: -f, –force ignore nonexistent files, never prompt -i prompt before every removal -I prompt [...]
This takes you to home directory from any directory. Just type cd ~ or just cd
You can change the current directory with the cd command (Change Directory). Example: cd /home (this will take you to home directory
Pwd command is used for print the name of present working directory in Linux terminal sangkrit@linux:~$ pwd /home/sangkrit
Lists all files in a directory, including the hidden ones: ls -a (-a, do not hide entries starting with .) Finds out all processes that are currently running: ps -f (-f does full-format listing.) Killing all processes: killall Lists contents of a directory including all of its subdirectories, providing full details and sorted by modification [...]
–help option gives a short description about using any command when typed in the terminal followed by the particular command in which you need help. Following example shows the use of rmdir command.
rmdir –help (press enter)
Usage: rmdir [OPTION]… DIRECTORY…
Remove the DIRECTORY(ies), if they are empty. [...]
Addition to man pages, Info pages are also helpful for any command. You can read any info page by using info command. They contain recent information for and are easier to use. Some of the man pages refer to info pages. For example if you need info of ‘info’ command then just type: info info [...]
Man (Manual) pages are overwhelming source of documentation. You can read the manual of any command by typing man followed by the command name in the terminal followed by ‘Enter’ key on your keyboard, a very structured manual will be visible in your terminal. As shown below which is the manual of ls command. Input: [...]