| view file contents | more file.ext |
| view last 10 lines of a file | tail filename |
| view multiple files | head filenam* | more |
| view top # lines of a file | head -# filename |
| view top 10 lines of a file | head filename |
Showing posts with label head. Show all posts
Showing posts with label head. Show all posts
Wednesday, March 30, 2011
View File Content
Copy / Move
| concatenate files together in new file | cat oldfile1.ext oldfile2.ext > bothfiles.ext |
| copy a file and prompt before overwriting | cp -i existingfile newfile |
| copy top # lines of a file to a new file | head -# filename > newfilename |
| move a file and prompt before overwriting | mv -i existingfile newfile |
Subscribe to:
Posts (Atom)