![nohup.out 파일 생성을 방지하는 방법](https://linux55.com/image/156173/nohup.out%20%ED%8C%8C%EC%9D%BC%20%EC%83%9D%EC%84%B1%EC%9D%84%20%EB%B0%A9%EC%A7%80%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95.png)
nohup command &> /dev/null &
명령은 여전히 nohup.out
파일을 생성합니다. 이를 방지하는 방법을 알려 주실 수 있나요?
답변1
&>
POSIX 표준이 아닙니다. 다음 구문을 사용해야 합니다.
nohup command >/dev/null 2>&1 &
관련된:2>&-, 2>/dev/null, |&, &>/dev/null 및 >/dev/null 2>&1의 차이점
nohup command &> /dev/null &
명령은 여전히 nohup.out
파일을 생성합니다. 이를 방지하는 방법을 알려 주실 수 있나요?
&>
POSIX 표준이 아닙니다. 다음 구문을 사용해야 합니다.
nohup command >/dev/null 2>&1 &
관련된:2>&-, 2>/dev/null, |&, &>/dev/null 및 >/dev/null 2>&1의 차이점