mplayer – find all the installed codes for audio and video

2011-11-09 2 min read Fedora Linux

MPlayer
Image via Wikipedia

Some time back, I was trying to find out all the codecs that are installed for my mplayer. These could be the ones that came with mplayer or the ones that I downloaded from the site and installed in the various directories.

I could not find a direct way to do this, until I found this:

mplayer -ac help -vc help

And here is the output of the command:

Continue reading

g flag in :s useless in vim

2011-11-05 1 min read Vim Tips

Some time back there was a post on vim_use list about the “/g” flag for the search and replace functionality of the vim. And the response of “Tim Chase” on the same was very elaborate and interesting. I always knew that “/g” is only for replacing multiple occurrences on the same line, but here are few things that I did not know.

   :0/this/s//that

This one will only replace the first occurrence of this in the whole file.

Continue reading

using `!#$’ to referance backward-word

2011-11-03 1 min read Bash Linux

Operating System Tablet Strategy
Image by jeffalldridge via Flickr

Here is something that I found on the commandlinefu

cp /work/host/phone/ui/main.cpp !#$:s/host/target

Ah well…its very interesting and very useful.

Some explanation:

!# – means the current command (similar to !! being the last command)

$ – represents the last parameter

:s – is used for substitution.

Enhanced by Zemanta

Quickly install most of the things that you need on Fedora.

2011-10-30 1 min read Fedora
easyLife is a user friendly program that installs packages on Fedora as well as adjustments most users want. It makes new users’ experience easy and fun, providing the means to set the OS up quickly and painless.
This app does not really require any more introduction.

http://sourceforge.net/projects/easylife-linux/

[Easy Linux for Fedora][1]
Easy Linux for Fedora
Enhanced by Zemanta

gnome-tweak-tool gets a fantastic new Font Selector window

2011-10-27 1 min read Fedora

Here is the quick look at how the Font Selector looks like now. And its not just for the gnome-tweak-tool, its for all the places for font selection. I really loved it. So intuitive to use and amazingly good to look. This is what a good design and thinking can do. Kudos to Gnome team for coming up with this.

[Font Selector for Verne][1]
Font Selector for Verne
Enhanced by Zemanta

Fedora 16 screenshot with conky and bmpaenl2

2011-10-21 1 min read Fedora

For all those who used to keep complaining about the bottom panel of Gnome which used to show a list of windows, you can get it back with bmpanel2 (there are lot of other options too, but this one is light.). You can have themes for the panel also.

And the best part about using gnome-shell is that I always getting a feeling that I now have more space on the Desktop. And, thus conky looks good too on the Desktop. Here’s a screenshot.

Continue reading

Compare files excluding certain lines.

2011-10-18 1 min read Bash Fedora Learning Linux

Quick tip, you can use any expression for the sed commands in the (). With this trick you can redirect the stdout of 2 commands to the diff command. This might become very useful, if you want to compare 2 files, excluding the first  line.

diff <(sed '1d' file) <(sed '1d' file2)

More interesting example is where the string ABC is converted to abc before comparing in the second file with the following command:

Continue reading
Older posts Newer posts