CHAPTER 8 Other Useful Commands
| Command/Syntax | What it will do |
|---|---|
| cmp [options] file1 file2 | compare two files and list where differences occur (text or binary files) |
| cut [options] [file(s)] | cut specified field(s)/character(s) from lines in file(s) |
| diff [options] file1 file2 | compare the two files and display the differences (text files only) |
| file [options] file | classify the file type |
| find directory [options] [actions] | find files matching a type or pattern |
| ln [options] source_file target | link the source_file to the target |
| paste [options] file | paste field(s) onto the lines in file |
| sort [options] file | sort the lines of the file according to the options chosen |
| strings [options] file | report any sequence of 4 or more printable characters ending in <NL> or <NULL>. Usually used to search binary files for ASCII strings. |
| tee [options] file | copy stdout to one or more files |
| touch [options] [date] file | create an empty file, or update the access time of an existing file |
| tr [options] string1 string2 | translate the characters in string1 from stdin into those in string2 in stdout |
| uniq [options] file | remove repeated lines in a file |
| wc [options] [file(s)] | display word (or character or line) count for file(s) |