Professional Documents
Culture Documents
tharu@VIVEKS_LAP ~/parent/parent
$ uptime
-bash: uptime: command not found
tharu@VIVEKS_LAP ~/parent/parent
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
C:/cygwin64 396821500 189609316 207212184 48% /
D: 102398972 8783324 93615648 9% /cygdrive/d
tharu@VIVEKS_LAP ~/parent/parent
$ du
0 ./child1/child2/child3
0 ./child1/child2
0 ./child1
0 ./person1/per2/per3
0 ./person1/per2
0 ./person1
0 .
tharu@VIVEKS_LAP ~/parent/parent
$ whereis app
app:
tharu@VIVEKS_LAP ~/parent/parent
$ touch new.txt new2.py new3.doc new4.v
tharu@VIVEKS_LAP ~/parent/parent
$ ls
child1 new.txt new2.py new3.doc new4.v person1
tharu@VIVEKS_LAP ~/parent/parent
$ pwd
/home/tharu/parent/parent
tharu@VIVEKS_LAP ~/parent/parent
$ ls
child1 new.txt new2.py new3.doc new4.v person1
tharu@VIVEKS_LAP ~/parent/parent
$ cat new.txt
tharu@VIVEKS_LAP ~/parent/parent
$ cat > new.txt
tharu@VIVEKS_LAP ~/parent/parent
$ cat new.txt
tharu@VIVEKS_LAP ~/parent/parent
$ cat > new.txt
hii vivek
tharu@VIVEKS_LAP ~/parent/parent
$ cat new.txt
hii vivek
tharu@VIVEKS_LAP ~/parent/parent
$ cat >> new.txt
how are you
tharu@VIVEKS_LAP ~/parent/parent
$ cat new.txt
hii vivek
how are you
tharu@VIVEKS_LAP ~/parent/parent
$ cat new.txt > new2.txt
tharu@VIVEKS_LAP ~/parent/parent
$ cat new.txt
hii vivek
how are you
tharu@VIVEKS_LAP ~/parent/parent
$ cat new2.txt
hii vivek
how are you
tharu@VIVEKS_LAP ~/parent/parent
$ ls
child1 new.txt new2.py new2.txt new3.doc new4.v person1
tharu@VIVEKS_LAP ~/parent/parent
$ cat new.txt new2.txt > new3.txt
tharu@VIVEKS_LAP ~/parent/parent
$ cat new3.txt
hii vivek
how are you
hii vivek
how are you
tharu@VIVEKS_LAP ~/parent/parent
$ cat new.txt new2.txt new3.txt combined.txt
hii vivek
how are you
hii vivek
how are you
hii vivek
how are you
hii vivek
how are you
cat: combined.txt: No such file or directory
tharu@VIVEKS_LAP ~/parent/parent
$ touch new.txt new4.txt
tharu@VIVEKS_LAP ~/parent/parent
$ ls
child1 new.txt new2.py new2.txt new3.doc new3.txt new4.txt new4.v person1
tharu@VIVEKS_LAP ~/parent/parent
$ man cat
tharu@VIVEKS_LAP ~/parent/parent
$ cat >>
-bash: syntax error near unexpected token `newline'
tharu@VIVEKS_LAP ~/parent/parent
$ cat >> new122.txt
hii hello vivek
tharu@VIVEKS_LAP ~/parent/parent
$ ls
child1 new.txt new122.txt new2.py new2.txt new3.doc new3.txt new4.txt
new4.v person1
tharu@VIVEKS_LAP ~/parent/parent
$ ls -p
child1/ new.txt new122.txt new2.py new2.txt new3.doc new3.txt new4.txt
new4.v person1/
tharu@VIVEKS_LAP ~/parent/parent
$ ls -p
child1/ new.txt new122.txt new2.py new2.txt new3.doc new3.txt new4.txt
new4.v person1/
tharu@VIVEKS_LAP ~/parent/parent
$ ls -l new122.txt
-rw-r--r-- 1 tharu tharu 16 Sep 16 12:10 new122.txt
tharu@VIVEKS_LAP ~/parent/parent
$ chmod u+x,g+x,o+w new122.txt
tharu@VIVEKS_LAP ~/parent/parent
$ ls -l new122.txt
-rwxr-xrw-+ 1 tharu tharu 16 Sep 16 12:10 new122.txt
tharu@VIVEKS_LAP ~/parent/parent
$ ls -l new122.txt
-rwxr-xrw-+ 1 tharu tharu 16 Sep 16 12:10 new122.txt
tharu@VIVEKS_LAP ~/parent/parent
$ ls -l new2.py
-rw-r--r-- 1 tharu tharu 0 Sep 16 11:49 new2.py
tharu@VIVEKS_LAP ~/parent/parent
$ chmod u-w+x,g-r+wx,o-r+wx new122.txt
tharu@VIVEKS_LAP ~/parent/parent
$ ls -l new122.txt
-r-xr-x-wx+ 1 tharu tharu 16 Sep 16 12:10 new122.txt