終端命令 mac

2022-08-19 08:33:07 字數 727 閱讀 5899

1,打來終端

進入專案根目錄

cd 進入

cd .. 返回上一層

ls 檢視當前目錄下的子檔案

vim 是修改當前目錄檔案  注:在該目錄下也可以建立新的目錄

esc+:+wq  是修改後退

mkdir 建立目錄

mv 移動檔案

例:想把mac.text 移到桌面    mv /system/library/extensions/mac.text /user/使用者名稱/desktop

rm 刪除檔案

cp 拷貝檔案

pwd   顯示當前目錄的路徑名

date   顯示系統的當前日期和時間

cal     顯示日曆

clear   清除螢幕或視窗內容

pod '第三方檔案', '~>版本號,不寫預設最新版本'

pod update  更新pod檔案

pod install 安裝第三方

如果報錯 the version of cocopods used to generate the lockfile(1.2.0) is higher than...

執行命令 pod repo update操作更新本地repo的內容

~/library/developer/xcode/deriveddata  xcode的快取檔案  定時刪除

mac 終端命令

mkdir建立 rmdir 刪除 mvdir dir1 dir2 移動 cd 改變目錄 pwd 顯示當前目錄的路徑名 ls 現實當前目錄內容 dircmp dir1 dir2 比較兩個目錄的內容 cp file1 file2 複製檔案 rm 刪除檔案 mv 移動檔案 find name c prin...

Mac終端命令

目錄操作 命令名功能描述 使用舉例 mkdir 建立乙個目錄 mkdir dirname rmdir 刪除乙個目錄 rmdir dirname mvdir 移動或重新命名乙個目錄 mvdir dir1 dir2 cd改變當前目錄 cd dirname pwd顯示當前目錄的路徑名 pwdls 顯示當前...

mac 終端命令

rm rf 檔名 刪除檔案不提示 sudo su 切換到root chmod r 664 檔名。profile 檔案預設許可權位664 滿許可權是777 mkdir 新建資料夾 ssh root apria.cn 登陸遠端 lsof i rpm qa grep ssh 檢視ssh安裝包。rpm qa...