2.9 Flashcards

1
Q

A shell command that displays the contents of a file.

A

cat

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

A shell command that displays the contents of a file one screen at a time.

A

more

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

A shell command similar to more that displays the contents of a file one screen at a time and allows the user to navigate within the display.

A

less

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

A shell command that displays the first few lines of a file.

A

head

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

A shell command that displays the last few lines of a file.

A

tail

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

A shell command normally used to create an empty file.

A

touch

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

A shell command that displays the file’s type

A

file

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

A shell command that deletes files and directories

A

rm

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

A shell command that copies files.

A

cp

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

A shell command that moves and renames files and directories

A

mv

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

A shell command that overwrites files so they are difficult for a third party to recover.

A

shred

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

A shell command that list the attributes of a file.

A

lsattr

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

Modifies file attributes. A + or - is used to add or remove attributes respectively.

A

chattr

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

for these files -R

A

recursively

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

-V

A

displays the program version

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

-a will

A

list allfiles in a directory