Re: How do I make a batch file executible?
I wrote the following script
clean.sh
the comments are to remind me of what I did,
and where the code came from...
all my scripts are in
~/bin/
which is another trick I picked up from this forum...
it separates my stuff from everything else.
scripts placed there will be separated from any scripts that come with the original install, or are installed by other software...
and it keeps directories a little cleaner/neater.
I have desktop launchers to run these with just a double-click.
The script must be made executable...
Code:
#!/bin/bash
## commands to clean drive of excess garbage
## from ubuntu forums
## http://ubuntuforums.org/showthread.php?t=1113381
## 01-april-09
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get clean
sudo dpkg --configure -a
No, the script is not perfect, or ideal...
it's "quick and dirty", one of the first I wrote for myself...
feel free to adapt, reuse, rewrite, delete, etc.
As for too much sudo, soro2005 may have a point...
I'm still too new to know about that...
ErnestG
"Free software is a matter of liberty, not price." -- Richard Stallman
So don't forget to tip your software authors!
I'm a Fireman... what's YOUR superpower?
Bookmarks