update-rc.d SERVICE OPTIONS
service --status-all
--status-all
initctl list | egrep -v " stop/waiting|^tty" ; service --status-all 2>&1 | egrep -v "\[ (\?|\-) \]"
initctl list
service --status-all > myfile.txt 2&>1
systemd
service --status-all
就可以了,虽然我还得找到一个解释图例以确定这些符号的确切含义。 - Lance Roberts--status-all
中存在一个错误,请参考这个AU的问题:http://askubuntu.com/questions/55992/running-services - enzotibinitctl list | egrep -v " stop/waiting|^tty" ; service --status-all 2>&1 | egrep -v "\[ (\?|\-) \]"
- kertinitctl list
以获取这些服务的状态)service --status-all > myfile.txt 2&>1
会将几行写入文件,但剩余的内容仍然显示在终端上。我也无法使用grep筛选输出内容。 - Tyler Colliersystemd
吗? - Aaron Franke