| -S | read password from stdout |
# /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf # sudo passwd root; su root [Seat:*] user-session=ubuntu greeter-show-manual-login=true
apt remove # 删除软件包,保留软件的配置文件
apt purge # 同时清除软件包和软件的配置文件dpkg -i xxx # 安装 .deb 包
dpkg --configure -a # 打断安装
dpkg -l | grep xxx # 查询相关包信息
dpkg -P xxx # 彻底卸载
dpkg --purge xxx
# dpkg-query
dpkg -S xxx xxx # 搜索拥有该(1~多个)文件的软件包(--search)chsh -s `which zsh`
echo ${SHELL}| 配置文件: | /etc/mongodb.conf # 允许外部访问
bind_ip = 0.0.0.0 |
|---|---|
| 命令: | sudo service mongodb stop
sudo service mongodb start
sudo service mongodb restart
mongo #: 交互式 |
find ~/.local/ | xargs grep -ri "xxx"
find ~/.local/ | xargs grep -ri "xxx" -l
find ~/.local/ -name "xxx"sudo ifconfig enp5s0 down
sudo ifconfig enp5s0 up| gedit: | 文本编辑器 |
||||||
|---|---|---|---|---|---|---|---|
| VLC: | 多媒体播放器 |
||||||
| draw.io: | 流程图编辑器 |
||||||
| VMTools: | 虚拟机与实体机之间文件拖动 |
||||||
| FastoRedis: | redis GUI |
||||||
| wechat: | |||||||
| 下载: |
|
||||||
| zsh: | 编辑 -> 配置文件首选项 |
||||||
| mysql: |
|
||||||
| shutter: | 截屏 |
||||||
| net-tools: | ifconfig --version |
||||||
| dconf-tools: | org -> gnome -> applications -> desktop -> terminal |
- unrar e xxx.rar
- unzip xxx.zip -d xxx
# --system-site-packages 继承系统包目录
# --no-site-packages 不继承系统包目录
virtualenv xxx/xxx --no-site-packages -p $(which python3)
# ipython broswer tool
sudo apt install -y ipython-notebook
sudo apt install -y ipython3-notebook# /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback # set static IP auto enp5s0 iface enp5s0 inet static address 10.168.120.121 gateway 10.168.120.254 # must 254 netmask 255.255.255.0 # set second static IP(virtual IP) auto enp5s0:1 iface enp5s0:1 inet static address 10.168.120.122 gateway 10.168.120.254 # must 254 netmask 255.255.255.0 broadcast 10.168.120.255 dns-nameservers 202.106.0.20 8.8.8.8 219.141.140.10 219.141.136.10
sudo apt update
sudo apt upgrade
chmod -R u+x "$(pwd)/*.sh"
./install.shcat /proc/sys/vm/drop_caches # 默认是 0
sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches
free -m