Given the following output: prompt> myapp [1]+ Stopped myapp prompt> Which of the following commands will resume executing the stopped process and make it the current job?
Suggested Answer: D
Get Premium LCP-001 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
36 comments · newest first
HU
Hubert
10 months ago
I thought `exec` would work, but I guess not!
KA
Kayleigh
10 months ago
Wait, can you really use `bg` for this?
AR
Argelia
11 months ago
Nah, `continue` isn't a valid command here.
WE
Wendell
11 months ago
Totally agree, `fg` is the way to go!
RI
Rikki
11 months ago
The command to resume is `fg myapp`.
BA
Barrett
11 months ago
I vaguely recall that "exec" replaces the shell with the command, so that's definitely not the right answer here.
BR
Brigette
12 months ago
I feel like "continue" isn't a valid command in this context. Maybe it's "fg" that I should choose?
ON
Ona
12 months ago
I remember practicing with job control commands, and "bg" is for backgrounding, not foregrounding.
TO
Tomas
12 months ago
I think the command to bring a stopped job to the foreground is "fg myapp," but I'm not completely sure.
OD
Odette
1 year ago
I've got this! The key is that the question asks for the command that will make the stopped process the "current job". That means we need to bring it to the foreground, so the answer is D, fg myapp.
AS
Ashlee
1 year ago
Okay, let me think this through step-by-step. The output shows the process is stopped, so we need a command to resume it. The options are bg, continue, exec, fg, and myapp &. I'm pretty sure bg and fg are the most relevant here, so I'll focus on those and try to remember the difference between them.
WI
Wilda
1 year ago
Hmm, I'm a bit unsure about this one. I know bg is for resuming a job in the background, and fg is for the foreground, but I'm not 100% sure which one is the right command here. I'll have to think it through carefully.
CO
Colette
1 year ago
This looks like a straightforward question about resuming a stopped process. I'm pretty confident the answer is D, fg myapp, since that command is used to bring a stopped job to the foreground.
DE
Delsie
2 years ago
I think the answer is E) myapp & because it runs the process in the background.
ER
Eric
2 years ago
Haha, B. continue myapp sounds like something from a video game. Nah, it's gotta be D. fg myapp, easy peasy.
BI
Billye
1 year ago
D) fg myapp
AN
Antonio
1 year ago
C) exec myapp
JO
Jose
1 year ago
B) continue myapp
SE
Selma
1 year ago
A) bg myapp
CE
Celeste
2 years ago
I'm going with E. myapp &. That should put the process back in the background, right? Gotta love those ampersands!
RO
Rosita
1 year ago
No, it's actually A) bg myapp that will resume the stopped process in the background.
RO
Rozella
1 year ago
I think D) fg myapp will bring the process to the foreground.
ER
Erick
1 year ago
Yes, E) myapp & will put the process back in the background.
BE
Beatriz
1 year ago
E) myapp &
EN
Ena
1 year ago
D) fg myapp
AL
Alberta
1 year ago
C) exec myapp
GU
Gussie
1 year ago
B) continue myapp
LA
Laurena
1 year ago
A) bg myapp
DE
Desmond
2 years ago
I'm not sure, but I think B) continue myapp could also be a possible answer.
FR
Fredric
2 years ago
I disagree, I believe the correct answer is A) bg myapp.
JE
Jesse
2 years ago
D. fg myapp, of course! That's the classic command to bring a background process back to the foreground.
CH
Chan
2 years ago
I think the answer is D) fg myapp.
SA
Santos
2 years ago
Hmm, I think the answer is D. fg myapp. It sounds like the most logical way to resume a stopped process.
AL
Allene
2 years ago
I agree, D) fg myapp is the correct answer
LA
Lavonna
2 years ago
No, I believe it's D) fg myapp
RI
Rickie
2 years ago
I think it's A) bg myapp