+88 019 7626 7489

Useful commands to get information about your system on Linux…!

Posted by Khairul Islam in Linux | 1 comments

This command is short for ‘print working directory’, which is exactly what it does.
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.
As the name suggests, this command prints the user’s login name.
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.

This command can be used for both printing and changing the date and time of the operating system.
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.
This command tells the user who all are logged into the machine.
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.
finger user_name
This command gives the system information of a particular user.
This one gives a list of users that were last logged in to the system that you are using.
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.
This command gives you the time elapsed after the last reboot.
The print status command lists the processes that are being run on the system by the user.
ps axu | more
This lists all the processes that are running.
This command keeps on listing the processes that are running currently.
uname -a
This command stands for Unix name with option ‘all’. It displays all the information about your local server.
This gives information about available memory, which is displayed in kilo bytes.
df -h
This one gives information about the file systems in a form that is understandable outside the machine.
du / -bh | more
This command starts at the root level and prints the disk usage information for each subdirectory available.
cat /proc/cpuinfo
There is a file called cpuinfo and this command shows the content
in it.
cat /proc/version
This command will tell you the Linux version that you are using and then some other information as well.
cat /proc/filesystems
This command is responsible for showing the type of file systems, which are being used currently.
cat /etc/printcap
This command can be used to see the printer setup.
This command should be used when you are a non-root user for the system. It shows the Kernel modules.

Comments (1)
  1. Dragon says:

    Great thignink! That really breaks the mold!

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>