我目前正在學習Bash shell並遇到指令ls -F
。我知道它的功能是將指標附加到項目列表中,以便區分不同的文件類型。我知道/
被追加到目錄,並且*
被追加到可執行文件。但是我已經檢查了ls命令的手冊頁,但找不到關於indicator => @ |的任何信息。使用'ls -F'時不同指標的含義
有人能告訴我他們代表什麼嗎?如果能夠告訴我需要的時候在哪裏找到這種信息會更好。
我目前正在學習Bash shell並遇到指令ls -F
。我知道它的功能是將指標附加到項目列表中,以便區分不同的文件類型。我知道/
被追加到目錄,並且*
被追加到可執行文件。但是我已經檢查了ls命令的手冊頁,但找不到關於indicator => @ |的任何信息。使用'ls -F'時不同指標的含義
有人能告訴我他們代表什麼嗎?如果能夠告訴我需要的時候在哪裏找到這種信息會更好。
嘗試info ls
「列出哪些信息」 下:
‘-F’
‘--classify’
‘--indicator-style=classify’
Append a character to each file name indicating the file type.
Also, for regular files that are executable, append ‘*’. The file
type indicators are ‘/’ for directories, ‘@’ for symbolic links,
‘|’ for FIFOs, ‘=’ for sockets, ‘>’ for doors, and nothing for
regular files. Do not follow symbolic links listed on the command
line unless the ‘--dereference-command-line’ (‘-H’),
‘--dereference’ (‘-L’), or
‘--dereference-command-line-symlink-to-dir’ options are specified.
Stack Overflow是用於編程和發展問題的站點。這個問題似乎與題目無關,因爲它不涉及編程或開發。請參閱幫助中心的[我可以詢問哪些主題](http://stackoverflow.com/help/on-topic)。也許[超級用戶](http://superuser.com/)或[Unix&Linux堆棧交換](http://unix.stackexchange.com/)會是一個更好的地方。另請參閱[我在哪裏發佈有關Dev Ops的問題?](http://meta.stackexchange.com/q/134306) – jww