Quiz 1 Flashcards

1
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
2
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
3
Q

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

A

mkdir work

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 delete the file namedmemo.txt?

A

rm memo.txt

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 print to the screen the contents of the file namedmemo.txt?

A

cat memo.txt

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 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
7
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
8
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
9
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
10
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
11
Q

What is the other program, besidesman, that you can use to get help?

A

info

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

How do you exit themanprogram?

A

q

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

How do you get the next screenful when usingman?

A

Space bar

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

What would you type at the command line to get themanpage for thelscommand?

A

man ls

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

How do you you abort a running program?

A

Control C

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

What is the text editor used by most system administrators?

A

vi or vim

17
Q

What keys would you hit to go to the end of the command line?

A

Control E

18
Q

What keys would you hit to go to the beginning of the command line?

A

Control A

19
Q

What key would you press to get the last command you typed?

A

up arrow

20
Q

What command would you use to keep a record of every command you type and the output of those commands?

A

script