特點(diǎn)
開源
免費(fèi)
- Linux發(fā)行版 = Linux Kernel + GNU + 桌面(Gnome /?no?m/) + 包管理
開源不等于免費(fèi) 免費(fèi)不等于開源
兼容
包管理
以Debian(['d?b??n])為例
安裝
- 通過軟件源安裝
sudo apt install package-name
sudo apt install git
- 通過軟件包安裝
sudo dpkg -i *.deb
wget http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3059_amd64.deb
sudo dpkg -i sublime-text_build-3059_amd64.deb
卸載
sudo apt remove package-name
sudo apt remove git
sudo dpkg -r package-name
sudo dpkg -r sublime-text_build-3059_amd64.deb
查詢
which package-name // 查詢運(yùn)行文件所在路徑
dpkg -s package-name // 查找包的詳細(xì)信息
Shell
oh-my-zsh
- 大小寫
cd ~/des # press tab
cd ~/Desktop
- alias
cat /etc/shells
vim ~/.oh-my-zsh/plugins/git/git.plugin.zsh
alias ga='git add'
alias gb='git branch'
alias gst='git status'
alias grv='git remote -v'
alias glum='git pull upstream master'
自定義命令
vim ~/.zshrc
alias sync-master="git checkout master && git pull upstream master && git push origin master"
alias ssh-zeaho-test="ssh dev@120.55.98.237"
. ~/.zshrc
- prompt
vim ~/.oh-my-zsh/themes/robbyrussell.zsh-theme
PROMPT='%{$fg_bold[blue]%}%M ${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
. ~/.zshrc
Terminator
快捷鍵
ctrl + c 停止
ctrl + w 刪除光標(biāo)前的命令參數(shù)
ctrl + a 將光標(biāo)移到最前
ctrl + e 將光標(biāo)移到末尾
ctrl + l 清屏
ctrl + r 搜索歷史命令
命令
ssh
ssh-keygen -t rsa -C "shenshuo@zeaho.com"
ssh-copy-id -i ~/.ssh/id_rsa.pub user@server-ip
find
find ./store
find ./store -name "*.md"
grep
grep "this" ./store/README.md
find ./store -name "*.md" | xargs grep "this"
開發(fā)
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.3/install.sh | bash
nvm install --lts
Deepin
精美的UI
豐富的軟件庫
Wine軟件穩(wěn)定性