Jul 21, 2014

Linux Exe-01

1.     Log on a Linux machine or connect to one from a Windows machine (e.g. click on the Exceed icon and then use putty to connect to the server kiwi. Enter your login (user name) and password at relevant prompts.
2.     Enter these commands at the UNIX prompt, and try to interpret the output. Ask questions and don't be afraid to experiment (as a normal user you cannot do much harm):
o    echo hello worldhttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    passwdhttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    datehttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    hostnamehttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    archhttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    uname -ahttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    dmesg | morehttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif(you may need to press q to quit)
o    uptimehttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    who am ihttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    whohttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    idhttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    lasthttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    fingerhttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    whttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    tophttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif (you may need to press q to quit)
o    echo $SHELLhttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    echo {con,pre}{sent,fer}{s,ed}http://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    man "automatic door"http://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    man lshttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif (you may need to press q to quit)
o    man whohttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif (you may need to press q to quit)
o    who can tell me why i got divorcedhttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    losthttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    clearhttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    cal 2000http://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    cal 9 1752http://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif(do you notice anything unusual?)
o    bc -lhttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif(type quithttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif or press Ctrl-d to quit)
o    echo 5+4 | bc -lhttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    yes pleasehttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif(you may need to press Ctrl-c to quit)
o    time sleep 5http://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif
o    historyhttp://www.doc.ic.ac.uk/~wjk/UnixIntro/enter.gif


No comments:

Post a Comment

Than 'Q'