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.
- [newbie] shell scripts Yants
- Re: [newbie] shell scripts Kuraiken
- Re: [newbie] shell scripts Steve Winston
- Re: [newbie] shell scripts Axalon
- Re: [newbie] shell scripts Michael R. Batchelor
- [newbie] shell scripts R. David Whitlock