1. sudo dpkg -S fstrimfstrim 文件是ext4系统为了优化ssd而做的吗?
util-linux: /etc/cron.weekly/fstrim
表示 來自 util-linux 套件
2. util-linux 雜項系統工具
這個套件包含一些重要工具,其中大部份是用來維護你的系統。 這個套件裡一些較為重要的工具可以讓你分割你的硬碟、 查閱系統核心訊息、並建立新的檔案系統。
3. 安裝 Ubuntu 時 已預裝
4. 參閱为什么放在cron.weekly里面呢?
https://bugs.launchpad.net/ubuntu/+sour ... ug/1281202
你也可以改變 例如
/etc/cron.daily/fstrim
5. https://bbs.archlinux.org/viewtopic.php ... 8#p1199758如果错过cron.weekly的执行时间anacrontab是否会自动执行呢?
can I force the execution of weekly jobs to check if they produce output on syslog (without waiting one week)?
Sure.
具體要看你的 anacrontab 如何寫
6. http://superuser.com/questions/367863/h ... status-allservice --status-all
+,-, ? 各代表什么意思呢?
[?] means the service status isn't known (the init file does not output a status)
[+] means the service is running
[-] means the service is not running
7. sysv-rc-confsysv-rc-conf 我用这个管理启动的服务...但好像不好使哦...
按 - 是关闭一项服务, 为什么开机还会启动呢?
SysV init runlevel configuration tool for the terminal
sysv-rc-conf provides a terminal GUI for managing "/etc/rc{runlevel}.d/"
symlinks. The interface comes in two different flavors, one that simply
allows turning services on or off and another that allows for more fine tuned
management of the symlinks. Unlike most runlevel config programs, you can
edit startup scripts for any runlevel, not just your current one.
8. SysV 是早期開機機制 漸漸被 Upstart 開機機制取代
https://help.ubuntu.com/community/Ubunt ... g_Services
Please note that generally, you can use either traditional sysvinit scripts and the methods of working with them as well as the new upstart configs and the command: "service" interchangeably. It is however recommended you use the new upstart methods which are both forward and backward compatible.
8-1. sudo service lightdm start 就是 Upstart 的例子
9. Ubuntu 自 14.10 將引進另一個 開機機制 Systemd 將會漸漸取代 SysV 及 Upstart
http://www.phoronix.com/scan.php?page=n ... px=MTY3NDY
https://wiki.ubuntu.com/systemd