mac終端中顯示tree的命令
尋覓了良久終於找到了mac下如何在終端顯示tree的命令了,作為從linux下轉過來的人,還沒適應mac的finder,還是喜歡在命令列下檢視檔案。
命令:
find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
然後手動alias一下,在你的.bash_profile或者.zshrc中新增:
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
搞定
要是能顯示顏色和控制層級就更好了。
PS:也可以通過brew install tree 安裝。
相關推薦
mac終端中顯示tree的命令
尋覓了良久終於找到了mac下如何在終端顯示tree的命令了,作為從linux下轉過來的人,還沒適應mac的finder,還是喜歡在命令列下檢視檔案。 命令: find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
mac 終端中新增tree命令顯示檔案目錄結構
在Ubuntu下,通過 sudo apt-get install tree 可以使用tree命令,顯示檔案目錄列表,如圖所示: 在mac OS X系統下怎麼使用呢? 在終端輸入: cd $home 進入localhost目錄,再輸入: vim .bashrc 顯示結果如下(點選鍵盤上的i,
mac ffmpeg 中的錄製命令和分解與複用命令
mac中螢幕錄製命令: ffmpeg -f avfoundation -i 1 -r 30 out.yuv -f 指定使用 avfoundation 採集資料。 -i 指定從哪兒採集資料,它是一個檔案索引號。在我的MAC上,1代表桌面。 -r 指定幀率。按ffmpeg官方文
mac終端下svn常用命令
1. 將檔案checkout到本地目錄 1 svn checkout path(path是伺服器上的目錄) 2 例如:svn checkout svn://192.168.1.1/pro/domain 3 簡寫:svn co 2. 往版本庫中新增新檔案
如何讓 cygwin終端中顯示的中文改成英文
轉:http://blog.csdn.net/semilog/article/details/7870591 最新在用cygwin 在windows 下編譯u-boot,下了最新版的cygwin 1.7.15-1,結果裡面的有些提示顯示的是中文,如下圖: 這讓
使用 Sixel 圖形格式在終端中顯示縮圖
不久前,我們討論了 Fim,這是一個輕量級的命令列影象檢視器應用程式,用於從命令列
在終端中顯示圖片
浪費了“黃金五年”的Java程式設計師,還有救嗎? >>>
常用mac終端命令(持續學習中)
1. 修改截圖儲存路徑 defaults writecom.apple.screencapture location ~/Desktop/截圖資料夾名稱/ killallSystemUIServer 2. 修改截圖的陰影效果 defaults writecom.apple.scr
mac OS X下終端使用tree命令列目錄
1. 問題描述 相信很多使用過Linux的使用者都用過tree命令,它可以像windows的檔案管理器一樣清楚明瞭的顯示目錄結構。不過有是有並不是系統本身就自帶的,如果需要的話,Ubuntu下可執行下列命令安裝。 sudo apt-get i
Mac下在zsh中配置adb命令
origin 文件 androi auto 是你 shu str -i open Mac下自帶的終端默認黑白色的,對於一個技術宅來說不能忍啊。然後換成了iTerm,安裝上了zsh,安裝後界面如下: 這裏寫圖片描述 但是常用的adb命令卻找不到了,還向github上提
mac自己定義tree命令
class sed int tree clas file art post 配置 編輯文件: vim ~/.bash_profile 在文件末尾追加: alias tree="find . -print | sed -e ‘s;[^/]*/;
顯示和隱藏Mac隱藏文件的命令
bool art show owa div ack finder -a trac 顯示Mac隱藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true 隱藏Mac隱藏文件的命令:defa
如何在Mac的Finder中顯示/usr,/tmp,/var等隱藏目錄
/tmp com bsp mac efault 隱藏文件 usr 系統 顯示 在終端裏輸入下面命令即可讓它們顯示出來。 defaults write com.apple.finder AppleShowAllFiles -bool true 如果想恢復隱藏,可以用這個命
MAC 終端命令
訪問 掩碼 分屏 創建 cmp -c 刪除 span ati 這篇非原創,只是想有時間擼一遍,就偷過來了。 如何進入命令行操作模式 再圖形界面下,用finder 打開 應用程序 》實用程序》終端 如果連圖形界面都進不去了(比如安錯了顯示驅動),開機時按 F8,用-s
mac 終端 常用命令
history 下載 keyboard art 輸入 lock ins tro head 基本命令1、列出文件ls 參數 目錄名 例: 看看驅動目錄下有什麽:ls /System/Library/Extensions參數 -w 顯示中文,-l 詳細信息, -a
Mac 中顯示資源庫(Library)文件夾目錄的幾種方法
方法 flag 命令 lib 10.6 選擇 str div fin Mac中Library目錄在10.6.7系統之後默認隱藏的,要想找到此文件夾有如下幾種方法: 1. 用命令可以使其顯示:在終端中執行命令: chflags nohidden ~/Library 可顯示
mac終端的命令都失效的解決方法
命令 編輯 文本編輯 file 解決方法 失效 sbin 這一 bsp step1. 在terminal裏面輸入: export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin" 然後命令
Mac中Apache常用命令
忘記 con etc 停止 mac apache 記錄 pre def Apache常用命令記錄,還是記一下吧,總是忘記。 Apache常用命令: # sudo apachectl start // 啟動Apache服務 # sudo apachectl stop
linux tree命令以樹形結構顯示文件目錄結構
article ref winscp linu 傳遞 href 顯示文件 nbsp tree http://jingyan.baidu.com/article/acf728fd19c7eff8e510a3eb.html winscp 傳遞文件到ubuntu上用w
Mac 終端 Linux 命令總結(簡單命令)
更新 thead lena pass head 編輯器 遠程登錄 find 加上行號 目錄操作 命令名功能描述使用舉例 mkdir 創建一個目錄 mkdir dirname rmdir 刪除一個目錄 rmdir dirname mvdir 移動或重命名一個