Linux
Viewing log files without using vi or any other text editor
2010/01/16
This is quite useful for viewing files without opening them.. Saves quite a lot of time in viewing the logs 🙂 Want to see the first 5 lines of the /etc/passwd file? Pretty easy, just use the …
View information on all the rpms installed.
2010/01/16
This post if applicable to all the distro’s which are based on rpm. If you look at the number of rpms installed on your system, you will see it somewhere around 500-2000. Noe thats a pretty …
Speed up gnome and change widow manager for gnome.
2010/01/13
I have been planning to do this for quite some time now. So finally I did this today. Actually I wanted to use some features of gnome like tracker and gnome-settings and quite a few other things along …
Send mail to yourself and read in your favourite client and configure the rules to move to directory.
2010/01/10
By default when you send a mail using sendmail, the mail goes to the default directory. What I wanted to do was, use rss2email, to send the mails and then sort them in different folders depending on …
Remove Invalid characters in Filename.
2010/01/10
Sometimes I end up having some invalid characters in filename like ? & and so on. So simple bash script to get rid of them: for i in `find . -type f` do echo $i mv $i `echo $i |tr ? _|tr = _ |tr …
change the terminal title dynamically in X11
2010/01/09
I was actually looking for this for quite sometime. Some years back in my bashrc was the proper setting for setting the terminal title when I did a cd, and I had completely forgotten how to do it. So …
The document editor that is revolutionary and breaking the typewriter paradigm.
2010/01/08
Today, I thought I will try something different for word processor requirements, for non-text files. For text files, vi rocks for me 🙂 So, I tried LyX, here is the description of the editor: …
using cscope with vim
2010/01/08
Here’s the best of the two links that I found with <a class="zem_slink freebase/en/google" title="Google" rel="homepage" …
Sendmail host map failure issue with sendmail.
2010/01/07
I was having this issue for long time with sendmail and not getting time to fix this. Finally today I found the solution. <span style="font-weight: …
Display the output of a command from the first line until the first instance of a regular expression.
2010/01/04
| perl -n -e 'print "$_" if 1 … /«a class="zem_slink freebase/en/regular_expression" title="Regular expression" rel="wikipedia" …
Finding all the executables/binary in Linux rpm based distro.
2010/01/03
I have been thinking about this for quite sometime now, how to find all the executables on the linux system. One of the way is to do a ”ls” on all the directories in the PATH …
Fedora 12 demonstrates sandbox for desktop applications
2010/01/03
<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category Security-Enhanced Linux (SELinux) specialist and Red Hat developer Dan Walsh has souped up the security …