Class 4 Quiz Flashcards

1
Q

Name the three whitespace characters.

A

Space, Tab and newline (Enter or Return)

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

If you wanted to use one of the characters that have special meaning to Unix in a filename, what two things could you do?

A

put a backslash in front of it or quote it

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

What would you type on the command line if you wanted to go to the directory /courses.

A

cd /courses

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

What would you type at the command line to see what directory you are currently in?

A

pwd

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

What would you type at the command line to see all the files in the directory named /home/ghoffman?

A

ls -a /home/ghoffman

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

What would you type at the command line to print to the screen the contents of the file named memo.txt?

A

cat memo.txt

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

What would you type at the command line to delete the file named memo.txt?

A

rm memo.txt

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

What would you type at the command line to create a directory named work?

A

mkdir work

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

What would you type at the command line to copy the file named memo.txt to memo.bak?

A

cp memo.txt memo.bak

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

What would you type at the command line to move the file named memo.txt into the directory named work?

A

mv memo.txt work

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