gcc --version
sudo apt install gcc-8
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-8 /usr/bin/gcc
gcc --version
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
git clone https://github.com/lyfeyaj/sublime-text-imfix.git
cd sublime-text-imfix && ./sublime-imfix
git clone -b st3 https://github.com/rexdf/ChineseLocalization.git ~/.config/sublime-text-3/Packages/ChineseLocalization
cat /etc/issue
sudo lsb_release -a
grep -c ^processor /proc/cpuinfo
date -R # 查看
sudo dpkg-reconfigure tzdata # 修改,选择Asia/Shanghai
passwd 用户名
sudo apt install ttf-mscorefonts-installer
sudo fc-cache -f -v
解决方法
sudo apt-get install libcanberra-gtk-module
echo "deb [arch=amd64] https://repo.skype.com/deb stable main" | sudo tee /etc/apt/sources.list.d/skype-stable.list
wget https://repo.skype.com/data/SKYPE-GPG-KEY
sudo apt-key add SKYPE-GPG-KEY
sudo apt install apt-transport-https
sudo apt update
sudo apt install skypeforlinux
# or run:
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
# add Typora's repository
sudo add-apt-repository 'deb https://typora.io/linux ./'
sudo apt-get update
# install typora
sudo apt-get install typora
scp -P 22 -r user@host:/www/wwwroot/ c:/user/aa/
# -P 指定端口,默认为22;-r 目录操作;-i 验证文件登录。
# 示例1,下载rma文件夹到/mnt/d
scp -r [email protected]:/home/user/rma /mnt/d/
# 示例2,下载README.rst到当前路径(省略下载目的路径则默认为当前工作路径)
scp [email protected]:/home/user/rma/README.rst .
# 示例3,验证文件登录下载(jeanphy.online代表主机IP或域名)
scp -r -i aws.pem [email protected]:/home/ubuntu/online/myaddons/recard
scp -P 22 -r directory user@host:/www/wwwroot/
# 例如(上传默认目录为用户根目录)
scp README.rst [email protected]:/home/user/rma/ # 上传文件
scp -r src/img [email protected]: # 上传目录
sudo vim /etc/apt/sources.list.d/pgdg.list
# 添加如下一行内容保存
deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-11/12
cp /etc/apt/sources.list /etc/apt/sources.list.bak
# 在/etc/apt/sources.list文件前面添加如下条目
sudo vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
sudo apt-get update
sudo apt-get upgrade
sudo passwd root
sudo vim /etc/ssh/sshd_config
修改PermitRootLogin后的默认值为yes
sudo service ssh restart
https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/
git reset --hard HEAD^ 回退到上个版本
git reset --hard HEAD~3 回退到前3次提交之前,以此类推,回退到n次提交之前
git reset --hard commit_id 退到/进到 指定commit的sha码
git push origin HEAD --force 强推到远程
git reset --soft HEAD^ 撤销上次提交
curl -fsSL https://get.docker.com | bash -s docker --mirror aliyun