Often when writing a script, I want to put a hashbang (#!) at the top so that I can execute the file, but I can never remember where the binary for python or php is installed to. An easy way to find out is to use the which command:
Another nice command is whereis which will "locate the binary, source, and manual page files for a command":
python: /usr/bin/python2.6-config /usr/bin/python2.6 /usr/bin/python /etc/python2.6 /etc/python /usr/lib/python3.1 /usr/lib/python2.6 /usr/local/bin/python2.7-config /usr/local/bin/python2.7 /usr/local/bin/python /usr/local/lib/python2.7 /usr/local/lib/python2.6 /usr/include/python2.6 /usr/share/python /usr/share/man/man1/python.1.gz
There's a wad of tutorials out there on how to to install this plugin, but I've found they either don't work, or over complicate things.
If you haven't already found it, download the Flash Player 10 64-bit plugin for linux. Then,
sudo cp libflashplayer.so /usr/lib/firefox-3.0.10/plugins
You might be running a different version of Firefox by the time you read this tutorial, so bust a "locate firefox | grep plugins" to find the appropriate folder.
After getting tired of trying to remember "tar xvzf", I wrote a little script for extracting almost any file type via the linux command-line. You can copy and paste this script into a text editor like gedit and save it to "/usr/local/bin" for convenience. I called mine "untar" since it doesn't seem to be taken. Remember to `chmod +x
if [ $# -eq 0 ]; then
echo "usage: $me <files...>"
for file in $@; do
case $file in
tar xvf $file;;
tar xvzf $file;;
tar xvjf $file;;
unrar x $file;;
echo "$me: $bn: unkown filetype";;