기본 사용법

nohup [명령] &

nohup 명령어로 echo hello 명령을 백그라운드에서 수행. (test.txt 파일에 출력.)

nohup echo helelo & > test.txt

nohup 명령어로 수행한 명령을 /dev/null 파일로 출력하면 출력내용을 남기지 않는다.

nohup echo hello > /dev/null

nohup을 실행할때마다 Log 파일을 리셋하지 않고 append 시키려면, >> 로 고치면 된다.

Is there a way to append nohup output file?

nohup echo helelo & >> test.txt