Some Commands To Get System Information In Linux

If you want information about your system on Linux, then these commands will help a lot

  1. pwd

    This command is short for 'print working directory', which is exactly what it does.

  2. hostname

    The machine that is currently being worked on is known as the local host. The command 'netconf' can be used to change the name of the local host and 'hostname' is used to print the local host's name.

  3. whoami

    As the name suggests, this command prints the user's login name.

  4. id username

    Unlike the above command, this one prints the user id of the user along with his group id, effective id and all the supplementary groups that are involved.

  5. date

    This command can be used for both printing and changing the date and time of the operating system.

  6. time

    The amount of time that a particular process is allowed to take can be changed using this command. It's different from the date command.

  7. who

    This command tells the user who all are logged into the machine.

  8. rwho -a

    This is the same as the above, but it tells you the users that are logged into the network. In order for this to run, the rwho service has to be enabled.

  9. finger user_name

    This command gives the system information of a particular user.

  10. last

    This one gives a list of users that were last logged in to the system that you are using.

  11. history | more

    As the name suggests, the history command shows the previous commands that had been executed on the account that you are on. The | more is used to make the display stop whenever the screen is full.

  12. uptime

    This command gives you the time elapsed after the last reboot.

  13. ps

    The print status command lists the processes that are being run on the system by the user.

  14. ps axu | more

    This lists all the processes that are running.

  15. top

    This command keeps on listing the processes that are running currently.

  16. uname -a

    This command stands for Unix name with option 'all'. It displays all the information about your local server.

  17. free

    This gives information about available memory, which is displayed in kilo bytes.

  18. df -h

    This one gives information about the file systems in a form that is understandable outside the machine.

  19. du / -bh | more

    This command starts at the root level and prints the disk usage information for each subdirectory available.

  20. cat /proc/cpuinfo

    There is a file called cpuinfo and this command shows the content in it.

  21. cat /proc/version

    This command will tell you the Linux version that you are using and then some other information as well.

  22. cat /proc/filesystems

    This command is responsible for showing the type of file systems, which are being used currently.

  23. cat /etc/printcap

    This command can be used to see the printer setup.

  24. lsmod

    This command should be used when you are a non-root user for the system. It shows the Kernel modules.


Popular posts from this blog