IT 공부내용 정리/Linux

터미널 명령어 - nohup 내가 없어도 컴퓨터는 작업을 계속해야 할 때

따뜻한 차가움 2025. 3. 14. 14:01

사용 버전 : Linux 우분투(레드햇 계열) 24.04.01 LTS 버전
사용한 시스템 지역/언어 : 대한민국/한글

man nohup 원문

더보기

NOHUP(1)                         User Commands                        NOHUP(1)

NAME
       nohup - run a command immune to hangups, with output to a non-tty

SYNOPSIS
       nohup COMMAND [ARG]...
       nohup OPTION

DESCRIPTION
       Run COMMAND, ignoring hangup signals.

       --help display this help and exit

       --version
              output version information and exit

       If  standard  input is a terminal, redirect it from an unreadable file.
       If standard output is a terminal, append output to 'nohup.out' if  pos‐
       sible,  '$HOME/nohup.out'  otherwise.  If standard error is a terminal,
       redirect it to standard output.  To save output  to  FILE,  use  'nohup
       COMMAND > FILE'.

       NOTE:  your  shell may have its own version of nohup, which usually su‐
       persedes the version described here.  Please refer to your shell's doc‐
       umentation for details about the options it supports.

   Exit status:
       125    if the nohup command itself fails

       126    if COMMAND is found but cannot be invoked

       127    if COMMAND cannot be found

       -      the exit status of COMMAND otherwise

AUTHOR
       Written by Jim Meyering.

REPORTING BUGS
       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
       Report any translation bugs to <https://translationproject.org/team/>

COPYRIGHT
       Copyright © 2023 Free Software Foundation, Inc.   License  GPLv3+:  GNU
       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
       This  is  free  software:  you  are free to change and redistribute it.
       There is NO WARRANTY, to the extent permitted by law.

SEE ALSO
       Full documentation <https://www.gnu.org/software/coreutils/nohup>
       or available locally via: info '(coreutils) nohup invocation'

GNU coreutils 9.4                 April 2024                          NOHUP(1)


man  번역기 번역본

더보기

nohup (1) 사용자 명령 nohup (1)

이름
       nohup- 끊기에 대한 명령 면역을 실행하고, 비 tty에 대한 출력으로

개요
       nohup 명령 [arg] ...
       Nohup 옵션

설명
       끊기 신호를 무시하고 명령을 실행하십시오.

-헬프이 도움말과 종료를 표시합니다

--버전
              출력 버전 정보 및 종료

표준 입력이 터미널 인 경우 읽을 수없는 파일에서 리디렉션하십시오.
       표준 출력이 터미널 인 경우 pos- 인 경우 출력을 'nohup.out'로 추가하십시오.
       sible, '$ home/nohup.out'그렇지 않으면.  표준 오류가 터미널 인 경우
       표준 출력으로 리디렉션하십시오.  출력을 파일에 저장하려면 'nohup을 사용하십시오
       명령> 파일 '.

참고 : 쉘은 자체 버전의 Nohup을 가질 수 있습니다.
       여기에 설명 된 버전을 보증합니다.  쉘의 문서를 참조하십시오.
       지원하는 옵션에 대한 자세한 내용은 Umentation.

종료 상태 :
       125 nohup 명령 자체가 실패한 경우

126 명령이 발견되었지만 호출 할 수없는 경우

127 명령을 찾을 수없는 경우

- 그렇지 않으면 명령의 종료 상태입니다

작가
       Jim Meyering에 의해 작성되었습니다.

보고 버그
       GNU Coreutils 온라인 도움말 : <https://www.gnu.org/software/coreutils/>
       번역 버그를 <https://translationproject.org/team/>에보고하십시오

저작권
       저작권 © 2023 Free Software Foundation, Inc. 라이센스 GPLV3+: GNU
       GPL 버전 3 이상 <https://gnu.org/licenses/gpl.html>.
       이것은 무료 소프트웨어입니다. 자유롭게 변경하고 재분배 할 수 있습니다.
       법률에 의해 허용되는 범위 내에서 보증은 없습니다.

참조하십시오
       전체 문서 <https://www.gnu.org/software/coreutils/nohup>
       또는 Info '(Coreutils) Nohup 호출을 통해 로컬로 사용 가능합니다.'

GNU Coreutils 2024 년 4 월 9 일 Nohup (1)

 

형태 : nohup [명령]

기능 : 사용자가 로그아웃 하거나 작업중인 터미널이 종료되어도 작업을 유지한다.

 

주의할 점은 컴퓨터를 끄면 당연히 전기가 없기 때문에 해당 기능도 모두 종료된다.

사용자 로그아웃과 시스템 종료는 엄연히 다르기에 주의할 필요가 있다.

 

사용자가 없어도 해당 결과 값을 나중에 확인하고 싶다면 리다이렉션(>) 기능을 활용하면 좋다.

https://warmice8226.tistory.com/47

 

리눅스 리다이렉션(>) - 결과값을 저장하거나 전달할 때

리다이렉션은 명령의 출력이나 오류메세지를 파일이나 다른 명령으로 전달하는 기능이다. 기본 파일 디스크립터더보기파일 디스크립터는 운영체제가 파일이나 입출력 스트림을 식별하는데

warmice8226.tistory.com