Day - 8 of DevOps

Day - 8 of DevOps

Linux System Administration Commands - Part 2

  1. compgen -c:

    • Lists all commands available on the system.

  2. compgen -c | wc -l:

    • Counts the total number of commands on the system.

  3. man / --help:

    • Displays the manual page or usage information for a command.

  4. man -k edit or man -k edit -- edit related command:

    • Searches the manual pages for a keyword, particularly related to editing.

  5. which:

    • Shows the location of an executable file associated with a command.

  6. history :

    • Displays command history or allows searching through it.

  7. date:

    • Display Date & Time.

  8. alias:

    • Creates shortcuts or alternate names for commands.

  9. top:

    provides a real-time, dynamic overview of the system's resource usage, including information about CPU usage, memory usage, processes, and more. When you run the top command, it displays a continuously updated list of processes, sorted by various criteria.