uname -m
sudo dpkg -i *.deb
sudo cp /usr/share/applications/*.desktop /etc/xdg/autostart/
sudo tar -zxvf *.tar.gz -C ~/software/ # -C代表指定解压目录
xz -d *.tar.xz # 解压为tar文件
tar xvf *.tar # 解压tar文件
unzip * -d ~/dir # -d代表指定解压目录
unzip -O GBK *
./idea # 假设二进制文件名为idea
sudo bash start.sh
cd /etc
sudo vim sudoers
# 在该部分下方添加:用户名 ALL=(ALL) NOPASSWD:ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
insight ALL=(ALL) NOPASSWD:ALL
如果错误的修改导致无法执行sudo命令,在
/etc/目录下执行pkexec visudo即可,报错信息如下:
/etc/sudoers: 语法错误 near line 28 <<<
sudo: /etc/sudoers 中第 28 行附近有解析错误
sudo: 没有找到有效的 sudoers 资源,退出
sudo: 无法初始化策略插件
设置应用快捷方式
博客链接
配置环境变量
sudo vim /etc/profile
# 或
sudo vim ~/.bashrc
source /etc/profile # /etc/profile为配置文件,其余配置文件同理
sudo apt-get install *
sudo apt list --installed # 或dpkg --list
sudo apt-get remove –-purge * #卸载软件同时删除配置文件
sudo apt-get remove * #卸载该软件