How to use command to restart or shut down Linux system

คำสั่งที่ใช้ในการปิดเครื่อง หรือ shutdown

#shutdown -h now

#init 0

#halt

#poweroff

 

คำสั่งที่ใช้ในการ Reboot เครื่อง

#reboot

#init 6

#shutdown -r now

Related posts:

  1. Linux last command – แสดงรายชื่อ user ที่ login เข้าสู่ระบบ ถ้าหากต้องการตรวจสอบรายละเอียดของการ login เข้าสู่ระบบ คุณจะนึกถึงอะไรเป็นอันดับแรก หลายคนคงตอบว่าให้เข้าไปดูที่ “/var/log/secure” สิ เพราะว่ามันเก็บประวัติการ...
  2. Force fsck on the next boot sequence เมื่อต้องการให้ Linux ทำ file system check ทุก partition...
  3. RedHat 5 และ RedHat 5.1 เกิดอาการแฮงค์ในขั้นตอนสุดท้ายของการ Reboot หรือ Shutdown ปัญหาที่ทำให้ RedHat 5 และ RedHat 5.1 เกิดอาการแฮงค์ในขั้นตอนสุดท้ายของการ Reboot...
  4. Disable some CPUs within Red Hat Enterprise Linux 5 without rebooting the system คำเตือน: โปรดทำการเชค Hardware ว่า support CPU hotswapping หรือไม่ก่อนทำการทดลองเล่นหรือใช้งานคำสั่งนี้...
  5. Diskdump report error messages when restart the diskdump service เมื่อเราได้ทำการแก้ไขหรือ configure diskdump แล้ว restart diskdump service ได้มี...

You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply