Translate

Sunday, 20 January 2013

Basic command for Linux Part 3

 Basic command for Linux Part 3


8) Creating a single directory

#mkdir test

To creating multiple directories

#mkdir test test1 test2 test3

To create neated directories

#mkdir -p test1/test2/test3/test4

To see the tree structure

#ls -R test
test1:
test2

test1/test2:
test3

test1/test2/test3:
test4

test1/tes2/test3/test4
#


9) To change the directory

go to the directory

#cd test1

Back to previous directory

#cd ..

Go to the one more down

#cd ../..

To check present working directory

#pwd

10)  To remove files

#rm test1
to remove regular file "test1" ? y

To remove empty file

#rmdir test

To remove a dirctory

#rm -rf test

continue....

No comments:

Post a Comment