Wednesday, November 13, 2013

Linux/Unix Basic (but useful) Commands


Split the file into parts
  1. Find out how many lines do you have in your file. 
  2. Know how many parts you require. 
  3. Accordingly apply this command in your terminal: split -l 10000 filename (Here 10000 is the no of lines in my files. So if I have 20000 lines in my file, and if I issue above command, then my file will be divided in two parts.)
Change directory folder with spaces

If I have my folder as /home/jenis/folder name/

then, 

cd /home/jenis/folder\ name

        or
cd /home/jenis
cd "folder name"

No comments: