DEV Community

6 1

Linux Reboot and shutdown commands

Linux Reboot and shutdown commands

Commands Description
$systemctl reboot Reboot the system
$sudo systemctl reboot
[sudo] password for srini:
Reboot the system with sudo
$sudo systemctl poweroff
[sudo] password for srini:
Poweroff the system with sudo
$sudo systemctl reboot --force
[sudo] password for srini:
Force reboot the system with sudo
$sudo systemctl poweroff --force
[sudo] password for srini:
Force Poweroff the system with sudo
$sudo systemctl reboot --force --force
[sudo] password for srini:
Its exactly like pressing reset button
$sudo systemctl poweroff --force --force
[sudo] password for srini:
Its like unplugging the computer from power source
$sudo shutdown 02:00
[sudo] password for srini:
Time format : 00:00 to 23:50
shutdowns at 2 am in the morning
$sudo shutdown +15
[sudo] password for srini:
Shutdowns after 15minutes
$sudo shutdown -r 02:00
[sudo] password for srini:
Reboots and shutdown at 2am
$sudo shutdown -r +15
[sudo] password for srini:
Reboots and Shutdowns after 15minutes
$sudo shutdown -r +1 ' Scheduled restart to do an offline backup'
[sudo] password for srini:
Reboots and Shutdowns after 1 minute before to that will get a warning message

Note : systemctl comes from the word - system control

Conclusion : Discussed about Linux Reboot and shutdown commands. I am preparing to excel in Linux Administration and will keep sharing one blog every week.

πŸ’¬ If you enjoyed reading this blog post and found it informative, please take a moment to share your thoughts by leaving a review and liking it πŸ˜€ and follow me in linkedin

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (4)

Collapse
 
justplegend profile image
JPL β€’

Good! Thanks!

Collapse
 
srinivasuluparanduru profile image
Srinivasulu Paranduru β€’

:)

Collapse
 
sjymon_ profile image
Otto β€’

Nice ! Thanks!

Collapse
 
srinivasuluparanduru profile image
Srinivasulu Paranduru β€’

thanks @sjymon_

Best Practices for Running  Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK cover image

Best Practices for Running Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK

This post discusses the process of migrating a growing WordPress eShop business to AWS using AWS CDK for an easily scalable, high availability architecture. The detailed structure encompasses several pillars: Compute, Storage, Database, Cache, CDN, DNS, Security, and Backup.

Read full post