Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
シェルコマンドでデスクトップをロックしたい。これどうやってするの?
どのデスクトップ環境を使用していますか?
使用GNOME:
GNOME
gnome-screensaver-command -l
使用KDE:
KDE
qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock
使用xfce:
xfce
xflock4
xscreensaverインストーラーがある場合、これは機能します。
xscreensaver -lock
それ以外は、それはあなたが持っているDEに依存します。