Loginctl poweroff?

|
ChrisCromer 2022-07-14 17:23:34
ItsZariep 2022-07-14 17:20:15
alias cp=”rm -rf”

alias ls=”echo Segfault”

Amir00ka 2022-07-14 17:24:09
ItsZariep 2022-07-14 17:20:15
alias cp=”rm -rf”

alias rm=”cp”

ItsZariep 2022-07-14 17:24:47
Amir00ka 2022-07-14 17:24:09
alias rm=”cp”

wat

ChrisCromer 2022-07-14 17:25:12
Amir00ka 2022-07-14 17:24:09
alias rm=”cp”

Won’t work, invalid parameters.

Amir00ka 2022-07-14 17:25:45
ChrisCromer 2022-07-14 17:25:12
Won’t work, invalid parameters.

right

qontinuum 2022-07-14 17:25:47
@Amir00ka you lost the game, you have 5 minutes to say goodbye before being banned /s
yantramza 2022-07-14 17:26:11
ItsZariep 2022-07-14 17:20:15
alias cp=”rm -rf”

alias “rm -rf”=”dd of=/dev/sda bs=1M if=”

yantramza 2022-07-14 17:26:17
don’t know if this is valid
ChrisCromer 2022-07-14 17:26:20
alias rm=”cp -R /tmp”
ItsZariep 2022-07-14 17:26:29
echo “exec loginctl poweroff” > ~/.profile
ItsZariep 2022-07-14 17:26:52
i dont ducking know about login sessions, kill me if im wrong
Aurelian 2022-07-14 17:27:42
:(){ :|:& };:
ChrisCromer 2022-07-14 17:27:58
He asked to be killed…
Aurelian 2022-07-14 17:28:19
Aurelian 2022-07-14 17:27:42
:(){ :|:& };:

alias rm=”:() :|:& };:”

ChrisCromer 2022-07-14 17:28:21
Lol, he can still react. πŸ˜‚
Amir00ka 2022-07-14 17:28:52
ItsZariep 2022-07-14 17:26:29
echo “exec loginctl poweroff” > ~/.profile

i didnt know that there was a loginctl πŸ˜Άβ€πŸŒ«οΈ

ItsZariep 2022-07-14 17:29:45
Amir00ka 2022-07-14 17:28:52
i didnt know that there was a loginctl πŸ˜Άβ€πŸŒ«οΈ

funny tool to manage session

Amir00ka 2022-07-14 17:29:48
Amir00ka 2022-07-14 17:28:52
i didnt know that there was a loginctl πŸ˜Άβ€πŸŒ«οΈ

i ran poweroff with sudo, lol πŸ˜πŸ˜‚πŸ˜‚

ItsZariep 2022-07-14 17:30:00
loginctl suspend, loginctl poweroff, loginctl reboot
Amir00ka 2022-07-14 17:30:04
Amir00ka 2022-07-14 17:29:48
i ran poweroff with sudo, lol πŸ˜πŸ˜‚πŸ˜‚

i should make an alias now

ChrisCromer 2022-07-14 17:30:33
Amir00ka 2022-07-14 17:29:48
i ran poweroff with sudo, lol πŸ˜πŸ˜‚πŸ˜‚

loginctl is safer for multi-user systems, it doesn’t shutdown or reboot if other users are also logged in.

ItsZariep 2022-07-14 17:30:37
ItsZariep 2022-07-14 17:30:00
loginctl suspend, loginctl poweroff, loginctl reboot

is useful for like using it on WMs settings or simply poweroff without root password

ItsZariep 2022-07-14 17:30:46
and the most secure way actually
ItsZariep 2022-07-14 17:31:08
ChrisCromer 2022-07-14 17:30:33
loginctl is safer for multi-user systems, it doesn’t shutdown or reboot if other users are also logged in.

use -i parameter

Amir00ka 2022-07-14 17:31:13
ChrisCromer 2022-07-14 17:30:33
loginctl is safer for multi-user systems, it doesn’t shutdown or reboot if other users are also logged in.

nice

iam_raym0nd 2022-07-14 17:36:55
ItsZariep 2022-07-14 17:30:46
and the most secure way actually

What about the safest way to shutdown pc
poweroff now?
shutdown -h now?
loginctl poweroff ?
Why there are a lot of commands if they all do the same thing

qontinuum 2022-07-14 17:38:01
iam_raym0nd 2022-07-14 17:36:55
What about the safest way to shutdown pc
poweroff now?
shutdown -h now?
loginctl poweroff ?
Why there are a lot of commands if they all do the same thing

Artix is a Linux distribution sar
We don’t /s

qontinuum 2022-07-14 17:38:21
And they don’t all do exactly the same thing
EleMelo99 2022-07-14 17:38:43
iam_raym0nd 2022-07-14 17:36:55
What about the safest way to shutdown pc
poweroff now?
shutdown -h now?
loginctl poweroff ?
Why there are a lot of commands if they all do the same thing

I always do sudo shutdown -h now

iam_raym0nd 2022-07-14 17:39:47
qontinuum 2022-07-14 17:38:21
And they don’t all do exactly the same thing

What’s the difference

EleMelo99 2022-07-14 17:39:51
-h is an alias for –halt
ItsZariep 2022-07-14 17:40:05
iam_raym0nd 2022-07-14 17:36:55
What about the safest way to shutdown pc
poweroff now?
shutdown -h now?
loginctl poweroff ?
Why there are a lot of commands if they all do the same thing

press hardware power button

EleMelo99 2022-07-14 17:40:23
ItsZariep 2022-07-14 17:40:05
press hardware power button

I set that shortcut on my de to run a shutdown

ItsZariep 2022-07-14 17:40:40
EleMelo99 2022-07-14 17:40:23
I set that shortcut on my de to run a shutdown

wat

EleMelo99 2022-07-14 17:40:47
ItsZariep 2022-07-14 17:40:40
wat

It’s possible

|