sudo apt-cache search xxx
sudo apt install xxx
sudo dpkg -i xxx.deb
sudo apt install -f
sudo apt install ./xxx.deb
sudo chmod +x xxx.bin
sudo ./xxx.bin
sudo chmod +x xxx.sh
./xxx.sh
sudo apt install ibus-pinyin
sudo reboot
sudo apt install chromium-browser
sudo apt install vim
sudo apt install ./teamviewer_xxx_[arch].deb
sudo apt install openssh-server
sudo service ssh start
# could not load host key
sudo dpkg-reconfigure openssh-server
sudo service ssh status
- The easiest way to install for Debian/Ubuntu based distributions is to download and install the .deb package (64-bit) either through the graphical software center if it’s available or through the command line with:
sudo dpkg -i <file>.deb
sudo apt install -f # Install dependencies
- The repository and key can also be installed manually with the following script:
Then update the package cache and install the package using:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt install apt-transport-https
sudo apt update
sudo apt install code # or code-insiders
sudo apt update
sudo apt upgrade
sudo gedit /etc/apt/souce.list
sudo add-apt-repository ppa:user/ppa-name
cd /etc/apt/sources.list.d/
sudo apt automove
sudo apt clean
sudo apt autoclean
sudo du -sh /var/cache/apt
sudo apt-key list
sudo apt-key add xxx
sudo apt-key del xxx
sudo apt-key update
cd .local/share/Trash/
sudo rm -rf .local/share/Trash/*
sudo du -sh .cache/thumbnails
sudo rm -rf .cache/thumbnails/*
sudo touch xxx.xxx
sudo mkdir xxx
# xxx.zip
sudo unzip xxx.zip
# xxx.rar
sudo unrar x xxx.rar
# xxx.tar.gz
sudo tar zxvf xxx.tar.gz
sudo gedit /etc/network/interfaces
sudo /etc/init.d/networking restart
ifconfig
pip install --upgrade xxx
df -hl
sudo apt install ntfs-3g
sudo reboot
sudo fdisk -l
sudo mkdir /media/*/usbhdd0 # *: username
sudo chown *:* /media/*/usbhdd0
sudo mount -t auto -o uid=*,gid=* /dev/sd*1 /media/*/usbhdd0
sudo mount /dev/sda1 /media/pi/usbhdd
sudo umount /dev/sda1
sudo gedit .bashrc
source /xxx/xxx/xxx/xxx.sh
cd /xxx/Xilinx/SDK/xxx/data/xicom/cable_drivers/lin64/install_script/install_drivers
sudo ./install_drivers
# or
sudo ./install_digilent.sh
功能 | 快捷键 |
---|---|
打开Terminal | Ctrl+Shift+T |
自动补全 | Tab |
控制面板——程序——启用或关闭Windows功能——适用于Linux的Windows子系统
设置——更新和安全——开发者选项——开发人员模式
sudo apt install openssh-server
# sudo apt install openssh-client
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
sudo vim /etc/ssh/sshd_config
Port 23 # 端口22被占用
ListenAddress 0.0.0.0
PasswordAuthentication yes # 允许密码登录
下载VcXsrv
sudo apt install ubuntu-desktop unity compizconfig-settings-manager
export DISPLAY=localhost:0
ccsm
sudo compiz
- id为1时,采用md5进行加密;
- id为5时,采用SHA256进行加密;
- id为6时,采用SHA512进行加密。
openssl passwd -id -salt 'xxx' 'xxx'