- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- How to shutdown in logoff mode
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-2007 07:57 PM
08-07-2007 07:57 PM
I use Alt+Ctrl+Del to restart a linux machine in logoff mode. what is the command for shutting down a linux machine in logoff mode ?
Please send me the command
Thanks with regards
shahid
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-2007 08:05 PM
08-07-2007 08:05 PM
Re: How to shutdown in logoff mode
I think it's better to login and execute "shutdown -h now". I don't know whether exists a key-combination tho shutdown.
you could press five seconds the start button of your box but that isn't really advisable.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-08-2007 12:16 AM
08-08-2007 12:16 AM
Re: How to shutdown in logoff mode
If you want to change the Ctrl-Alt-Del restart function or disable it entirely, look into /etc/inittab and find a line that has the word "ctrlaltdel" on it. This line defines what happens when Ctrl-Alt-Del key combination is pressed. You can change it to execute any command you like.
(Because Windows logon dialog requires pressing Ctrl-Alt-Del, it is recommended to change this setting to some non-default value if you install a Linux machine among several Windows machines: you don't want your Linux to restart if a Windows admin accidentally tries to use a wrong keyboard...)
If your hardware has a functional ACPI implementation and acpid is running, most current Linux distributions can be safely shut down by a _short_ press of the power button.
A long press of the power button (4 seconds or more) causes an abrupt shutdown, but a short press just sends an ACPI event to the OS. In Linux, the event is handled by the acpid daemon, which is usually configured to run "shutdown -h now" in that situation.
Some X display managers (like kdm or gdm) may have an option that allows the machine to be shut down from an option in the login dialog. If you're using KDE desktop, go to Control Center -> System Administration -> Login Manager and examine the Shutdown tab. My knowledge of Gnome is rather limited: it probably has something similar available.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-08-2007 03:30 AM
08-08-2007 03:30 AM
SolutionYou can also use the shutdown system account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-08-2007 06:23 PM
08-08-2007 06:23 PM
Re: How to shutdown in logoff mode
one better commented out the ctrlaltdel target in /etc/inittab.
If the board supports it (I think most do these days) I usually use "halt -p" to shutdown the box completely with a power off
(maybe comparable to Solaris "shutdown -i5 -g0 -y")
Alternatively, you can use "shutdown -h now"
or "init 0".
If you want to reboot, use the -r option instead of -h with shutdown, or simply say "init 6".
Of course, all these commands require to be executed by root.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP