?? nohup.bash
字號(hào):
## BASH VERSION OF nohup COMMAND#ctype(){ path=$(builtin type -p $cmd | sed 1q) if [ -n "$path" ]; then echo "$path" return 0 else case "$cmd" in */*) [ -x "$cmd ] && { echo "$cmd" ; return 0; } ;; *) case "$(builtin type -t $cmd)" in "") return 1;; *) echo "$cmd" ; return 0;; esac ;; esac fi return 1}trap '' HUP # ignore hangupcommand=$(ctype "$1")oldmask=$(umask)umask u=rw,og= # default mode for nohup.outexec 0< /dev/null # disconnect inputif [ -t 1 ]; then # redirect output if necessary if [ -w . ]; then echo 'Sending output to nohup.out' exec >> nohup.out else echo "Sending output to $HOME/nohup.out" exec >> $HOME/nohup.out fifiumask "$oldmask"# direct unit 2 to a fileif [ -t 2 ]; then exec 2>&1fi# run the commandcase $command in*/*) exec "$@" ;;time) eval "$@" ;;*) "$@" ;;esac
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -