Using column to format a directory listing

2009-10-09 1 min read Linux

<span style="color: #000000;">Using column to format a directory listing
<span style="color: #000000;">$ (printf "PERMISSIONS LINKS OWNER GROUP SIZE MONTH DAY HH:MM PROG-NAME
<span style="color: #000000;">\n" \ ; ls -l | sed 1d) | column -t
<span style="color: #000000;">Using column to format a directory listing

<span style="color: #000000;"> * View this command to comment, vote or add to favourites
<span style="color: #000000;"> * View all commands by unixmonkey1299

<span style="color: #000000;">commandlinefu.com

Continue reading

On screen display of a command

2009-10-08 1 min read Fedora Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category
delay: 2d On screen display of a command. $ date|osd_cat This is very useful if you need to show someone some text from a distance. (Like someone standing over your shoulder…)

I&#8217;d recommend aliasing it to something like:

alias osd_cat=&#8221;osd_cat -o 400 -s 8 -c blue -d 60 -f osd_cat -f -*-bitstream vera sans-*-*-*–200-*-*-*-*-*-*-*&#8221;

xosd is the utility that provides osd_cat.

* View this command to comment, vote or add to favourites * View all commands by din7

Continue reading

root shell auditing and syslog entry for all commands of shell

2009-10-08 2 min read Fedora Linux

A lot of times there is a need to log all the messages and the output of the shell to the file or syslog. Sometimes I need that for some user too. script command can be used to do this but then sometimes you cannot tell the user the session is logged or you can ask the user to run this command and it should be automatically done. And sometimes there is a need put the output in the syslog so that the root user has more control and also mail for syslog is sufficient to be analyzed rather than looking for other files. Finally I found this :

Continue reading

Tag2Find – Tag Your Windows Files with Web-like Tags

2009-10-05 2 min read Uncategorized

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category

Tagging is something your pipsqueak pigtailed sister did with you when you were in your tweens. That kind of ceaseless trailing was pesky. The Web 2.0 version though saves us a lot of bother.

Tagging is commonplace around blogs and websites. We all agree that it’s a speedy way to scour out a web resource; nearly single click in its utility. We are so used to it that we perhaps miss it as a feature in Windows.

Continue reading

Get list of git repositories from command line.

2009-10-04 3 min read Linux

Earlier I had posted a small blog on teamgit. The problem still is that you have to manually go to the git.kernel.org page and get the list of the repo&#8217;s that you can download. How about a command line to get the same. Here&#8217;s one:

wget -O – http://git.kernel.org |grep &#8221;class=.list.&#8221; |grep -v title|awk -F&#8217;>&#8217; '{print $3}&#8217;|sed &#8217;s/<\/a//&#8217;

Output will be like this:<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/ghaskins/linux-2.6-hacks.git

<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/ghaskins/preempt-test.git
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/ghaskins/schedtop.git
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/glommer/linux-2.6-x86-pvops.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/bti.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/ddk.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/driver-core-2.6.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/lkn.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/patches.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/tty-2.6.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/usb-2.6.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/usbutils.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/usbview.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gud/chunkfs-tools.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gud/chunkfs.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gud/fuse-chunkfs.git <p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/ghaskins/linux-2.6-hacks.git

Continue reading

Play video in Fedora.

2009-10-03 3 min read Linux

Found <a href="http://www.fedoraforum.org/forum/showthread.php?t=28153">here.<div class="smallfont">

How to multimedia xmms, rythmbox, mplayer, video, etc.

<hr style="color: #d1d1e1; background-color: #d1d1e1;" size="1" />

Lack of multimedia in fedora is one of my major complaints. This is intended for our newbies that have problems setup multimedia for mp3 music and dvd playback. Some commands are for fedora core 3, 4 and 5.

UPDATE: I started using <a href="http://www.fedoranews.org/tchung/mplayer/" target="_blank"><span style="color: navy;">mplayer. Make sure you download the 6 packages tchung is listing. This is my personal <a href="http://www.fedoraforum.org/forum/showthread.php?t=53335" target="_blank"><span style="color: blue;">yum installation of mplayer which can be compare to windows media player. Totem will also meet your needs.

Continue reading

Change user, assume environment, stay in current dir

2009-10-03 1 min read Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category

Change user, assume environment, stay in current dir $ su — user I&#8217;ve used this a number of times troubleshooting user permissions. Instead of just &#8217;su – user&#8217; you can throw another hyphen and stay in the original directory.

* View this command to comment, vote or add to favourites * View all commands by matthewdavis

commandlinefu.com

by David Winterbottom (codeinthehole.com)

URL: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/7LH0tfWi1Oc/change-user-assume-environment-stay-in-current-dir">http://feedproxy.google.com/~r/Command-line-fu/~3/7LH0tfWi1Oc/change-user-assume-environment-stay-in-current-dir

Older posts Newer posts