Mac OSX Terminal Tip 1 (Advanced ‘ls’ Display)


add the following to the file ‘.bash_profile’ in the home directory

alias ls=”ls -GFv”

-G :以彩色顯示
-v :終端機編碼設定為UTF8時,可正確顯示硬碟內的中、日文檔名
-F :目錄後顯示 (`/’), 可執行檔後顯示(`*’) ,symbolic link後顯示(`@’), an equals sign (`=’) after each socket, a percent sign (`%’) after each whiteout, and a vertical bar (`|’) after each that is a FIFO.

Leave a Reply

You are visitor number several since September 1, 2001

Copyright Xiaoquan (Michael) Zhang, 2004-2020. All rights reserved.
All trademarks property of their owners.