Monthly Archives: August 2009

Revert back to ubuntu usplash theme

sudo dpkg-reconfigure usplash-theme-ubuntu

Tagged | Leave a comment

Searching for a string inside multiple files and output the name of the files containing that string

find . -name “*” | grep -i ecomm | xargs ls -las | grep “Aug 27” | awk ‘{print $10}’ | xargs grep -i string_to_search_for | grep -i “\.log” | awk ‘{print $1}’ where: “ecomm” is part of the name … Continue reading

Tagged , | Leave a comment

How to fix Java plugin in Firefox (DRAFT)

sudo ln -s /usr/lib/jvm/java-6-sun-1.6.0.14/jre/plugin/i386/ns7/libjavaplugin_oji.so aamr@aamr-laptop:/usr/lib/firefox-3.5.4pre/plugins$ sudo ln -s /usr/lib/jvm/java-6-sun-1.6.0.14/jre/plugin/i386/ns7/libjavaplugin_oji.so4 lrwxrwxrwx 1 root root 73 2009-08-27 11:52 libjavaplugin_oji.so -> /usr/lib/jvm/java-6-sun-1.6.0.14/jre/plugin/i386/ns7/libjavaplugin_oji.so

Tagged , | Leave a comment

Killing a process that listening on a port

Sometimes you may want to stop a server application that is running on a pre-defined port number. lets give an example; if you have a tomcat server running on port 8080, you don’t have the process number to execute the … Continue reading

Tagged , | Leave a comment

Highlight your grep results

Used grep command before ?grep is a very good command that allows you to grep text 🙂It allows you to search the contents of a file/group of files for a string (regular expression) of course it is great, but the … Continue reading

Tagged | Leave a comment