sangkrit

Linux: Removing Files

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 [...]

Linux: Moving To Parent Directory

Linux: Moving To Home Directory

This takes you to home directory from any directory. Just type cd ~ or just cd

Linux: Changing Current Working Directory

You can change the current directory with the cd command (Change Directory). Example: cd /home (this will take you to home directory

Linux: What is the use of PWD command in Linux

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…

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 [...]

The –help Option in Linux

–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. [...]

Info Command & Pages

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) Command and Documentation

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: [...]

Page 1 of 212