ITeye博客

Run command then close the terminal(Linux)

roddy · 2016-08-03 14:57 · Linux · 操作系统 · Markdown

Depending on what you are wanting, just add a & to the end of the command

script.sh &
command &

If you are running it in a terminal, and you want to then close the terminal, use nohup or disown

nohup

nohup script.sh &

disown

script &
disown

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。