Commands Flashcards
1
Q
How to type more than one command on a single line
A
Use ; (metacharacter) to separate commands
2
Q
date
A
specify current date and time, date +%R shows time only, date +%x shows date only
3
Q
passwd
A
change user’s own password, superuser can change other user’s passwords
4
Q
file
A
scans a file’s content to display file type
5
Q
head / tail
A
display the beginning / end of a file, default of 10 lines, use -n to specify a different number of lines
6
Q
wc
A
counts lines, words, and chars of a file