Filename completion in Linux with mixed case and ignored case.

2010-06-23 1 min read Bash Linux

This is one of my favourites, alwahs keep it handy. Linux is case sensitive by nature but you will always find filenames jumbled up in the case. So what is the solution:

bind ”set completion-ignore-case on”

Just execute the above in your bash command and file/dir name will behave like Windows. Remember that this is per session setting and thus the names do not get changed internally, it only changes the way to access it (specifically completion only). So if you want this behaviour in all your sessions put this in the appropriate profile file.

Continue reading

Upload a video to youtube

2010-06-23 1 min read Linux

<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/Command-line-fu/~3/JXJj-wy4keA/upload-a-video-to-youtube">Upload a video to youtube

  <td>
    <div class="bash codecolorer">
      google youtube post <span class="re5">--title</span> <span class="st0">"My Video"</span> <span class="re5">--category</span> Education ~<span class="sy0">/</span>myvideo.avi<span class="sy0"></</span>tt<span class="sy0">><</span>tt<span class="sy0">></span>
    </div>
  </td>
</tr>
1

Google just released a new commend line tool offering all sorts of new services from the commend line. One of them is uploading a youtube video but there are plenty more google services to interact with.

Continue reading

cdargs – bash cd command with bookmarks and browser.

2010-06-22 0 min read Bash Learning Linux
\"Screenshot
Image via Wikipedia

cdargs is a <a class="zem_slink freebase/en/bash" title="Bash" rel="homepage" href="http://tiswww.case.edu/php/chet/bash/bashtop.html">bash shell cd with bookmarks and browser. Quite useful if you are developer or someone who use&#8217;s the bash shell very frequently

Name       : cdargs

Arch : i686 Version : 1.35 Release : 5.fc12 Size : 114 k Repo : installed From repo : fedora Summary : The shell cd with bookmarks and browser URL : http://www.skamphausen.de/software/cdargs/ License : <a class="zem_slink freebase/en/gnu_general_public_license" title="GNU General Public License" rel="wikipedia" href="http://en.wikipedia.org/wiki/GNU_General_Public_License">GPLv2</a>+ Description: Enables the user to quickly change <a class="zem_slink freebase/en/working_directory" title="Working directory" rel="wikipedia" href="http://en.wikipedia.org/wiki/Working_directory">working directory</a> by navigating cd arguments : and expanding the shell built-in cd with bookmarks and browser.

Continue reading

Oracle GUI client on Linux with mysql support

2010-06-22 1 min read Fedora Linux

I was looking for some nice client for Oracle and mysql. I did find mysql-administrator and navicat to be useful but this is much better. <a href="http://sourceforge.net/projects/tora/" target="_blank">Tora is the client that I am talking about. Installation did not take much time for me..

downloaded the instant client from oracle.com and then the tora rpm from sourceforge.net. Also downloaded the tora-mysql from http://rpm.pbone.net/index.php3/stat/21/year/2002/month/01/day/28

Then tried to install all the rpms found the rpms that were missing and installed them using yum. Once this is done install the downloaded rpms with &#8221;–nodeps&#8221; option of rpm.Put the entries in bashrc

Continue reading

Fixing the Xorg X server after removing nouveau and nvidia and installing a nVidia graphics card.

2010-06-22 2 min read Fedora Linux

I updated my destop configuration recently, well thats not the news. But I was a idiot doing certain things at that time might be something interesting to my readers. I got a <a class="zem_slink freebase/en/nvidia" title="Nvidia" rel="geolocation" href="http://maps.google.com/maps?ll=37.3707277778,-121.963738889&spn=0.01,0.01&q=37.3707277778,-121.963738889%20%28Nvidia%29&t=h">nVidia <a class="zem_slink freebase/en/video_card" title="Video card" rel="wikipedia" href="http://en.wikipedia.org/wiki/Video_card">graphics card, that was not the issue but I uninstalled the drivers for it after putting it in was the issue.

So, here is the story and the fix.

Continue reading

gollage – create simple collage with ease.

2010-06-21 2 min read Linux Photo

Find the project <a href="http://sourceforge.net/projects/gollage/" target="_blank">here. Download the tar ball and install it. Description of the application is:

GTK+ collage, in short gollage, is a program to generate photo collages with a Polaroid photo frame. The photos will be place on the final image in randomly order. You can specify the degrees, the size of the photos and the final background of the image.

It is a very simple to use GUI application. First you need to select the pictures for the collage.

Continue reading

concatenate compressed and uncompressed logs

2010-06-21 1 min read Bash Linux

<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/Command-line-fu/~3/iwFUyltYgjM/concatenate-compressed-and-uncompressed-logs">concatenate compressed and uncompressed logs

$ find /var/log/apache2 -name 'access.loggz' -exec <a class="zem_slink freebase/en/gzip" title="Gzip" rel="homepage" href="http://www.gzip.org/">zcat {} ; -or -name 'access.log' -exec cat {} ; This command allows you to stream your log files, including gziped files, into one stream which can be piped to <a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk or some other command for analysis.

Note: if your version of &#8217;find&#8217; supports it, use:

Continue reading
Older posts Newer posts