Showing posts with label head. Show all posts
Showing posts with label head. Show all posts

Wednesday, March 30, 2011

View File Content

view file contentsmore file.ext
view last 10 lines of a filetail filename
view multiple fileshead filenam* | more
view top # lines of a filehead -# filename
view top 10 lines of a filehead filename

Copy / Move

concatenate files together in new filecat oldfile1.ext oldfile2.ext > bothfiles.ext
copy a file and prompt before overwritingcp -i existingfile newfile
copy top # lines of a file to a new filehead -# filename > newfilename
move a file and prompt before overwritingmv -i existingfile newfile