Basic Commands Worked On SOLARIS
Basic Commands Worked On SOLARIS
• passwd
• date
• hostname
• arch
• uname -a
• dmesg | more (you may need to press q to quit)
• uptime
• who am i
• who
• id
• last
• finger
• w
• top (you may need to press q to quit). prstat on Solaris.
• echo $SHELL
• echo {con,pre}{sent,fer}{s,ed}
• man "automatic door"
• man ls (you may need to press q to quit)
• man who (you may need to press q to quit)
• who can tell me why i am created
• lost
• clear
• cal 2000
• cal 9 1752 (do you notice anything unusual?)
• bc -l (type quit or press Ctrl-d to quit)
• echo 5+4 | bc -l
• yes please (you may need to press Ctrl-c to quit)
• time sleep 5
• history
[root@localhost ~]# uptime //Tells how long the system has been running.
16:22:08 up 9:00, 2 users, load average: 0.23, 0.09, 0.02
[root@localhost ~]# w //Show who is logged on and what they are doing.
16:36:39 up 9:15, 3 users, load average: 0.00, 0.02, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root :0 - 07:24 ?xdm? 3:20 0.29s /usr/bin/gnome-session
root pts/1 :0.0 15:55 0.00s 0.03s 0.00s w
root pts/2 :0.0 16:28 50.00s 0.03s 0.00s man finger
[root@localhost ~]# echo $SHELL //echo - display a line of text ,here,displays the shell
/bin/bash
real 0m5.003s
user 0m0.001s
sys 0m0.001s