431_Assignment2(OSL) (1)
431_Assignment2(OSL) (1)
(UNIX Commands)
UCE2023431
Eesha Kamath
A2
man - manual listing of all commands, system calls, and other documented parts of unix
cd - change directory
mkdir - makes new directory
localhost:/home$ cd /home/eeshakamath11
localhost:~$ pwd
/home/eeshakamath11
localhost:~$ mkdir new
localhost:~$ cd new
localhost:~/new$
cp - copy
localhost:~$ cp upload.txt word.docx
localhost:~$ cat word.docx
this is a text file with name "upload" to be uploaded
.
cat =>
localhost:~$ cat upload.txt
this is a text file with name "upload" to be uploaded
.
wc - word count
localhost:~$ wc word.txt
10 20 81 word.txt
cmp - compares 2 files and gives the start line that is not matching
localhost:~$ cmp upload.txt newfile.txt
cmp: EOF on newfile.txt
localhost:~$ cmp upload.txt word.txt
upload.txt word.txt differ: char 1, line 1
localhost:~$ cmp upload.txt
this is inthe input give
upload.txt - differ: char 9, line 1