Questions tagged [halt]

14 questions
25
votes
1 answer

Why it is possible for normal users to power off computer?

I used the command poweroff and unexpectedly the system went off. I didn't used sudo therefore I didn't expect computer to be turned off. Why it was possible for me to use this command without root privilege?
Amir reza Riahi
  • 803
  • 1
  • 8
  • 20
2
votes
1 answer

Halt purpose: What does "you can perform low level maintenance" mean?

About halt in Linux in these places: What is the difference between the shutdown, halt and reboot commands? Understanding Shutdown, Poweroff, Halt and Reboot Commands in Linux What is halt command in Linux? Indicate the following: halt is usually…
Manuel Jordan
  • 1,414
  • 9
  • 33
2
votes
2 answers

Debian 9 halt does not really power off in new versions - why?

IMPORTANT: I am able to restore halt old behavior if I do: apt install sysvinit-core Plus: Old Red Hat based versions are able to power off with halt too. I am trying to understand why in Debian 9 you should not use halt to turn off your…
Luciano Andress Martini
  • 6,490
  • 4
  • 26
  • 56
1
vote
1 answer

What are MODERN uses for halt (non-power off) vs shutdown (power-off)?

I have read some fascinating threads about the history and implementation of the halt and shutdown commands (and equivalents, eg. runlevels and systemctl targets) across different versions of Unix(-like) OSes/Linux over the past several decades, and…
tgwdnghn
  • 27
  • 3
1
vote
2 answers

Halt execution of pasted multiline commands

I pasted a long list of commands into Bash, and in the middle of execution, I decided I wanted it to stop. Ctrl+Z and Ctrl+C did nothing. It just continues executing line after line. In the end, the commands required a service to be running, so I…
mbomb007
  • 113
  • 7
1
vote
0 answers

KDE system unexpectedly halts and reboots

I'm having issues trying to understand why my system randomly halts or reboots. Here are the specs of my system, retrieved using neofetch: .-/+oossssoo+/-. `:+ssssssssssssssssss+:` aeryan@aeryan-PC …
Aeryan
  • 11
  • 2
1
vote
1 answer

Debian10 Touchpad in basic mode after halt

I run Debian 10/Gnome on a Lenovo Y2P, so far without problem. In particular uname -a yields: Linux deepthought 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux Since I once ran sudo halt on 4.19.0-11-amd64, synclient -l…
Mat
  • 7
  • 2
1
vote
2 answers

Ability to halt/reboot server as user

I need to ability to halt an aws EC2 server as user. I found https://www.cyberciti.biz/tips/howto-linux-allow-users-to-shutdown-server.html but due to the fact that I need this feature on an aws EC2 instance, I don't have a static hostname, so I…
BitFreak
  • 215
  • 2
  • 13
1
vote
1 answer

How can I halt my new PC instead of poweroff when I call 'shutdown -H now'?

I want to have the message system halted after command shutdown -H now, but my new PC after this command power-off the machine. With my old PC that command worked fine. But my new PC is powered down after the command shutdown -H now instead of…
0
votes
2 answers

How can I make my looping shell script pause after a loop by sending something like ctrl-z and then be continuable?

I have a shell script that loops over files. Processing each file can take several hours (it is CPU/GPU-limited). Sometimes I want to pause the execution at the end of a loop, when a file is finished processing, but then be able to resume later on,…
d-b
  • 1,703
  • 2
  • 17
  • 26
0
votes
1 answer

Cross-platform way to determine if the current user has privlige to shutdown the machine (without actually attempting shutdown)

How can I check (in a safe way) if the current user has the permissions needed to shutdown the system on Unix & Linux? I'm writing a script that needs to check to see if the current user has the permission needed to shutdown the system. But, of…
0
votes
1 answer

Print message AFTER shutdown completes?

I am using a bash script with the shutdown command to halt my system. I know that shutdown can print a message as an argument. Here's my current command: shutdown -h now "Shutdown complete. You may now unplug the power." However, this prints my…
0
votes
0 answers

How do I make a cheat-code permanent on Knoppix 8.6.1?

Summary: How do I make the following cheat-code permanent on knoppix 8.6.1 on usb stick, because filesystem type is iso9660 (read-only) and won't let me edit /mnt-system/boot/isolinux/isolinux.cfg. Cheat code entered at boot prompt: knoppix…
dave99
  • 1
0
votes
0 answers

suddenly wifi internet disconnection

I have sometimes internet disconnection from my wifi connection to my home wifi modem. I have one Linux LMDE OS into my Lenovo IdeaPad 310 laptop, so in regular times I have this: so@notebook:~$ uname -a Linux notebook 4.9.0-9-amd64 #1 SMP Debian…
Soheil Paper
  • 1
  • 2
  • 13