常用Linux指令

本地解压

1
[root@localhost ~]# tar -zxvf v2.26.2.tar.gz

解压后的配置, 编译, 安装:

1
2
3
4
5
[root@localhost ~]# cd git-2.26.2/
[root@localhost git-2.26.2]# make configure
[root@localhost git-2.26.2]# ./configure --prefix=/usr/local/git
[root@localhost git-2.26.2]# make profix=/usr/local/git
[root@localhost git-2.26.2]# make install

查询已经安装的某个包

1
rpm -qa | grep java

卸载某个包

1
2
yum -y remove java-1.7.0-openjdk-1.7.0.141-2.6.10.5.el7.x86_64
yum -y remove java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64

添加软链接

1
2
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
-------------本文结束感谢您的阅读-------------
可以请我喝杯奶茶吗