PR 6 Osy
PR 6 Osy
PR 6 Osy
Roll no -08
Pr no - 06
root@rachita:~# cat>avi
where cat command used for creating an file in unix
head command
it is used to read first ten lines
tail command
it is used to print last ten lines
touch command
used to create a file but file will be empty
copy coomand
used to copies the file to destination file
move command
used to move a from one location to another location
root@rachita:~# touch aa
root@rachita:~# ls -a
. .. .bash_history .bashrc .motd_shown .profile .ssh Avi aa abhay avi avinash pr6
student1 student2
root@rachita:~# ls -d
.
root@rachita:~# ls -i
49234 Avi 49221 aa 49231 abhay 49236 avi 49229 avinash 890 pr6 49232 student1
49233 student2
root@rachita:~# ls -l
total 32
-rw-r--r-- 1 root root 429 Oct 7 14:06 Avi
-rw-r--r-- 1 root root 0 Oct 7 15:12 aa
-rw-r--r-- 1 root root 429 Oct 7 14:12 abhay
-rw-r--r-- 1 root root 334 Oct 7 15:09 avi
-rw-r--r-- 1 root root 259 Oct 7 13:28 avinash
-rw-r--r-- 1 root root 8192 Oct 7 14:21 pr6
-rw-r--r-- 1 root root 32 Oct 7 15:06 student1
-rw-r--r-- 1 root root 26 Oct 7 15:06 student2
root@rachita:~# rm aa
root@rachita:~# cat>stu1
ajay 1990
soham 1991
sujit 1992
root@rachita:~# cat>stu2
ajay 50
soham 52
sujit 58
root@rachita:~#
root@rachita:~# ls
abhay avi avinash pr6 stu1 stu2 student1 student2 xaa xab xac
root@rachita:~#