Thursday, November 5, 2015

Nohup notes

Nohup is a function which can help you run code even you exit your terminal. All the print out information will be saved in a nohup.out file.

Some of the terminal functions:

nohup gradle run&
ps pid
exit
pgrep sleep
kill 5234
nohup sleep 200&
jobs
fg 1

sh:

echo -e "OK! \h" # -e 开启转义

No comments:

Post a Comment