Friday, February 8, 2008
Linux Tip 4
This is a simple bash script that will shut down your computer.All you have to do is to open a text editor( such as gedit,vi,emacs or whatever your favorite is) write the code than save it as "theName.sh". Inside the file write "init 0" (for shutdown) or "init 6" (for reboot).Then place this in the /usr/bin/ directory. Now you can open a console window and call the "theName"(watch out for case) script.
Subscribe to:
Posts (Atom)