Switches Flashcards
type -a
returns all of the places that contain an executable named file
uname -a
show all information
history -c
clear the history
man -k
search man pages for a topic; requires the whatis database to work
man -k ““system information””
man #
select the section in the man page to open
man 5 passwd
xargs -d
specify the delimiter
defaults to space
cat -E
display a “”$”” at the end of each line
–show-ends
cat -n
adds line numbers to the beginning of every line.
–number
cat -b
adds line numbers to the beginning of every line that contains text
–number-nonblank
cat -s
compresses groups of blank lines down to a single blank line
–squeeze-blank
cat -T
displays tab characters as ““∧I””
–show-tabs
cat -v
displays most control and other special characters using carat ( ∧ ) and M- notations.
–show-nonprinting
join -t CHAR
use CHAR as input and output field separator
join -i
ignore differences in case when comparing fields
–ignore-case
expand -t NUMBER
have tabs NUMBER characters apart; not 8
–tabs=NUMBER
sort -f
ignore case
–ignore-case; (fold)
sort -M
sort by three-letter month abbreviation ( JAN through DEC )
–month-sort
sort -n
compare according to string numerical value
–numeric-sort
sort -r
reverse the result of comparisons
–reverse
sort -k KEYDEF
sort via a key; KEYDEF gives location and type
–key=KEYDEF
(KEYDEF can be two numbered fields separated by commas; to sort on multiple fields.)
E.G. sort -k 3 listing1.1.txt
split -b NUMBER
put NUMBER bytes per output file
–bytes=NUMBER
split -C NUMBER
put at most NUMBER bytes of records per output file
–line-bytes=NUMBER
split -l NUMBER
put NUMBER lines/records per output file
–lines=NUMBER
tr -t
first truncate SET1 to length of SET2
–truncate-set1