Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2475

Raspberry Pi OS • Something Like .bash_logout, But for Shutdown

$
0
0
Hi all


If you edit your ~/.bash_logout file,
and add these lines to it:

Code:

echo "bye"sleep 0.5s
then you will see this message whenever you end your session using Ctrl-D.


If you try to run the command

Code:

shutdown -P now
you will see that it does not run the echo "bye" code.

Is there maybe another file that we can use for code that is relevant for shutdown?


Thank you

Statistics: Posted by spaceman5 — Thu Aug 29, 2024 4:43 pm



Viewing all articles
Browse latest Browse all 2475

Trending Articles