• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 7 : Shutting Down, Suspending, or Rebooting Commands (systemctl)

by admin

In CentOS/RHEL 7, the systemctl utility replaces some older power management commands used in previous versions. The table below compares the older and new equivalent systemctl commands. The old commands listed in the table still exist for compatibility reasons.

Older Command systemctl equivalent Description
halt systemctl halt Halts the system
poweroff systemctl poweroff Powers off the system
reboot systemctl reboot Restarts the system
pm-suspend systemctl suspend Suspends the system
pm-hibernate systemctl hibernate Hibernates the system
pm-suspend-hybrid systemctl hybrid-sleep Hibernates and suspends the system

Suspend

– Suspending the system saves the system state in RAM and with the exception of the RAM module, powers off most of the devices in the machine.
– When you turn the machine back on, the system then restores its state from RAM without having to boot again.
– Because the system state is saved in RAM and not on the hard disk, restoring the system from suspend mode is significantly faster than restoring it from hibernation, but as a consequence, a suspended system state is also vulnerable to power outages.

Hibernate

– Hibernating the system saves the system state on the hard disk drive and powers off the machine.
– When you turn the machine back on, the system then restores its state from the saved data without having to boot again.
– Because the system state is saved on the hard disk and not in RAM, the machine does not have to maintain electrical power to the RAM module, but as a consequence, restoring the system from hibernation is significantly slower than restoring it from suspend mode.

Filed Under: Linux

Some more articles you might also be interested in …

  1. protonvpn-cli connect Command Examples
  2. Linux Interview Questions – Linux Printing (CUPS)
  3. pstree Command Examples in Linux
  4. How to Set “dev_loss_tmo” Value Persistently Using Udev Rule
  5. “java” command does not run the JVM that has been installed
  6. 7 Useful Find Command Examples to Locate files to remove when a filesystem is full
  7. apt Command Examples in Linux
  8. md5sum Command Examples in Linux
  9. ledctl Command Examples in Linux
  10. ipcmk Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • raw: command not found
  • raw Command Examples in Linux
  • rankmirrors Command Examples in Linux
  • radeontop: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright