Uploaded by 719.inbox

EXPERIENCE LINUX-1st session

advertisement
LAB SESSION 1
EXPERIENCE LINUX
Log on to the Linux computer using your account and password.
Make use of the following commands and give a description for it by yourself.
pwd ................................................................................................................
ls ...................................................................................................................
ls –a ................................................................................................................
ls -l
...............................................................................................................
ls -aF .............................................................................................................
mkdir Pen........................................................................................................
mkdir Pen/Tom/Dick .......................................................................................
mkdir -p Pen/Tom/Dick....................................................................................
mkdir -p x/y
rmdir x/y
........................................................................................................................
mkdir -p x/y
rmdir -p x/y
.........................................................................................................................
cd Pen/Tom/Dick.............................................................................................
vi Pencil.txt ......................................................................................................
good afternoon...have a great day. (Type the given text, save
and quite the editor by using escape : w q)
cd..
................................................................................................................
cd /home/Pen..................................................................................................
ls p* ................................................................................................................
du /home .......................................................................................................
Prepared by Pravicha M.T
LAB SESSION 1
df
................................................................................................................
df -h..................................................................................................................
du ....................................................................................................................
du -h |more......................................................................................................
mv /home/user/Pen/Tom/Dick/Pencil.txt /home/user/Pen/Pencil.txt
.........................................................................................................................
cat Pencil.txt ...................................................................................................
mv Pencil.txt Hai.txt........................................................................................
cp Hai.txt Hello.txt .........................................................................................
vi g.txt
TEST for cp. (Type the given text, save and quite )
cp -i g.txt Hello.txt ...........................................................................................
cp -i g.txt test.txt ............................................................................................
wc g.txt .......................................................................................................
rm -i g.txt ........................................................................................................
rm g.txt ...........................................................................................................
rm -f test.txt ...................................................................................................
ls -l
chmod u+x Hello.txt
ls -l
.........................................................................................................................
......................................................................................................................
chmod g+w Hello.txt
ls -l
.........................................................................................................................
chmod o+x Hello.txt
ls -l
.........................................................................................................................
Prepared by Pravicha M.T
LAB SESSION 1
chmod o-x Hello.txt ......................................................................................
chmod ugo -wx Hello.tx
ls -l
.........................................................................................................................
chmod u+r g+wx o+rw Hello.txt
ls -l
.........................................................................................................................
chmod u-w g-w o-w Hello.txt
.........................................................................................................................
chmod ugo =w Hello.txt
ls -l ..................................................................................................................
chmod 740 Hai.txt
ls -l
.........................................................................................................................
ps .................................................................................................................
ps -u <user name> .........................................................................................
kill -9 <pid> ...................................................................................................
at 15:30
at> Welcome to at <ctrl d>
.........................................................................................................................
atq ..................................................................................................................
date..................................................................................................................
who...................................................................................................................
who am i.......................................................................................................
cal.....................................................................................................................
cal 2011..........................................................................................................
cal 2 2011.......................................................................................................
Prepared by Pravicha M.T
LAB SESSION 1
man cal....................................................................................................
info cal....................................................................................................
Prepared by Pravicha M.T
Download