ubuntu安装deb文件
sudo dpkg -i ***.deb
ubuntu卸载软件
sudo apt-get purge wine
ubuntu解压压缩包
sudo tar zxvf jdk-8u77-linux-x64.tar.gz
sudo unzip -x android-studio-ide-171.4408382-linux.zip
rar x test.rar
ubuntu压缩文件
zip -r hms_gallery_gp.zip HMS_Gallery_GP
启动studio
./studio.sh
后台运行程序
./studio.sh &
ubuntu环境变量
sudo gedit /etc/profile
source /etc/profile
sudo gedit ~/.bashrc
source ~/.bashrc
查询安装应用的信息结果输出到指定文件
apt list --installed ->output.txt
jdk版本切换
update-alternatives --config java
update-alternatives --config javac
查看端口
netstat命令各个参数说明如下:
-t : 指明显示TCP端口
-u : 指明显示UDP端口
-l : 仅显示监听套接字(所谓套接字就是使应用程序能够读写与收发通讯协议(protocol)与资料的程序)
-p : 显示进程标识符和程序名称,每一个套接字/端口都属于一个程序。
-n : 不进行DNS轮询,显示IP(可以加速操作)
即可显示当前服务器上所有端口及进程服务,于grep结合可查看某个具体端口及服务情况··
netstat -ntlp //查看当前所有tcp端口·
netstat -ntulp |grep 80 //查看所有80端口使用情况·
netstat -ntulp | grep 3306 //查看所有3306端口使用情况·
查看安装的所有软件
dpkg -l
例如:dpkg -l | grep ftp
查看软件安装的路径
dpkg -L ftp | grep ftp
whereis gcc:查看gcc安装路径;
which gcc:查看gcc运行路径
查看软件版本
aptitude show
例如:aptitude show ftp
virtualbox启动报错
获取 VirtualBox COM 对象失败.
应用程序将被中断.
Document is empty.
Location: '/home/cbx/.config/VirtualBox/VirtualBox.xml', line 1 (0), column 1.
/home/vbox/vbox-5.2.18/src/VBox/Main/src-server/VirtualBoxImpl.cpp[554] (nsresult VirtualBox::init()).
删除 /home/cbx/.config/VirtualBox/VirtualBox.xml
ping 网络
curl https://androidpartner.googleapis.com/v1/dynamicconfig/suites/CTS/modules/cts/version/8.0_r16?key=AIzaSyAbwX5JRlmsLeygY2WWihpIJPXFLueOQ3U
查看so文件信息
file libmorpho_hyperlapse_jni.so
改变文件所有者和所属组
chown 用户名 文件名 -R
chgrp 用户组 文件名 -R