Basic Ultilities Flashcards
1
Q
ls
A
lists names of files in current directory
2
Q
cat
A
displays a text file
3
Q
rm
A
deletes a file
4
Q
rm -i
A
Asks permission and then deletes file
5
Q
hostname
A
Displays the system name
6
Q
cp
A
copies a file
7
Q
cp a2q2.txt efib.c
A
Copies a2q2.txt to new file efib.c
8
Q
mv
A
The move utility, rename file without copying or move file to different directory
9
Q
mv memo.txt bird_memo.txt
A
Changes memo.txt to bird_memo.txt
10
Q
lpr
A
Line printer, prints file to actual physical printer
11
Q
lpstat -p
A
Lists available printers
12
Q
lpr -P office report report2
A
Prints report and then report 2 from office printer
13
Q
lpq
A
Lists printer queue
14
Q
‘grep’ stands for?
A
Global regular expression print
15
Q
head -5
A
Prints first 5 lines of file