Basic Linux commands

From Oxxus Wiki

Jump to: navigation, search

Basic Linux commands are explained so you can know your way around the box.

uptime - shows you how long the server has been active and server load at the current moment, as well as the average load during the longer period.

[root@test ~]# uptime
 01:40:36 up 3 days,  1:46,  1 user,  load average: 0.08, 0.02, 0.01

who - will give you list of users and their hostnames who are logged in on the server

[root@test ~]# who
root     pts/0        2011-04-18 01:40 (

w - is basically a combination of who, uptime and current process user is running

[root@test ~]# w
 01:42:49 up 3 days,  1:48,  1 user,  load average: 0.01, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0 01:40    0.00s  0.02s  0.00s w
Contact About Us Support Network Servers Java Hosting Order Now! Dedicated Servers VPS Hosting Tomcat Hosting Java Hosting Money Back Guarantee Privacy Policy Terms of 
Service Contact About Us Servers Networks Support Domain Names SSL Certificates Java Wiki Tutorials E-learning