ctrl-z 또는 fg를 수동으로 입력할 수 없습니다.
작업 제어에서 "fg"는 무엇을 의미합니까? 즉, ctrl-z를 입력하면 현재 작업이 일시 중지되어 셸로 돌아가고 "fg" 명령을 사용하여 일시 중지된 작업을 다시 활성화할 수 있습니다. "fg"은(는) 무슨 뜻인가요?
답변1
전망.
다른 bash와 동일내장, 거기예 help
그것을 위해:
$ help fg
fg: fg [job_spec]
Move job to the foreground.
Place the job identified by JOB_SPEC in the foreground, making it the
current job. If JOB_SPEC is not present, the shell's notion of the
current job is used.
Exit Status:
Status of command placed in foreground, or failure if an error occurs.
$
또한 bg
yes BackGround
, ^z는 다음 위치에 있습니다.bash
매뉴얼 페이지, 작업 제어 하에서:
If the operating system on which bash is running supports job control,
bash contains facilities to use it. Typing the suspend character (typ‐
ically ^Z, Control-Z) while a process is running causes that process to
be stopped and returns control to bash. Typing the delayed suspend
character (typically ^Y, Control-Y) causes the process to be stopped
when it attempts to read input from the terminal, and control to be
returned to bash. The user may then manipulate the state of this job,
using the bg command to continue it in the background, the fg command
to continue it in the foreground, or the kill command to kill it. A ^Z
takes effect immediately, and has the additional side effect of causing
pending output and typeahead to be discarded.