Common Command Line Commands Flashcards

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

A

two dashes

17
Q

combine -c, -z, -f

A

-czf

18
Q

Display documentation about a command.

A

man

19
Q

Copy a file or directory.

A

cp

20
Q

Move or rename a file or directory.

A

mv

21
Q

Print text to STDOUT.

A

echo

22
Q

Display contents of a file.

A

cat

23
Q

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

A

more

24
Q

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

A

less

25
Q

Display the first part of a file.

A

head

26
Q

Display the last part of a file.

A

tail

27
Q

do not print the trailing newline character

A

-n