Translate

Saturday, 19 January 2013

Basic command for Linux Part 2

Basic command for Linux Part 2

 
6) How to see file stating with word e.g f
 
#ls f*
 
 To see a file have middle string as disk

#ls /bin/*disk*

To see a file whose length is 3 characters

 #ls ???

To see a file which start with single char & end up with nay number of character

#ls ?edh*


7) How to create a file

#cat > test

how to see file content

#cat test

to append a file

#cat >> test

How to create a emply file

# touch test1

How to create multiple  file with one command

#touch test2 test3 test4  ... so on


continue....
 

No comments:

Post a Comment