將所有***都複製到乙個目錄
find ~/music/itunes/ -name *.*** -exec cp {} ~/desktop/music/ \;
新建檔案: touch index.html
檢視ip:ifconfig
檢視檔案的全路徑:pwd
新建資料夾:mkdir filename
mysql目錄 :/usr/local/mysql-5.6.11-osx10.7-x86_64/bin
mysql命令:./mysql -h localhost -u root -p
更改許可權:sudo chmod 777 profile
刪除svn資訊: sudo find /users/issuser/desktop/src -name ".svn" -exec rm -r {} \;
顯示.a檔案的屬性:find . -name *.a -exec lipo -info "{}" \;
顯示.framework檔案的屬性:find . -name *.framework|awk -f "/" ''|sed 's/.framework$//g'|xargs lipo -info;
如果要統計ios開發**,包括標頭檔案的,命令如下:
find . -name "*.m" -or -name "*.h" |xargs grep -v "^$"|wc -l
xcode iphonesimulator 所在位置:
搜尋檔案:
sudo find / -name "652b7aa5-0bff-4634-a65a-64c1583562de.mobileprovision"
xcode mobileprovision 檔案所在目錄
/users/username/library/mobiledevice/provisioning profiles/
修改資料夾許可權:
例:把驅動目錄下所有檔案設定到root讀寫,其他使用者唯讀(755)777全部 root
chmod -r 777 /system/library/extensions
xcode 專案殘餘: /users/issuser/library/developer/xcode
find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.h" -or -name "*.rss" ")" -print | xargs wc -l
shell命令列 雜記
echo命令輸入命令列密碼 echo passwd sudo s 命令 echo命令向需要root許可權的檔案追加內容 sudo bash c echo home makefile etc ld.so.conf make f makefile1 編譯指定makefile檔案 make n makef...
命令列 Git Bash命令列小結
展示當前完整路徑pwd 建立資料夾mkdir 建立檔案touch 刪除資料夾rm rf 刪除檔案rm 重新命名mv 展示當前路徑下檔案 除了隱藏檔案 ls 展示當前路徑下所有檔案ls a 展示當前路徑下所有檔案以及詳細資訊ls al 轉至某目錄cd 根目錄 上級目錄.當前目錄.檢視檔案cat 檔名稱...
git 命令列 和 cmd命令列
設定全域性使用者名稱 git config global user.name 區域性把global換成local 檢視全域性 git config global list 檢視git的狀態 git status 初始化 git into 名字 新增乙個檔案 git add readme.txt 刪除...