more linux commands

 linux

-------------------

cal -y


give all year calender


cal 1990

calender of 1990


cal 4 1990

april month of 1990


clear or cltr+l same


. current dir

.. parent dir



path ---

absolute--entire path from root

relative--./orienit


~ -- home dir


cd ~ will go to hom dir


previous dir -


cd - will go to previous dir


hidden files starts with .


ls -R


will list all files till all dir under the path


ls -R /


show all data under /


it does not give hidden file to see hidden file


ls -Ra


touch

---------------

-create empty file

-if file is exist--then it will change the timestamp of existing file


touch file1 file 2


create 2 files.



mkdir

--------

mkdir dir1 dir2 dir3


create 3 directory


--------------


to remove a dir


rm -R dir1


rm file1


recursively cpy directory into another dir


cp -R dir5 dir6


all dir will be copied


go to 2 directory back


cd ../..


mv

------------


to rename the file


to move a file mv file1 file8



Comments

Popular posts from this blog

scala-4