Kuraiken wrote:

> Yants wrote:
> >
> > how do i write shell scripts..?
> > can someone please show me an example...
>

Here's one, for /etc/bashrc:
first, write
vi /etc/bashrc
 Then, hit the i-key so you write the script. Then:
#shutting down i:
alias adios='/sbin/shutdown -h now'
alias reboot='/sbin/shutdown -r now'

The next time you want to shutdown, just change to su and type adios. Or reboot,
depending on your circumstance.

Reply via email to