C 教程 Ubuntu常見有用命令

2021-10-01 17:10:44 字數 1448 閱讀 5552

title

date

br#ubuntu常見有用命令

2019-03-02 17:35:01 -0800

linux

技術

sudo dpkg -i

sudo apt-get purge

mount -o loop /filename.iso /mnt/tmp

umount /mnt/tmp

chmod +x filename.sh

tar -xvcf ./filename.tar

sudo /etc/init.d/networking restart

在 oh-my-zsh 下, 如果我們按照上述檔案進行複製, 我們會得到這樣的錯誤提示. zsh: no matches found: 我們只需要將

remote_username@ip:path/*.csv local_dirname

這一字串用引號包含起來進行

scp 「remote_username@ip:path/*.csv」 local_dirname

nohup &

這樣就可以在即使關閉ssh連線之後,伺服器依然計算了。特別的,當我們用的是matlab且不用圖形介面時,需要輸入

nohup matlab -nosplash -nodesktop -r &

即可。

du -h #得到每個檔案的大小

df -h #磁碟的大小容量等

ls -lrth

sudo vi /etc/profile

source /etc/profile

環境變數的寫法:

export path=:$path

vi ~/.bashrc

source ~/.bashrc

git add . (注:別忘記後面的.,此操作是把test資料夾下面的檔案都新增進來)**

git commit -m "提交資訊" (注:「提交資訊」裡面換成你需要,如「first commit」)

git push -u origin master (注:此操作目的是把本地倉庫push到github上面,此步驟需要你輸入帳號和密碼)

linux有用命令

dpkg s package do not use command below md5sum yourstring sha1sum yourstring sha256sum string please use the command echo n yourstring md5sum echo n y...

linux shell 有用命令

url 命令大全 url url 包製作 url cpio,dump,restore,rpm 將 etc下的所有普通檔案都備份到 opt etc.cpio,使用以下命令 find etc type f cpio ocvb opt etc.cpio 將系統上所有資料備份到磁帶機內,使用以下命令 fin...

Ubuntu常見命令

通過這 10 個基礎命令開始掌握 linux 命令列。你可能認為你是 linux 新手,但實際上並不是。全球網際網路使用者有 3.74 億,他們都以某種方式使用 linux,因為 linux 伺服器佔據了網際網路的 90 大多數現代路由器執行 linux 或 unix,top500 超級計算機 也依...