Basic Shell Commands

list of basic shell commands commonly used in Unix-like operating systems:

  1. cd: Change directory.
  2. ls: List directory contents.
  3. pwd: Print working directory.
  4. mkdir: Create a new directory.
  5. touch: Create a new empty file or update the timestamp of an existing file.
  6. cp: Copy files and directories.
  7. mv: Move or rename files and directories.
  8. rm: Remove files and directories.
  9. cat: Concatenate and display the contents of files.
  10. more or less: View file contents one page at a time.
  11. head: Display the first lines of a file.
  12. tail: Display the last lines of a file.
  13. grep: Search for patterns in files.
  14. find: Search for files and directories based on various criteria.
  15. chmod: Change file permissions.
  16. chown: Change file ownership.
  17. chgrp: Change group ownership of a file.
  18. echo: Display a line of text or the value of a variable.
  19. man: Display the manual page of a command.
  20. history: Display a list of previously executed commands.
  21. ssh: Secure Shell – connect to a remote server securely.
  22. scp: Securely copy files between local and remote systems.
  23. wget: Download files from the web.
  24. tar: Create or extract tar archives.
  25. gzip or gunzip: Compress or decompress files using gzip.
  26. zip or unzip: Create or extract zip archives.
  27. ping: Send ICMP echo requests to a network host.
  28. ifconfig or ip: Configure network interfaces.
  29. ps: Display information about running processes.
  30. kill: Terminate processes by their process ID.

 

You can find more information about each command by using the man command followed by the command name, e.g., man ls for the manual page of the ls command.


Posted

in

by

Tags: