Mic*_*ann 10 xfce xubuntu command-line shutdown
我不是在寻找shutdown
或reboot
等。我想知道如何通过执行与单击菜单中的“关闭”按钮具有相同效果的命令来从终端关闭 Xubuntu。
与此问题类似,但适用于 Xubuntu/XFCE。
Byt*_*der 15
我想你想要的是xfce4-session-logout
(在线联机帮助页)。
手册页摘录(重新格式化、过滤):
The xfce4-session-logout command allows you to programmatically logout
from your Xfce session. It requests the session manager to display the
logout confirmation screen, or, if given one of the command-line
options below, causes the session manager to take the requested action
immediately.
OPTIONS:
--logout Log out without displaying the logout dialog.
--halt Halt without displaing the logout dialog.
--reboot Reboot without displaying the logout dialog.
--suspend Suspend without displaying the logout dialog.
--hibernate Hibernate without displaying the logout dialog.
--fast Do a fast shutdown. This instructs the session manager not to
save the session, but instead to quit everything quickly.
Run Code Online (Sandbox Code Playgroud)
所以要关闭,请使用
xfce4-session-logout --halt
Run Code Online (Sandbox Code Playgroud)
并重新启动,使用
xfce4-session-logout --reboot
Run Code Online (Sandbox Code Playgroud)
如果您只想获得可以手动选择操作的对话,请不带参数运行它:
xfce4-session-logout
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
28483 次 |
最近记录: |