Commands Flashcards

1
Q

echo

A

Output text on the terminal.

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

ls

A

List the contents of a directory.

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

type

A

Show how a specific command is executed.

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

touch

A

Create an empty file or update an existing file’s modification date.

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

hostname

A

Show or change a system’s hostname.

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

rm

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

rmdir

A

Used remove empty directories from the filesystem in Linux. The rmdir command removes each and every directory specified in the command line only if these directories are empty. So if the specified directory has some directories or files in it then this cannot be removed by rmdir command.

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

whereis

A

Locates source/binary and manuals sections for specified files.

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

head

A

Print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name.

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

tail

A

Print the last 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name.

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

sort

A

The sort command arranges text lines in useful ways.

sort [options]

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