Shell Job Control and Kills Flashcards

1
Q

jobs

A

List your jobs. Job number (job number, + current job - previous job, state, name)

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

&

A

Put a the ampersand at the end of the command line to let the command run as a background job. Returns jobnumber and processid.

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

^Z

A

Suspend the job. Type bg to put the job in the background or fg to resume the job in the foreground.d

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

suspend

A

If you have typed su and want to return to the original shell.

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

bg [%jobnumber]

A

Only bg puts the most recent command in the background.

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

fg [%jobnumber]

A

Only fg puts the most recently backgrounded job in the foreground.

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

^C

A

Terminate the current foreground command.

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

^J

A

Same as enter.

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

How to reset the terminal if nothing is working?

A

Type reset^J even if the characters aren’t displayed on screen.

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

^D

A

End of file.

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

Terminate the shell.

A

Type exit or ^D.

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