Common Command Line Commands Flashcards

(27 cards)

1
Q

change directory

A

cd

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

List files and directories in current directory.

A

ls

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

Display the path of the current directory.

A

pwd

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

create a file

A

touch

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

create a directory

A

mkdir

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

Copy one or more files to a new location

A

cp

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

Move or rename a file or directory

A

mv

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

Make a new directory

A

mkdir

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

Create a new file or update modification time if a file with that name exists

A

touch

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

Remove one or more files or directories *cannot undo PERMANENT

A

rm

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

Exit out of any executables process

A

ctrl + c

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

create

A

-c

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

zip

A

-z

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

file

A

-f

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

number of dashes for abbreviated flags

A

one dash

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

number of dashes for full word flags

17
Q

combine -c, -z, -f

18
Q

Display documentation about a command.

19
Q

Copy a file or directory.

20
Q

Move or rename a file or directory.

21
Q

Print text to STDOUT.

22
Q

Display contents of a file.

23
Q

Display contents of a file, starting at the top and letting the user scroll down.

24
Q

Display contents of a file in an even more interactive way.

25
Display the first part of a file.
head
26
Display the last part of a file.
tail
27
do not print the trailing newline character
-n