Use the diff command with the -q switch for simple output, such as:
diff -q folder1 folder2 | sort > compare.txt
Play a sound with bash script “playsound”
At the time of this writing the package to install was the following:
sudo apt-get install libsdl-sound1.2
The command in the bash script to use is as follows:
playsound ding.wav
Change default startup location of gnome-terminal
In your home folder
gedit .bashrc
Add the following lines at the bottom of the file:
# CHANGE DEFAULT LOCATION OF STARTUP
cd ~/Desktop
Using Alias with Run Application
If you define an alias, it will then run in the "Run Application" window. You can put a bash script in your home folder, make it executable, and use the following command to run it from "Run Application".
xterm -e ./myscript.sh
You can try to research the following to avoid using xterm.
Refer: link
Reset Desktop Settings Back to Default in Ubuntu
Drop to a terminal by hitting CTRL + ALT + F1, login to your account, and run this command:
rm -rf .gnome .gnome2 .gconf .gconfd .metacity
Get back to your GUI desktop by hitting CTRL + ALT + F7
Logout and Logon
Your desktop settings are now reset
Update WebCollab Tasks, Remove Late Tag
Use the following MySQL command to globally change all tasks not done:
UPDATE `tasks`
SET `deadline` = '2009-08-01'
WHERE `deadline` <= '2009-08-01'
AND `status` <> 'done'
Use Ubuntu with VirtualBox Behind Proxy
There seems to be problems with Ubuntu 9.04. It is possible to install from CD-ROM instead by using:
- Press System → Administration → Software Sources.
- Go to the Third Party Software tab and click on the Add CD-ROM button.
- Insert the CD.
Do the following in your terminal prior to using apt-get:
export http_proxy=http://username:pword@HALPROXY1.flagship.hal.com:80
Getting Backspace to work in Firefox with Ubuntu
Type “about:config” in the address bar of Firefox and press Enter.
`Filter` for ‘browser.backspace_action’ and change its value to 0 (zero).
Zip Files on Hosted Site
Zip recursively
zip -r my.backup.001.zip htdocs
Unzip recursively by default
zip my.backup.001.zip

