Class 6 Quiz Flashcards

1
Q

If you saw the following prompt, what user was logged into the machine?
it244gh@vm75:/courses/it244/f14/ghoffman$

A

it244gh

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

If you saw the following prompt, what was the hostname of the machine?
it244gh@vm75:/courses/it244/f14/ghoffman$

A

vm75

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

If you saw the following prompt, what was the absolute pathname of the current directory?
it244gh@vm75:/courses/it244/f14/ghoffman$

A

/courses/it244/f14/ghoffman

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 if your wanted to find all lines in the file red_sox.txt that had the word “Win”, but not the word “Rays”?

A

grep Win red_sox.txt | grep -v Rays

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 if your wanted to find all lines in the file red_sox.txt that had the word “Win”, but not the word “Rays”, and have the lines sorted alphabetically?

A

grep Win red_sox.txt | grep -v Rays | sort

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

What command would you use to find the date and time?

A

date

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

What program would you use to find where the program file for tar is located?

A

which or whereis

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 if you wanted to find all files with “link” as part of their name?

A

locate link

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

What command would you use to find out all the users currently logged on to the machine you are using?

A

finger or who

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 if you wanted to find out all you could about the user with account name wombat?

A

finger wombat

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