0
我嘗試在Max OSX(10.9.4)的終端窗口中重定向命令的輸出並獲取錯誤消息。當我嘗試這個簡單的命令:OSX中的bash重定向不起作用
ls > file_list.txt
我得到這個錯誤:
-bash: file_list.txt: Operation not supported
任何人的想法?
感謝
我嘗試在Max OSX(10.9.4)的終端窗口中重定向命令的輸出並獲取錯誤消息。當我嘗試這個簡單的命令:OSX中的bash重定向不起作用
ls > file_list.txt
我得到這個錯誤:
-bash: file_list.txt: Operation not supported
任何人的想法?
感謝
這是你的錯誤,如果你嘗試創建像/dev
某處的文件,該文件是安裝點爲一個特殊的文件系統,不(通常)允許您創建文件:
$ cd /dev
$ ls > file_list.txt
bash: file_list.txt: Permission denied
# Oops, we get permission denied before we even try to create the file.
$ sudo -s
Password:
# ls > file_list.txt
bash: file_list.txt: Operation not supported
'touch file_list.txt'說什麼? – anubhava 2014-09-24 20:49:29
是的,這聽起來像一個許可或其他文件系統相關的問題。 – 2014-09-24 20:50:22
'ls -l file_list *'說什麼?也許它是一個設備專用文件或目錄... – 2014-09-24 21:07:45