1 列出系统service
# service存放的目录是:
/usr/lib/systemd/system/
etc/systemd/system/
systemctl list-unit-files
# 列出enable的服务
systemctl list-unit-files|grep enabled
2 开机时自动mount某个盘
修改/etc/fstab文件,在末尾加上一行:
/dev/sdb1 /data ext4 defaults 0 0
3 不解压查看压缩文件里面的内容
unzip -l ~/Downloads/target.zip ,注意参数是小写的 L ,不是大写的 i
tar -tvf filename.tar.gz