You are not logged in.

#1 2020-11-23 16:38:57

serialschoenberg
Member
Registered: 2020-04-01
Posts: 26

[solved] without gui

Hello,

are there commands I can write in aterminal to
1. suspend th session
or
2. stop the computer

thanks

rb

Last edited by serialschoenberg (2020-11-23 19:37:03)

Offline

#2 2020-11-23 18:05:19

sleekmason
zoom
Registered: 2018-05-22
Posts: 584

Re: [solved] without gui

systemctl suspend

and:

systemctl poweroff

Respectively

Offline

#3 2020-11-24 01:06:06

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,920
Website

Re: [solved] without gui

You can also use the built-in BunsenLabs utility from the command line. Try 'bl-exit --help' to see the options.
But in the case of suspend and poweroff it will call systemctl anyway. smile

(However, bl-exit should also work on systems not using systemd.)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Online

#4 2020-11-24 11:03:36

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,285
Website

Re: [solved] without gui

There are also historical /sbin/shutdown and /sbin/reboot (and probably more) that are nowadays links to systemctl

ls -alh /sbin/shutdown
lrwxrwxrwx 1 root root 14 Apr 27  2020 /sbin/shutdown -> /bin/systemctl
ls -alh /sbin/reboot 
lrwxrwxrwx 1 root root 14 Apr 27  2020 /sbin/reboot -> /bin/systemctl

Last edited by brontosaurusrex (2020-11-24 11:05:54)

Offline

Board footer

Powered by FluxBB