DEV Community

Zen
Zen

Posted on

2

Cara cepat mematikan Linux

Untuk mematikan laptop yang basisnya Linux, kodenya adalah:

shutdown -h now
Enter fullscreen mode Exit fullscreen mode

Namun, kali ini aku coba untuk mengubah kodenya hanya dengan mengetikkan mati. Berikut caranya:

  1. Buat file mati di ~/bin/
  2. Jalankan sudo chmod +x mati
  3. Isi di dalam mati:

    shutdown -h now
    

Jadi, untuk mematikan laptop, kamu cukup mengetikkan mati.

Top comments (1)

Collapse
 
ascaliko profile image
Ascaliko

bisa juga

init 0

wah baru nemu di dev.to orang indonesia, nice thread.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay