Terminal shortcut: Ctrl
+ Alt
+t
Basic commands
View letter:
df -Th
Download source replacement
1. Settings -> Update -> Update settings -> Intelligent mirroring OFF-> source switching mirror (Ali source)
2. Download the update source
sudo apt-get update
fish
Installation fish
sudo apt-get install fish
Terminal to enter the fish
View fish path
which fish
# 我的路径如下
/usr/bin/fish
Modify the default shell
chsh -s /usr/bin/fish
Installation nvm next fish
In cd ~
the next home directory, followed by the implementation
git clone https://github.com/creationix/nvm.git ~/.nvm
cd ~/.config/fish
git clone git://github.com/passcod/nvm-fish-wrapper.git nvm-wrapper
Configurationfish
In the ~/.config/fish/
creation directory config.fish
file, add the following content
source ~/.config/fish/nvm-wrapper/nvm.fish
It should be configured, so restart the terminal, the default will be to search nvm
, view version input
nvm --version
Download node
version
nvm install 10.15.0
This time, the default will be the first downloadable version as the default
Modify the default node
version
nvm alias default [node版本]
This prompted me to do a version of the default settings, but after entering the terminal, or can not automatically enter node
, but the view
nvm ls
Before they can find downloadable node
version, so I found just set automatically enter the nvm
configuration file, add the bottom
vim ~/.config/fish/config.fish
nvm use 10.15.0
Restart the terminal to check whether goodnode
node -v
fish theme
Command Line:
fish_config
Softlinks
Softlinks:
sudo ln -s [目标路径] [链接路径]
sudo ln -s /media/liujianli/shareE/ work
Delete soft links
sudo rm -rf [链接路径]