【編程學習】Linux系統常用操作命令

git相關操作

git config --global user.name “xxxx” # 配置用戶信息:“你的名字或暱稱”
git config --global user.email [email protected] # 配置用戶信息:“你的郵箱”
git config --global credential.helper store # 永久記住密碼
git init # 初始化
git remote add origin https://gitee.com/用戶個性地址/HelloGitee.git
git add . #將當前目錄所有文件添加到git暫存區
git commit -m “xxxx”
git push xxx

文件操作

#複製
cp -r dir1 dir2 #將dir1及其dir1下所包含的文件複製到dir2下
cp -r dir1/. dir2 #將dir1下的文件複製到dir2,不包括dir1目錄

#其他
ls | wc -w #查看當前文件夾下有多少個文件及文件夾
pwd #顯示當前目錄

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章