Legend - legend.ws - Tips and Tricks

Latest News:

Mass changing files’ modification date on Windows 2 Mar 2012 | 11:41 pm

It’s sometimes useful to be able to change a file’s modification date. Linux makes it easy by simply using the “touch” command. I found this rather useful in cases where files were transferred between...

Highlighting “grep” matches 22 Feb 2012 | 12:14 am

“grep” is a useful Linux tool allowing the user to print lines matching a specific search pattern. Most popular uses is by “piping” the output of one command to “grep” (such as cat /path/to/file | gre...

Determining, via the shell prompt, the Linux distribution in use 4 Jan 2012 | 08:55 pm

SSH is sometimes the only mode of access you have to a server. So how do you instantly determine the distro in use? The following would work for most popular distributions (RedHat, CentOS, Ubuntu, et...

Flushing / clearing DNS in Mac OSX 12 Oct 2011 | 06:08 am

Below is how to clear / flush the DNS cache in Mac OSX. Open the terminal (Finder -> Applications -> Utilities -> Terminal) In case your operating system is ‘Leopard’ (10.5.*) or ‘Snow Leopard’ (10....

Deleting a file, the name of which starts with a hyphen (Linux) 2 May 2011 | 10:08 pm

You might have come across a difficulty in deleting a file in Linux whose name starts with a dash/hyphen. Adding an escape character (e.g. rm -rf \-filename) or quoting the file name (e.g. rm -rf “-f...

Mac users: turn colors into negative 25 Mar 2011 | 10:13 am

Are you a mac user? try the following keyboard combination: cmd + alt (option) + ctrl + 8 Colors are instantly inverted, giving the entire screen a negative-photography like feel. Hit the same comb...

Linux: finding files modified or accessed at a certain time 21 Feb 2011 | 08:10 am

The ‘find’ utility is quite handy when used with the proper parameters. Below is a few ways to find files/folders based on the time they were accessed or modified. Example 1: find /path/to/folder -t...

Facebook’s new photo viewer 13 Feb 2011 | 11:25 am

Facebook recently introduced a new way of browsing photos and albums. The new photo viewer uses the lightbox technique whereby the page is dimmed and a box is overlaid with a larger version of the sel...

Forcing links that open in a ‘new window’ to open in a ‘new tab’ 8 Aug 2010 | 12:59 am

Do you want to force links that open in a new window to open in a new tab instead? The answer is pretty simple. Firefox Type the following in the url bar: about:config Edit the following variables:...

Enabling telnet in windows vista 6 Nov 2009 | 09:59 pm

Some of you may be missing the good old command-line telnet client. The thing is that vista has this client disabled by default. The good news is that you can easily install/enable it. To do so, follo...

Recently parsed news:

Recent searches: