arch=uname -m
> file
redirects stdout to file1> file
redirects stdout to file2> file
redirects stderr to file&> file
redirects stdout and stderr to filecommand > /dev/null 2>&1 &
run command in background, discard stdout and stderrcommand >> /path/to/log 2>&1 &
run command and redirect stdout and stderr to log file. >/dev/null 2>&1
means redirect stdout to /dev/null AND stderr to the place where stdout points at that timeyourcommand 2>&1 > /dev/null
In this case stderr is redirected to stdout (e.g. your console) and afterwards the original stdout is redirected to /dev/nullفرمان را اجرا میکند و خروجی را در nohup.out میریزد.
nohup yourcommand &