• 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

poweroff Command Examples in Linux

by admin

The poweroff command closes out filesystems, shutdowns the system, and power it off. Because this command immediately stops all processes, it should be run only in single-user mode. If the system is not in runlevel 0 or 6, poweroff calls shutdown -h, then performs a poweroff.

Syntax:

# poweroff [options]

poweroff Command Examples

1. To shutdown the machine:

# poweroff 

2. Call reboot or halt and not shutdown, even when shutdown would normally be called. This option is used to force a hard halt or reboot:

# poweroff -f
# poweroff --force 

3. To instructs the halt command to instead behave as poweroff:

# poweroff -p
# poweroff --poweroff 

4. Do not shutdown but make an entry into wtmp file:

# poweroff -w
# poweroff --wtmp-only 

5. Shut down network interfaces before reboot.

# poweroff -i

6. Place hard drives in standby mode before halt or poweroff.

# poweroff -h

7. Suppress writing to /var/log/wtmp.

# poweroff -d

8. Suppress normal call to sync.

# poweroff -n

5. Set to the verbose mode:

# poweroff --verbose 

Filed Under: Linux

Some more articles you might also be interested in …

  1. dpkg-reconfigure Command Options
  2. How to edit Virtual Machine Hardware in RedHat Virtualization
  3. debsecan: command not found
  4. virt-install: Command Not Found
  5. chpasswd Command Examples in Linux
  6. How to move /var on a separate disk as a separate mount point (Online)
  7. CentOS / RHEL 6,7 : Why the files in /tmp directory gets deleted periodically
  8. “polkit code=exited status=1/FAILURE” – PolicyKit Failing to Start in CentOS/RHEL 7 and 8
  9. chromium-browser: command not found
  10. tracepath Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright