#!/bin/bash echo "該程序的pid為$$" exec 1>/tmp/test.log 2>&1 ls -l /proc/$$/fd/. 執行該指令碼sh /tmp/test.sh,然後檢視/tmp/test.log內容為:.
確定! 回上一頁