Commands Flashcards

1
Q

How to type more than one command on a single line

A

Use ; (metacharacter) to separate commands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

date

A

specify current date and time, date +%R shows time only, date +%x shows date only

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

passwd

A

change user’s own password, superuser can change other user’s passwords

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

file

A

scans a file’s content to display file type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

wc

A

counts lines, words, and chars of a file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly