RHEL7: Boot, reboot, and shut down a system normally.

Share this link

Note: This is an RHCSA 7 exam objective.

Prerequisites

Switch on a physical server or a virtual machine (in this case, type: # virsh start vm).
Connect to the console.

Basic Management

To reboot the system, choose one command among these:

# reboot
# systemctl reboot
# shutdown -r now
# init 6
# telinit 6

To shutdown the system, choose one command among these:

# halt
# systemctl halt
# shutdown -h now
# init 0
# telinit 0

To switch off the system, choose one command among these:

# poweroff
# systemctl poweroff

Advanced Management

To suspend the system, type:

# systemctl suspend

To put the system into hibernation, type:

# systemctl hibernate

To put the system into hibernation and suspend it, type:

# systemctl hybrid-sleep

Additional Resources

Bob Cromwell provides some very interesting pages about Linux kernel details and the Linux boot process.

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 4.50 out of 5)
Loading...

11
Leave a Reply

Please Login to comment
3 Comment threads
8 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
5 Comment authors
gnutux95LisenetCertDepotreaz_mahmoodalgorisms Recent comment authors
  Subscribe  
newest oldest
Notify of
algorisms
Member
algorisms

These also will work:

telinit 0 #shutdown
telinit 6 #reboot

reaz_mahmood
Member
reaz_mahmood

So I have used the systemctl halt command, it halted the system. Now, how do I get back to normal operations from here ? (I am on a virtual machine.)

gnutux95
Member
gnutux95

My two cents …

shutdown -r is better because it warns the other users and you can put a time to plan the reboot and a message.

reboot / init 6 to go fast but often if the server is not in production.

Rq : I think hibernation is not a good idea for server… it’s better to keep it for Linux Desktop to avoid to use too much swap when you have more than 64G RAM for instance.

Upcoming Events (Local Time)

  1. Feb
    1
    Fri

    1. 8:30 am - View Details
      CentOS: Dojo, Brussels, Belgium.

RHCSA7: Task of the day

Allowed time: 10 minutes.
Create a XFS file system of 100MB. Mount it under /mnt. Then, increase its size by 50MB.

RHCE7: Task of the day

Allowed time: 15 minutes.
Configure a httpd server with a password protected directory under the /var/www/html/private directory.

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...