What are some common Linux commands?

There are many commonly used commands in Linux, and the following are some of the most common ones:

  1. List the files and directories in the current directory.
  2. cd: Change to the current working directory
  3. pwd: displays the path of the current working directory.
  4. Create a directory using mkdir.
  5. rm: delete files or directories
  6. cp: Copy file or directory
  7. mv: move files or directories
  8. Touch command is used to create an empty file or modify the timestamp of a file.
  9. cat: view the contents of a file.
  10. View the file content page by page.
  11. grep: search for specified string in a file
  12. Search for files or directories in the specified directory.
  13. Change the permissions of a file or directory.
  14. chown: change the owner of a file or directory
  15. chgrp: Change the group ownership of a file or directory.
  16. tar: compressing and decompressing files
  17. gzip: compressing files
  18. unzip: extract files
  19. top: display system resource usage information.
  20. Please check process information.
  21. terminate a process
  22. Ifconfig: displays and configures network interface information.
  23. ping: check network connectivity
  24. ssh: remotely log in to another computer.
  25. SCP is used to copy files between a local and remote computer.
  26. “Switch user”
  27. Run the command with superuser privileges using sudo.
  28. apt-get allows you to install, upgrade, or remove software packages on Debian or Ubuntu systems.
  29. yum: Install, upgrade, or remove software packages on CentOS or Red Hat systems.

These are just some commonly used commands in Linux systems, there are many other powerful commands that can be further learned and used as needed.

bannerAds