Posts

Showing posts from April, 2010

How to use find command

On Debian based distros, find is part of the package findutils . find allow one to search for files on a filesystem based on different condition, creation date, modified date, file size, file type, permissions, name .... This tutorial, will be focused on finding files/directories based on their name, in order to explain in more depth the syntax of find, also will show how you can narrow down your search by adding condition on size and file modification time. 1. Find basis The default syntax of find is as such: find [path] [expression] where path is the path used as root for searching pattern and expression the expression we want the file to match. 2. Finding a file based on filename Let say for instance you want to find all .avi files in users home directories. Search files can be found with the following command: # find /home -name '*.avi' If you want to search for *.mpg and *.avi files, you will use the following: find /home -name '*.mpg' -o -name '*.

sudo: port: command not found

If you install mac ports under Mac, then run sudo port install "app_here"  and you recieve this error (the title), i have the solution. One word. $PATH. Open your .bashrc file (if you dont have it, create it), and add these lines export PATH=/opt/local/bin:/opt/local/sbin/:$PATH export MANPATH=/opt/local/share/man:$MANPATH (the first, for the port command and the second for the manpages of port command. Yea, i know its obvious... :P) Ciao!

Now Listening...

Image
Rage Against The Machine Sleep Now in Fire Guerilla Radio Killin' in the Name Bombtrack

Now Listening...

Image
Phil Collins - Something Happened On The Way To Heaven

Shortened URL, TineURL and Bit.ly

Url's shortening services provides a way to shorten those long urls in webpages, making less awful to the "style" of the page. Imagine someone, post 4 urls, 2 lines per url? Shortening Services make more friendly those weird (with hashes or shit) urls. But... there's always a but!, you never see the real url where the browser will be pointed to. So, here is the risk of been forwarded to a page with malicious code within (malwares, trojans other malicious routines). A solution to this problem is to unhide/reveal the real url, you can install a firefox plugin ( Long Url Please version 0.4.2 ).