Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GAQM LCP-001 Exam - Topic 1 Question 87 Discussion

Actual exam question for GAQM's LCP-001 exam
Question #: 87
Topic #: 1
[All LCP-001 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Hubert
5 months ago
I thought `exec` would work, but I guess not!
upvoted 0 times
...
Kayleigh
5 months ago
Wait, can you really use `bg` for this?
upvoted 0 times
...
Argelia
6 months ago
Nah, `continue` isn't a valid command here.
upvoted 0 times
...
Wendell
6 months ago
Totally agree, `fg` is the way to go!
upvoted 0 times
...
Rikki
6 months ago
The command to resume is `fg myapp`.
upvoted 0 times
...
Barrett
6 months ago
I vaguely recall that "exec" replaces the shell with the command, so that's definitely not the right answer here.
upvoted 0 times
...
Brigette
7 months ago
I feel like "continue" isn't a valid command in this context. Maybe it's "fg" that I should choose?
upvoted 0 times
...
Ona
7 months ago
I remember practicing with job control commands, and "bg" is for backgrounding, not foregrounding.
upvoted 0 times
...
Tomas
7 months ago
I think the command to bring a stopped job to the foreground is "fg myapp," but I'm not completely sure.
upvoted 0 times
...
Odette
7 months 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.
upvoted 0 times
...
Ashlee
7 months 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.
upvoted 0 times
...
Wilda
8 months 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.
upvoted 0 times
...
Colette
8 months 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.
upvoted 0 times
...
Delsie
1 year ago
I think the answer is E) myapp & because it runs the process in the background.
upvoted 0 times
...
Eric
1 year ago
Haha, B. continue myapp sounds like something from a video game. Nah, it's gotta be D. fg myapp, easy peasy.
upvoted 0 times
Billye
1 year ago
D) fg myapp
upvoted 0 times
...
Antonio
1 year ago
C) exec myapp
upvoted 0 times
...
Jose
1 year ago
B) continue myapp
upvoted 0 times
...
Selma
1 year ago
A) bg myapp
upvoted 0 times
...
...
Celeste
1 year ago
I'm going with E. myapp &. That should put the process back in the background, right? Gotta love those ampersands!
upvoted 0 times
Rosita
1 year ago
No, it's actually A) bg myapp that will resume the stopped process in the background.
upvoted 0 times
...
Rozella
1 year ago
I think D) fg myapp will bring the process to the foreground.
upvoted 0 times
...
Erick
1 year ago
Yes, E) myapp & will put the process back in the background.
upvoted 0 times
...
Beatriz
1 year ago
E) myapp &
upvoted 0 times
...
Ena
1 year ago
D) fg myapp
upvoted 0 times
...
Alberta
1 year ago
C) exec myapp
upvoted 0 times
...
Gussie
1 year ago
B) continue myapp
upvoted 0 times
...
Laurena
1 year ago
A) bg myapp
upvoted 0 times
...
...
Desmond
1 year ago
I'm not sure, but I think B) continue myapp could also be a possible answer.
upvoted 0 times
...
Fredric
1 year ago
I disagree, I believe the correct answer is A) bg myapp.
upvoted 0 times
...
Jesse
1 year ago
D. fg myapp, of course! That's the classic command to bring a background process back to the foreground.
upvoted 0 times
...
Chan
1 year ago
I think the answer is D) fg myapp.
upvoted 0 times
...
Santos
1 year ago
Hmm, I think the answer is D. fg myapp. It sounds like the most logical way to resume a stopped process.
upvoted 0 times
Allene
1 year ago
I agree, D) fg myapp is the correct answer
upvoted 0 times
...
Lavonna
1 year ago
No, I believe it's D) fg myapp
upvoted 0 times
...
Rickie
1 year ago
I think it's A) bg myapp
upvoted 0 times
...
...

Save Cancel