... get a non-zero exit code: ls /nonexisting_dir &> /dev/null echo $? Output 2. You can use the status code to figure out why the command failed.
確定! 回上一頁