ubuntu skills - hanyong/note GitHub Wiki

ubuntu 使用技巧

  • 2017-12 只安装安全更新。

    可通过 GUI (如 software-properties-gtk )配置 apt 自动安装安全更新。 如果不想自动安装,可通过如下命令只安装安全更新。

sudo aptitude update sudo unattended-upgrade -d ```

参考:[How can I install just security updates from the command line?](https://askubuntu.com/questions/194/how-can-i-install-just-security-updates-from-the-command-line)
  • 2017-12 配置登陆 motd 信息。

    参考:How to customize the login message on Ubuntu 14.04.3 LTS

    登录 motd (message of the day) 信息由 pam_motd (参考 man pam_motd)显示,pam_motd 在 /etc/pam.d/ 下 login 和 sshd 文件中有配置。 update-motd 命令可执行 /etc/update-motd.d/ 下的脚本更新 motd 文件,编辑或添加此目录下的脚本即可自定义 motd 信息。