Next »
« Previous

Basic Linux Commands


 

Basic Linux command lines along with short descriptions:

  1. ls - Lists directory contents.
  2. cd - Changes the current directory.
  3. pwd - Prints the current working directory.
  4. mkdir - Creates a new directory.
  5. rmdir - Removes an empty directory.
  6. rm - Removes files or directories.
  7. cp - Copies files or directories.
  8. mv - Moves or renames files or directories.
  9. touch - Creates a new empty file.
  10. cat - Concatenates and displays file contents.
  11. echo - Outputs text to the screen or a file.
  12. man - Displays the manual for a command.
  13. chmod - Changes file permissions.
  14. chown - Changes file ownership.
  15. ps - Displays active processes.
  16. kill - Terminates a process by its ID.
  17. top - Displays real-time system processes.
  18. df - Shows disk space usage.
  19. du - Estimates file and directory space usage.
  20. free - Shows memory usage.
  21. ifconfig - Configures network interfaces (deprecated; use ip).
  22. ip - Displays/manages IP addresses and routes.
  23. ping - Tests network connectivity to a host.
  24. wget - Downloads files from the web.
  25. curl - Transfers data from or to a server.
  26. nano - Opens a simple text editor.
  27. vim - Opens the Vim text editor.
  28. grep - Searches for patterns in files.
  29. find - Searches for files in a directory.
  30. locate - Quickly finds files by name.
  31. tar - Archives multiple files into one.
  32. zip - Compresses files into a ZIP archive.
  33. unzip - Extracts files from a ZIP archive.
  34. history - Displays the command history.
  35. clear - Clears the terminal screen.
  36. ln - Creates links between files (hard or symbolic).
  37. alias - Creates shortcuts for commands.
  38. uname - Shows system information.
  39. shutdown - Powers off the machine.
  40. reboot - Restarts the machine.
  41. whoami - Displays the current logged-in username.
  42. sudo - Runs commands with root privileges.
  43. apt-get - Installs, upgrades, or removes packages (Debian-based systems).
  44. yum - Installs, upgrades, or removes packages (RHEL/CentOS).
  45. dpkg - Package manager for Debian-based distributions.
  46. rpm - Package manager for Red Hat-based distributions.
  47. mount - Mounts filesystems.
  48. umount - Unmounts filesystems.
  49. scp - Securely copies files between hosts.
  50. ssh - Securely connects to remote hosts.
  51. chmod - Modifies file or directory permissions.
  52. passwd - Changes the user’s password.

This list covers fundamental commands to help with basic navigation, file manipulation, and system management on Linux.

 


Attachments#
No files