Thursday, May 29, 2008

Questions

1. Login to your account and enter fallowing commands,What arethe observation?


  • ls
  • pwd
  • uname -a
  • ls
  • ls /..
  • man pwd
  • cal
  • mkdir
  • mkdir lab1dir
  • ls
  • cd lab1dir
  • pwd
  • touch lab1 file
  • ls-al(Can you tell how big the file is ?)
  • rm lab1 le
  • pwd
  • clear
  • passwd
  • echo Hello world
  • date
  • hostname
  • dmesg more
  • uptime
  • sleep 10
  • who am i
  • sleep 10 &
  • who
  • sleep 1000
  • Ctrl + z
  • bg
  • jobs
  • kill %jobnumber
  • id
  • last
  • echo $SHELL
  • who
  • yes Hello World
  • CTRL + L
  • history
  • cd Desktop/ && mkdir lab1dir2
  • cd labidir2
  • cp /usr/share/doc/packages/yast2-installation/COPYRIGHT.english .
  • cp COPYRIGHT.english /home/eng/lab1dir/
  • ls /home/chathura/lab1ddir/COPYRIGHT.english
  • rm lab1dir2 jj ls
  • rm -r && ls
  • mkdir Desktop/lab1dir3
  • ls -al lab1dir1
  • ls -al lab1dir3
  • mv lab1dir1/COPYRIGHT.english Desktop/lab1dir3
  • cd Desktop/lab1dir3 && ls -al
  • mv COPYRIGHT.english copy.eng
  • grep -i 'freedom to' copy.eng
  • grep -n 'freedom to' copy.eng
  • su
  • reboot

No comments: