Useful Linux Commands

Certainly! Here’s a list of 20 commonly used Linux/Bash commands along with a brief description of their abilities:

  1. ls: List directory contents.
    • Lists files and directories in the current directory.
  2. cd: Change directory.
    • Moves you to a different directory.
  3. pwd: Print working directory.
    • Displays the current directory’s path.
  4. mkdir: Make directory.
    • Creates a new directory.
  5. rm: Remove. (may need -rf tag)
    • Deletes files or directories.
  6. cp: Copy.
    • Copies files or directories from one location to another.
  7. mv: Move.
    • Moves or renames files or directories.
  8. touch: Touch.
    • Edits a file’s timestamp
  9. echo: Print message.
    • Outputs text to the terminal.
  10. cat: Concatenate and display.
    • Displays the content of a file.
  11. grep: Global regular expression print.
    • Searches for a specific text pattern in files.
  12. ps: Process status.
    • Lists running processes.
  13. kill: Terminate a process.
    • Sends a signal to terminate a process.
  14. chmod: Change file mode/permissions.
    • Changes the access permissions of files.
  15. chown: Change file owner.
    • Changes the owner of files.
  16. df: Disk free.
    • Displays information about disk space usage.
  17. du: Disk usage.
    • Shows the sizes of files and directories.
  18. top: Monitor system activity.
    • Displays real-time system resource usage.
  19. wget: Web get.
    • Downloads files from the internet using URLs.
  20. ssh: Secure shell.
    • Establishes secure shell connections to remote servers.

Remember, these descriptions are just a starting point. Each command has various options and can be used in more complex ways. To learn more about each command, you can use the man command followed by the command name (e.g., man ls) to access the manual pages and learn about all available options and usage examples.