Quick Tips

How to show date and time in your history command using environment variable HISTTIMEFORMAT

It usually happens with me that I am trying out a cli based tool or learnt some new trick, it works fine then, but later I can hardly recall what I did . In such cases, all I remember is either a part of the command or the time while I was doing it. I always wondered if we could get more out of the history command - days, time etc. After searching a little, I found that it is actually possible and could be done pretty easily.

Increase available disk space by decreasing the reserved blocks in extended filesytems ext2/3/4 using tune2fs

Have you ever noticed that after formatting a partition or external storage device - hard disk etc. into ext2/3/4 decreases the total available disk space by some amount? That's because the file-system reserves some part of the space to privileged processes. This is done to make sure that in case of file-system fill up, when user processes may not be allowed to write to disk, privilege system processes(or root user) may still be able to function properly(write on disk) e.g. syslogd etc.

Get a Random fortune cookie using the Unix fortune command

I have been using linux for more than 3 years, but I still come across some old/legacy applications that I have never even heard of. This time I came to know about the legendary fortune command. All it does is throw some random fortune (quotation) from a huge database on your screen. Before coming to any conclusion about the software, try it out first .

How to open a Directory or a file starting with a "-", hyphen

Those of you who have not been in such a situation would never know how it feels when you are stuck opening/deleting a file or directory. The more you have been working on the shell, the more it sucks. When I tried all I could to get it work and still ended up with the same error all the time, I just sat on my chair, staring at the monitor for a while, wondering if this is somekind of bash's loophole :P.

TinEye Reverse Image Search Addon for Firefox

Have you ever looked at an Image and asked, "so, whats ur story?", really liked it and wished if you could find a larger resolution or wondered if the hot girl in the picture resembling your neighbour, is really her ? Well, either never ask and die with it, ask the girl and die(you never know) or stop thinking too much and just use the TinEye reverse Image search to find out all the places where the image appeared, better resolutions, a story maybe, who knows where you might end up.

How to find out the filesystem type of devices and partitions on Linux

So, I was working on a system remotely over ssh and I had to find out what filesystem was a particular partition formatted into. The thing looks trivial, but if you have been using some GUI app for this, then it won't come easy if you are working on a console. The trick in such situations is to look into the commands that deal with stuff similar to what you want, i.e disks & partitions in my case. So, I went for df, & parted.

How to Password protect files and folders/directories on Linux using zip

I have previously discussed a simple trick to prevent other users from accessing your personal data. To summarise, all we did there was change the file permissions and ownership to root, so that whenever someone tries to access the folder through your account (assuming non-root), the system will throw a permission-denied error. Here is another similar trick to compress the content and password protect it.

Fix for Nautilus' opening every folder in a new window on RedHat/Fedora based systems

I don't know why Fedora/Redhat have this default nautilus setting of opening folders in separate windows, but I hate this feature. Well, it could be because I have always worked on a single browser window but even after trying to get used to it, its really hard to work with the default mode. Its sleek but all it does is clutters the desktop. Every command opens a new window - Enter, Backspace; its irritating.

How to: Open PDF files in a Linux Console using fbgs, a framebuffer PDF viewer

Another day, another command line/Console based application. Just to refresh your memory, last time we told you about a Linux framebuffer Image viewer, Fbi, that lets you view images without a X server. This time I will introduce you to fbgs, a console based PDF/Postscript viewer which makes use of fbi to view PDFs.

Google command line Interfaces from Past

We have already seen an official command line google product, googlecl, but this is not the only one. There have always been shell lovers who tried to bring this Web Giant on a console. Here are a couple of command line applications, goose and goosh, to interface with Google search, which btw googlecl doesn't support.