This is a mirror of official site: http://jasper-net.blogspot.com/

Linux: 25+ Ways to Get System Information

| Wednesday, December 15, 2010
There are a whole bunch of Linux commands to various things on our PC. Normally, we use only a handful of commands without knowing that there are many to be discovered, yet useful. Here’s a comprehensive list of Linux commands that you can use to get system information ranging from printing the current working directory to dumping kernel messages to avail many useful information.

How to run these commands?
All you have to do is, just open up a terminal and enter these commands. In order to open up a terminal, you can either go to Applications→Accessories→Terminal or you can simply press Alt+F2 and type gnome-terminal.

About the Scope
Well, this article is intended for those who love using Linux with experience levels of newbie and average. Not for the so called “Advanced Users”. Otherwise we’ll have to make a never-ending list of commands.

The Command List

pwd
Prints the current working directory (Print Working Directory)

hostname
Print the name of the local host (the machine on which you are working). If you want to change the name of the machine, Use netconf (as root).

id username
Print user id (uid) and his/her group id (gid), effective id (if different than the real id) and the supplementary groups.

whoami
Prints your login name.

date
Print or change the operating system date and time. If you want to change the date and time to 2010-12-31 23:57 using this command:

date 123123572010
To set the hardware (BIOS) clock from the system (Linux) clock, use the command (as root) setclock

who
Determine the users logged on the machine.

rwho -a
(remote who) Determine all users logged on your network. The rwho service must be enabled for this command to run. If it isn’t, install “rwho”.

Read more: Tech Hamlet

Posted via email from .NET Info

0 comments: