UNIX Commands Flashcards

1
Q

What command shows you what directory you are currently working on?

A

pwd

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

What command clears the console screen for you?

A

clear

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

What command would you use to display a file one page at a time?

A

more (filename)

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

What command would you use to display contents of a file all at once?

A

cat (filename)

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

What command removes/deletes a directory?

A

rmdir (directory name)

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

What command removes/deletes a file?

A

rm (filename)

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

What command renames a file?

A

mv (file1) (file2)

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

What command copies a file to another file?

A

cp (file1) (file2)

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

What command would you use to backtrack back 1 directory?

A

cd ..

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

What command takes you back to your root directory?

A

cd

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

How do you change directories?

A

cd (directory)

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

How would you make a new directory?

A

mkdir (directory)

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

What command shows the file names of your current working directory?

A

ls

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

Which command opens the manual for a specific command?

A

man (Command)

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