Basic Commands of Linux

1. mkdir

  • -p   :  Creates parent directory as needed
  • -v   :  Displays messages when directories are created

2. cd

  • Changes the current directory to the Specified directory.

3. rmdir

  • Removes complete empty directory Structures
  • -p  :  Removes empty parent directory
  • -v  :  Displays message when directories are removed

4. stat

  •   Displaying File and Directory Statistics. It is also used to Display statistical information

5. touch

  • This command create an empty byte file

6. ls

  • List the content of the Specified Directory
  • – L : List all files & Directories in Long Format

7. pwd

  • This command is used for prints current working Directory

8. rm

  •   This command is used for Removes the specified files & Directories from the system
  • -R or -r : Recursively removes directory and Content inside it
  • -i  : This option asks for confirmation before deleting
  • -f  : Forcibly removes files and directories
  • -v : This option display the message verbosely

9. cp

  •   This command is used for copies the Specified files and Directories from one path to another. By default, without Using any option, you can copy only files.
  • -i  :  This option ask for confirmation before deleting
  • -f  :  Forcibly copies files & Directories
  • -v :  This option display the message verbosely

10. mv

  • This command Moves files and Directories From one path to Another.
  • -i  :  This option ask for confirmation before deleting
  • -f  :  Forcibly copies files & Directories
  • -v :  This option display the message verbosely

11. cat

  • This command is used to display the content of existing file

12. dir

  • Display the information of currently logged in users.

13. who

  • It is used to List the contents of a directory

14. whoami

  • Displays the information about Yourself.

15. users

  • This is used for Display the names of the currently logged in 

16. history

  • Display whatever you executed the command on the system.

17. help

  • This command provides the list of all options supported by  The specified command.

18. uname

  • This command Display the system information
(Visited 291 times, 1 visits today)

Leave a comment

Your email address will not be published. Required fields are marked *