<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" gd:etag="W/&quot;DUYAR3wzfCp7ImA9WhRaE0o.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925</id><updated>2012-02-16T14:25:46.284+07:00</updated><category term="install" /><category term="bluefish" /><category term="flash" /><category term="pc" /><category term="disk utility" /><category term="html5" /><category term="restart" /><category term="dd" /><category term="intel atom n470" /><category term="bootsector" /><category term="Import" /><category term="dsik" /><category term="service" /><category term="chrome" /><category term="pop3" /><category term="firefox" /><category term="moolux overview" /><category term="md5sum" /><category term="hostname" /><category term="tips" /><category term="spool" /><category term="linux security" /><category term="KDE4" /><category term="link" /><category term="Documentation" /><category term="review" /><category term="wget" /><category term="News" /><category term="laptop" /><category term="notebook" /><category term="bind" /><category term="changes" /><category term="backup" /><category term="host keys" /><category term="Command Line" /><category term="facebook" /><category term="system" /><category term="open file" /><category term="SSH" /><category term="verification" /><category term="mysql" /><category term="LVM" /><category term="ogg" /><category term="flash player plugin" /><category term="s10-3t" /><category term="Lenovo Ideapad" /><category term="pidgin-2.5.8" /><category term="xwindow" /><category term="battery" /><category term="linus Torvalds" /><category term="memory" /><category term="root" /><category term="Ideapad" /><category term="GPL" /><category term="android" /><category term="filesystem" /><category term="bash script" /><category term="dns" /><category term="moolux released" /><category term="netwrok" /><category term="Lenovo" /><category term="shutdown" /><category term="atom" /><category term="Debug" /><category term="network" /><category term="mac address" /><category term="linux 2.6.29" /><category term="moolux 5.4" /><category term="IdeapadS10-3t" /><category term="nvidia" /><category term="slackware 13.0" /><category term="yahoo" /><category term="tcpdump" /><category term="proxy" /><category term="grub" /><category term="admin" /><category term="syslinux" /><category term="perl" /><category term="iso" /><category term="acpi" /><category term="auto-connect" /><category term="ipad" /><category term="ideapad s10-3t" /><category term="pidgin" /><category term="tunneling" /><category term="LenovoIdeapad" /><category term="youtube" /><category term="wine" /><category term="swapfile" /><category term="kill" /><category term="command" /><category term="RAM" /><category term="general" /><category term="install application" /><category term="openoffice" /><category term="gslapt" /><category term="gnome" /><category term="procedures" /><category term="find" /><category term="download" /><category term="encrypt" /><category term="slackware 13.1" /><category term="shell" /><category term="mbr" /><category term="script" /><category term="windows" /><category term="mooluxsave" /><category term="firewall" /><category term="AtomN470" /><category term="thunderbird" /><category term="follower" /><category term="mockups" /><category term="linux" /><category term="wma" /><category term="man" /><category term="tricks" /><category term="netstat" /><category term="pages" /><category term="process" /><category term="atom n470" /><category term="convert" /><category term="howto" /><category term="nmap" /><category term="meebo" /><category term="moolux" /><category term="htc" /><category term="remote" /><category term="configure" /><category term="files" /><category term="modules" /><category term="monitoring" /><category term="how-to" /><category term="route" /><category term="samsung" /><category term="config" /><category term="openssh" /><category term="Open Source" /><category term="time" /><category term="slackware" /><category term="n470" /><category term="free software" /><category term="clock" /><category term="netbook" /><category term="twitter" /><category term="nexus one" /><category term="kernel" /><category term="tunnel" /><category term="history" /><category term="search" /><category term="samba" /><category term="LUKS" /><category term="windows7" /><category term="triks" /><category term="ip address" /><category term="lenovo ideapad s10-3t" /><category term="traffic" /><category term="iptables" /><category term="linux 2.6.28" /><category term="password" /><category term="netcat" /><category term="profile" /><title>MooLux GNU/Linux</title><subtitle type="html">Live-USB Linux Based on Slackware</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.moolux.org/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.moolux.org/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>114</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/moolux" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="moolux" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DkAMR3oycCp7ImA9Wx5aEU0.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-1038637778971658632</id><published>2019-10-23T22:11:00.001+07:00</published><updated>2010-11-07T11:39:46.498+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-11-07T11:39:46.498+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="pages" /><category scheme="http://www.blogger.com/atom/ns#" term="moolux 5.4" /><category scheme="http://www.blogger.com/atom/ns#" term="moolux released" /><category scheme="http://www.blogger.com/atom/ns#" term="moolux overview" /><title>What is MooLux</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/iRWJQDdVbDQCXP4aScqqaDPk6vs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iRWJQDdVbDQCXP4aScqqaDPk6vs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/iRWJQDdVbDQCXP4aScqqaDPk6vs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iRWJQDdVbDQCXP4aScqqaDPk6vs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="entry"&gt;&lt;b&gt;MooLux&lt;/b&gt; is a&lt;b&gt; Live USB Linux&lt;/b&gt; distribution based on Slackware that  utilizes the KDE desktop environment. MooLux is a portable operating system that  can be taken with you containing tools for Internet browsing, email, chat,  multimedia, office and software for C, Python, Perl programming tasks. The latest version of Moolux is &lt;b&gt;MooLux-5.4&lt;/b&gt;&lt;br /&gt;
&lt;div id="preview"&gt;&lt;a href="http://www.moolux.org/wp-content/images/snapshot1.jpg"&gt; &lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.moolux.org/2008/09/snapshot-of-moolux.html" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4qUB07E_UI/AAAAAAAAAJk/MHu6620fhhE/s400/snapshot1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;b&gt;&lt;a href="http://www.moolux.org/2008/09/download-moolux.html"&gt;Download  MooLux &lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;MooLux 5.4&lt;/b&gt;&lt;br /&gt;
Moolux is a Linux operating system providing wide colection of useful software with Xwindow system and KDE desktop environment. MooLux is designed to be a full system right out of the box. Moolux has all you need USB Disk 1GB. Now we know all you need is not always all you want. Linux is all about choices, right. Moolux can also easily expand using packages from Slackware or other Slackware 3rd party sites. Included in moolux Is a small collection of simple games. These are not meant to impress, they are just a taste of the real fun you can have with MooLux. Try MooLux for full time and see if you are not impressed with this. And if you find anything that needs improvement let we know. See &lt;b&gt;&lt;a href="http://www.moolux.org/2008/09/snapshot-of-moolux.html"&gt;Screenshot here.&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="entry"&gt;&lt;br /&gt;
&lt;b&gt;Features&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
- Based on Slackware 12.2 with kernel 2.6.27.7&lt;/div&gt;- Kernel support Aufs, squashfs, Squashfs-lzma, and Bootsplash&lt;br /&gt;
- KDE-3.5.10&lt;br /&gt;
- Openoffice.org-3.1&lt;br /&gt;
- Kaffeine Media Player-0.8.8 with Full Codecs from Mplayer&lt;br /&gt;
- Firefox-3.0.11 with Flashgot, Thunderbird-2.0.0.22, Pidgin-2.5.8 with guification&lt;br /&gt;
- K3B-1.0.5 Grsync-3.0.2, Gftp-2.0.18, ktorrent-2.2.7&lt;br /&gt;
- gparted-0.3.8, Gslapt-0.4.0&lt;br /&gt;
- gimp-2.4.6, qcomicbook-0.3.4,StarDict-3.0.1&lt;br /&gt;
- Bluefish-1.0.7,kchmviewer-3.1.2, Supertux-0.1.3&lt;br /&gt;
- Wlassistant-0.5.7, KDEBluetooth-1.0-Beta&lt;br /&gt;
- and many others……..(&lt;b&gt;&lt;a href="http://moodjair.web.ugm.ac.id/images/package.txt"&gt;see packages list&lt;/a&gt;&lt;/b&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Requirement&lt;br /&gt;
&lt;/b&gt;These are the minimal hardware requirements to run MooLux in with correct performance (some lower configs work, but might be slow) :&lt;br /&gt;
- PIV or better, Pentium or AMD are both OK.&lt;br /&gt;
- 512 MB of RAM&lt;br /&gt;
- No harddisk is required if run Live-USB.&lt;br /&gt;
- 1GB space to install Live Mode&lt;br /&gt;
- 3GB linux partition space to install Real Mode&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-1038637778971658632?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/1038637778971658632/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/what-is-moolux.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/1038637778971658632?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/1038637778971658632?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/what-is-moolux.html" title="What is MooLux" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4qUB07E_UI/AAAAAAAAAJk/MHu6620fhhE/s72-c/snapshot1.jpg" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUMMQX88eyp7ImA9Wx9REEU.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-7007878737994242827</id><published>2010-12-12T00:09:00.001+07:00</published><updated>2010-12-12T00:11:20.173+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-12T00:11:20.173+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="tricks" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><category scheme="http://www.blogger.com/atom/ns#" term="how-to" /><title>Screenshot Grabbing</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NPCXzS8G2ynGNOX9qiGYGT2AAMU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NPCXzS8G2ynGNOX9qiGYGT2AAMU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NPCXzS8G2ynGNOX9qiGYGT2AAMU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NPCXzS8G2ynGNOX9qiGYGT2AAMU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;b&gt;Using imagemagick&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
imagemagick is a collection of tools and libraries for image manipulation. Most distribustions come with imagemagick .&lt;br /&gt;
To take a snapshot using Imagemagic:&lt;br /&gt;
&lt;blockquote&gt;import -window root screenshot.png&lt;/blockquote&gt;import manual page&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Using xv&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
xv is another image manipulation program that can deal with almost all file formats. xv is not included in distributions installations, but packages are available for most. Example usage:&lt;br /&gt;
&lt;blockquote&gt;xv -grabdelay 2 myimage.jpg&lt;br /&gt;
xv manual page&lt;/blockquote&gt;&lt;b&gt;using gimp&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
To grab an image of the screen or a program in Gimp:&lt;br /&gt;
&lt;blockquote&gt;File -&amp;gt; Acquire -&amp;gt; Screen shot&lt;/blockquote&gt;&lt;b&gt;using Framebuffer Console&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
Use fbgrab to grab a screenshot in a framebuffer console.&lt;br /&gt;
&lt;blockquote&gt;fbgrab filename.png&lt;/blockquote&gt;&lt;b&gt;using kde&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
KDE comes with a handy program called ksnapshot that lets you with ease grab a screenshot of your desktop or a single window.&lt;br /&gt;
&lt;blockquote&gt;scrot&lt;/blockquote&gt;scrot is a small (66 kB) screen shot grabber based on imlib2. It has lots of options for autogenerating filenames, and can do fun stuff like taking screenshots of multiple displays and glueing them together. thanks to miztic for mentioning it&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;using xwd&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
xwd (manual page) is a part of XFree, so chances are high you already have it installed. It can dump screenshots to .xwd files. This is not a common format. After taking a screenshot using &lt;br /&gt;
&lt;blockquote&gt;xwd -root -out test.xwd&lt;/blockquote&gt;the only programs I found capable of opening it were Gimp and xwud (manual page). thanks to lude for mentioning it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-7007878737994242827?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/7007878737994242827/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/12/screenshot-grabbing.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/7007878737994242827?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/7007878737994242827?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/12/screenshot-grabbing.html" title="Screenshot Grabbing" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUYERX09eCp7ImA9Wx9REEU.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-1589409473999271457</id><published>2010-12-12T00:05:00.000+07:00</published><updated>2010-12-12T00:05:04.360+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-12T00:05:04.360+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="encrypt" /><category scheme="http://www.blogger.com/atom/ns#" term="filesystem" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><category scheme="http://www.blogger.com/atom/ns#" term="how-to" /><title>Encrypt Filesystems</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MriSMmtP4m20yChJtqyVuoPWtdI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MriSMmtP4m20yChJtqyVuoPWtdI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MriSMmtP4m20yChJtqyVuoPWtdI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MriSMmtP4m20yChJtqyVuoPWtdI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;If you are using modules you need to load these first:&lt;br /&gt;
&lt;blockquote&gt;modprobe loop;modprobe cryptoloop;modprobe cipher-aes&lt;/blockquote&gt;Basically you:&lt;br /&gt;
&lt;blockquote&gt;losetup -e aes -k 256 /dev/loop0 /dev/partition&lt;/blockquote&gt;You will be asked for a password. Then&lt;br /&gt;
&lt;blockquote&gt;mount /dev/loop0 /path/to/mount&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-1589409473999271457?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/1589409473999271457/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/12/encrypt-filesystems.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/1589409473999271457?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/1589409473999271457?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/12/encrypt-filesystems.html" title="Encrypt Filesystems" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;DkAESX49eSp7ImA9Wx5UGU0.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-97377539265977997</id><published>2010-10-24T14:15:00.002+07:00</published><updated>2010-10-24T14:18:28.061+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-24T14:18:28.061+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="tricks" /><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="kill" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title>Kill Linux Processes with pkill</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/u_C5GHDeg9ekSRnqsh-MY9Xm4io/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u_C5GHDeg9ekSRnqsh-MY9Xm4io/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/u_C5GHDeg9ekSRnqsh-MY9Xm4io/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u_C5GHDeg9ekSRnqsh-MY9Xm4io/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;One of the best features in Linux is the way you can control processes from the command line, so if you have an application that locks up your GUI, you can always SSH over from another machine and just kill the offending process.&lt;br /&gt;
&lt;br /&gt;
The problem is that if you are killing the same process repeatedly, it’s very tedious to have to figure out the process ID every single time so that you can kill it… so here’s the easier way to do it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The Old Way&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
The classic way of killing processes meant you’d first need to use the ps command piped through grep to find the process you are trying to kill:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;$ ps -ef | grep swiftfox&lt;br /&gt;
geek      7206 22694  0 Dec04 ?        00:00:00 /bin/sh /opt/swiftfox/swiftfox&lt;br /&gt;
geek      7209  7206  0 Dec04 ?        00:00:00 /bin/sh /opt/swiftfox/run-mozilla.sh /opt/swiftfox/swiftfox-bin&lt;br /&gt;
geek      7213  7209  0 Dec04 ?        00:04:29 /opt/swiftfox/swiftfox-bin&lt;br /&gt;
geek     14863 14224  0 18:19 pts/4    00:00:00 grep swiftfox&lt;/blockquote&gt;&lt;br /&gt;
Then to kill the process, you’d have to use the kill command:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;$ kill 7206&lt;br /&gt;
&lt;/blockquote&gt;&lt;b&gt;The New Way&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
Instead of going through all of that, you can simply use the pkill command if you already know the process name or part of it.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;$ pkill swiftfox&lt;br /&gt;
&lt;/blockquote&gt;It’s as simple as that. You should note that pkill will kill all processes matching the search text, in this case swiftfox&lt;br /&gt;
&lt;br /&gt;
If you want to see what process names are matched before using the pkill command, you can use the pgrep command. Passing the -l switch tells pgrep to show the process name as well.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;$ pgrep -l swiftfox&lt;br /&gt;
7206 swiftfox&lt;br /&gt;
7213 swiftfox-bin&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-97377539265977997?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/97377539265977997/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/kill-linux-processes-with-pkill.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/97377539265977997?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/97377539265977997?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/kill-linux-processes-with-pkill.html" title="Kill Linux Processes with pkill" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkcBQn4-eCp7ImA9Wx5UGU0.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-6818670836806225491</id><published>2010-10-24T14:07:00.001+07:00</published><updated>2010-10-24T14:07:33.050+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-24T14:07:33.050+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="tricks" /><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title>Delete Files Older Than x Days</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/qYRN-9YQrWlryC2XOLs8wMiHDvo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qYRN-9YQrWlryC2XOLs8wMiHDvo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/qYRN-9YQrWlryC2XOLs8wMiHDvo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qYRN-9YQrWlryC2XOLs8wMiHDvo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them.&lt;br /&gt;
&lt;blockquote&gt;find /path/to/files* -mtime +5 -exec rm {} \;&lt;br /&gt;
&lt;/blockquote&gt;Note that there are spaces between rm, {}, and \;&lt;br /&gt;
&lt;br /&gt;
The first argument is the path to the files. This can be a path, a directory, or a wildcard as in the example above. I would recommend using the full path, and make sure that you run the command without the exec rm to make sure you are getting the right results.&lt;br /&gt;
The second argument, -mtime, is used to specify the number of days old that the file is. If you enter +5, it will find files older than 5 days.&lt;br /&gt;
The third argument, -exec, allows you to pass in a command such as rm. The {} \; at the end is required to end the command.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-6818670836806225491?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/6818670836806225491/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/delete-files-older-than-x-days.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/6818670836806225491?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/6818670836806225491?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/delete-files-older-than-x-days.html" title="Delete Files Older Than x Days" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A0QCQn4-eSp7ImA9Wx5UGEg.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-2641946380773550284</id><published>2010-10-24T01:42:00.001+07:00</published><updated>2010-10-24T01:42:43.051+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-24T01:42:43.051+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="tricks" /><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><category scheme="http://www.blogger.com/atom/ns#" term="command" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title>How to use the most popular command in Unix - Grep</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Q83IMPbgZydGIPCvZbrkwZrWHcU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q83IMPbgZydGIPCvZbrkwZrWHcU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Q83IMPbgZydGIPCvZbrkwZrWHcU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q83IMPbgZydGIPCvZbrkwZrWHcU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;grep is by far the most popular command that exists in Unix. Though some may argue about that, but once you begin using grep, it would always be present in all your complex commands that you think of executing at the shell prompt. grep stands for 'global regular expression printer' . Which makes no sense to most.. In sensible words grep extracts those lines from a given text that match the conditions set by the user. &lt;br /&gt;
&lt;br /&gt;
Basically grep lets you enter a pattern of text and then it searches for this pattern within then text that you provide it. It would return all the lines that have the given pattern in them. grep can be used in 2 ways - Either on its own or along with pipes&lt;br /&gt;
&lt;br /&gt;
Using grep on its own&lt;br /&gt;
&lt;blockquote&gt;$ grep '12.00' /home/david/backup/log.txt&lt;/blockquote&gt;This command basically shows how you can use grep to extract lines containing a particular string from a text file. (Text files need not necessarily end in .txt) The above command searches for the string 12.00 in the text file specified in the command, and displays all the lines that have this string in them.&lt;br /&gt;
The above command could be used to find out all the backups that took place at 12.00 (In case you have a log.txt file in that directory with a list of all the timings for the backups that you have made). &lt;br /&gt;
&lt;blockquote&gt;$ grep -v '12.00' /home/david/backup/log.txt&lt;br /&gt;
&lt;/blockquote&gt;The above command would now show you all the lines in the text file except those that have the string 12.00 in them. &lt;br /&gt;
&lt;blockquote&gt;$ grep -l 'delay' /code/*.c&lt;br /&gt;
&lt;/blockquote&gt;The above command searches for those files that end with a '.c' (within the /code directory) and in which the text 'delay' is present. It only returns the names of these files and not the lines where it found the string.&lt;br /&gt;
&lt;blockquote&gt;$ grep -w '\&lt;bay' *
$ grep -w 'watch\&gt;' *&lt;br /&gt;
&lt;/blockquote&gt;The above commands search for text in a more refined way. The first command searches for those lines where any word in that line begins with the letters 'bay' and the second command searches for those lines where any word in that line ends with the letter 'watch'&lt;br /&gt;
-&lt;br /&gt;
&lt;br /&gt;
Using grep with pipes&lt;br /&gt;
&lt;blockquote&gt;$ ls -l | grep rwxrwxrwx&lt;/blockquote&gt;As you must be knowing ls -l displays the directory listing for any directory. The grep rwxrwxrwx part of the command extracts only those lines which display the files having their read,write,execute permissions set for user, group and others also. Thus instead of getting a listing of all the files in the directory, you would only see those files that have their r,w,x permissions set for all everybody.&lt;br /&gt;
&lt;br /&gt;
The output of grep can also be piped to another program as follows&lt;br /&gt;
&lt;blockquote&gt;$ du | grep 'mp3' | more&lt;br /&gt;
&lt;/blockquote&gt;You should be able to figure out what the above command does..&lt;br /&gt;
&lt;blockquote&gt;$ grep '^#' /home/david/script1 | more&lt;br /&gt;
&lt;/blockquote&gt;The above command would display those lines (from the file /home/david/script1) that begin with a '#'. The term '^#' means that # should be present as the first character on a line. The more part of the command should be known to you. If not, more basically displays the output a page at a time incase the output exceeds one page.&lt;br /&gt;
&lt;blockquote&gt;$ grep -v '^[0-9]' /home/david/backup/log.txt | more&lt;br /&gt;
&lt;/blockquote&gt;This command searches for lines having any of the numbers from 0-9 in them as the first character on the line. It then prints all the lines except the ones it found initially.&lt;br /&gt;
&lt;br /&gt;
Important : It's necessary to enclose patterns (as used in the above 2 commands) in single quotes so that the shell understands it correctly.Otherwise, the shell may interpret it in another method.&lt;br /&gt;
&lt;br /&gt;
Some extra options for grep&lt;br /&gt;
&lt;br /&gt;
-v&lt;br /&gt;
Reverses the normal behaviour of the grep command - Instead of selecting lines, it rejects the lines that match the given criteria.&lt;br /&gt;
&lt;br /&gt;
-c&lt;br /&gt;
It supresses the normal output and only prints the total count of matching lines instead of the actual lines.&lt;br /&gt;
&lt;br /&gt;
-i&lt;br /&gt;
Ignores the case of the text when matching the given pattern.&lt;br /&gt;
&lt;br /&gt;
-w&lt;br /&gt;
Checks if the given pattern is a word by itself and not a part of another word. Thus if you search for 'bay' and the word 'baywatch' is present in a file, the particular line conatining that word would not be returned in the result.&lt;br /&gt;
&lt;br /&gt;
-l&lt;br /&gt;
Only gives the names of the files in which the given pattern was found.&lt;br /&gt;
&lt;br /&gt;
-r &lt;br /&gt;
Checks for the given pattern , recursively within the directory that you specify after the -r option&lt;br /&gt;
&lt;br /&gt;
I hope this tutorial helps you get started with grep. grep is defintely one of the tools that gives Linux the advantage over other Operating Systems. Using grep effectively along with other tools gives the user a lot of power in Unix.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-2641946380773550284?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/2641946380773550284/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/how-to-use-most-popular-command-in-unix.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/2641946380773550284?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/2641946380773550284?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/how-to-use-most-popular-command-in-unix.html" title="How to use the most popular command in Unix - Grep" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A0YFRn8_eCp7ImA9Wx5UGEg.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-2829790944695277450</id><published>2010-10-24T01:38:00.001+07:00</published><updated>2010-10-24T01:38:37.140+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-24T01:38:37.140+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="tricks" /><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title>Setting the PATH in linux</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/o01eIt_YKMdXrWjsVKopZv4CxNU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/o01eIt_YKMdXrWjsVKopZv4CxNU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/o01eIt_YKMdXrWjsVKopZv4CxNU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/o01eIt_YKMdXrWjsVKopZv4CxNU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;This article explains how set your PATH variable under Linux. This has the same use as that of setting the PATH variable under DOS. Under Linux too, modifying the PATH would add these new directories to your default search path. &lt;br /&gt;
So in case you have a particular executable in a particular directory, then if you add that directory to your PATH, then you would only have to type the name of the executable at the prompt rather than then absolute path for that executable. Got it?? Read the example below to figure out what exactly I am speaking about..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Assumption&lt;br /&gt;
&lt;br /&gt;
Suppose you have a program by the name 'tetris' in a folder called /usr/local/games . So in order to run this program you would have to type the following at the prompt&lt;br /&gt;
&lt;blockquote&gt;$/usr/local/games/tetris&lt;/blockquote&gt;&lt;br /&gt;
The above command would execute your program. But typing this every time you want to play this wonderful game makes it slightly cumbersome. It would be much better if you could only type 'tetris'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Solution&lt;br /&gt;
&lt;br /&gt;
A solution would be to add the /usr/local/games directory to your PATH, so that next time onwards you would only have to type 'tetris' at the prompt rather than the absolute path. &lt;br /&gt;
&lt;br /&gt;
To add this directory to your PATH you have to edit a file called 'bash_profile' that would be present in your Home directory (in Redhat Linux 6.2). So if there is a user by the name David then this file would mostly be found at /home/David/.bash_profile&lt;br /&gt;
&lt;br /&gt;
Note : The period (.) before the name of the file. This period make this file a hidden file. So remember to view hidden files also while seeing a directory listing (This option would be in some menu in X , at the prompt simply use 'ls -a' to see hidden files).&lt;br /&gt;
&lt;br /&gt;
This file would be having a particular line starting with the string PATH. For e.g. the file that I have on my machine has a line such as&lt;br /&gt;
&lt;blockquote&gt;PATH=/optional/bin:$PATH:$HOME/bin&lt;/blockquote&gt;&lt;br /&gt;
To add the directory /usr/local/games to this I would have to modify this line as follows&lt;br /&gt;
&lt;blockquote&gt;PATH=/usr/local/games:optional/bin:$PATH:$HOME/bin&lt;/blockquote&gt;&lt;br /&gt;
Once you have modified this file, save it and then execute it as follows &lt;br /&gt;
&lt;blockquote&gt;. $HOME/.bash_profile&lt;/blockquote&gt;&lt;br /&gt;
Note : To execute this script basically at the $ prompt type a period ' . ' leave a space and then type $HOME/ Once this is done press &lt;Tab&gt; key. Doing so would replace what ever you have typed with the path to your home directory. Once this happens all you have to do is append a .bash_profile to what is already present at the prompt and finally press &lt;Enter&gt;&lt;br /&gt;
&lt;br /&gt;
On executing the script you wouldn't see any messages at the output, but then onwards you could simply type 'tetris' at the prompt to execute the program /usr/local/games/tetris &lt;br /&gt;
So now you are on the right PATH&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-2829790944695277450?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/2829790944695277450/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/setting-path-in-linux.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/2829790944695277450?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/2829790944695277450?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/setting-path-in-linux.html" title="Setting the PATH in linux" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQHkyeip7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-8096950320622854199</id><published>2010-10-19T16:27:00.000+07:00</published><updated>2010-10-23T22:04:41.792+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:41.792+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="triks" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><category scheme="http://www.blogger.com/atom/ns#" term="disk utility" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title>Unmount busy drives</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Apao-XxZ8g3g4nAbdn9n5aZpolI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Apao-XxZ8g3g4nAbdn9n5aZpolI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Apao-XxZ8g3g4nAbdn9n5aZpolI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Apao-XxZ8g3g4nAbdn9n5aZpolI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;You are probably all too familiar with the situation - you are trying to unmount a drive, but keep getting told by your system that it's busy. But what application is tying it up? A quick one-liner will tell you:&lt;br /&gt;&lt;blockquote&gt;lsof +D /mnt/windows&lt;/blockquote&gt;This will return the command and process ID of any tasks currently accessing the /mnt/windows directory. You can then locate them, or use the kill command to finish them off.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-8096950320622854199?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/8096950320622854199/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/unmount-busy-drives.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/8096950320622854199?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/8096950320622854199?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/unmount-busy-drives.html" title="Unmount busy drives" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQHY6fCp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-7715936386882601301</id><published>2010-10-18T14:29:00.000+07:00</published><updated>2010-10-23T22:04:41.814+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:41.814+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="triks" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><category scheme="http://www.blogger.com/atom/ns#" term="command" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title>Grabbing a screenshot without X</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/9uQhInDU-zRMoW83dnbLCytK_9o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9uQhInDU-zRMoW83dnbLCytK_9o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/9uQhInDU-zRMoW83dnbLCytK_9o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9uQhInDU-zRMoW83dnbLCytK_9o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;There are plenty of screen-capture tools, but a lot of them are based on X. This leads to a problem when running an X application would interfere with the application you wanted to grab - perhaps a game or even a Linux installer. If you use the venerable ImageMagick import command though, you can grab from an X session via the console. Simply go to a virtual terminal (Ctrl+Alt+F1 for example) and enter the following:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;chvt 7; sleep 2; import -display :0.0 -window root sshot1.png; chvt 1;&lt;br /&gt;&lt;/blockquote&gt;The chvt command changes the virtual terminal, and the sleep command gives it a while to redraw the screen. The import command then captures the whole display and saves it to a file before the final chvt command sticks you back in the virtual terminal again. Make sure you type the whole command on one line.&lt;br /&gt;&lt;br /&gt;This can even work on Linux installers, many of which leave a console running in the background - just load up a floppy/CD with import and the few libraries it requires for a first-rate run-anywhere screen grabber.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-7715936386882601301?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/7715936386882601301/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/grabbing-screenshot-without-x.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/7715936386882601301?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/7715936386882601301?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/grabbing-screenshot-without-x.html" title="Grabbing a screenshot without X" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQHY4fCp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-3909223660124480035</id><published>2010-10-18T14:28:00.000+07:00</published><updated>2010-10-23T22:04:41.834+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:41.834+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="triks" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><title>Finding the biggest files</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/stMelZ2_GAbupu6hdXwJ9sUtmmY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/stMelZ2_GAbupu6hdXwJ9sUtmmY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/stMelZ2_GAbupu6hdXwJ9sUtmmY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/stMelZ2_GAbupu6hdXwJ9sUtmmY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;A common problem with computers is when you have a number of large files (such as audio/video clips) that you may want to get rid of. You can find the biggest files in the current directory with:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;ls -lSrh&lt;br /&gt;&lt;/blockquote&gt;The "r" causes the large files to be listed at the end and the "h" gives human readable output (MB and such). You could also search for the biggest MP3/MPEGs:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;ls -lSrh *.mp*&lt;br /&gt;&lt;/blockquote&gt;You can also look for the largest directories with:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;du -kx | egrep -v "\./.+/" | sort -n&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-3909223660124480035?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/3909223660124480035/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/finding-biggest-files.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/3909223660124480035?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/3909223660124480035?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/finding-biggest-files.html" title="Finding the biggest files" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQHY_cSp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-5407463468736467214</id><published>2010-10-17T19:25:00.000+07:00</published><updated>2010-10-23T22:04:41.849+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:41.849+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="dns" /><category scheme="http://www.blogger.com/atom/ns#" term="tips" /><category scheme="http://www.blogger.com/atom/ns#" term="bind" /><title>Using ODBC with bind</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/YiKnffm9mld0xGNbo7M_vae_rt0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YiKnffm9mld0xGNbo7M_vae_rt0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/YiKnffm9mld0xGNbo7M_vae_rt0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YiKnffm9mld0xGNbo7M_vae_rt0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;I ran into this last week, and the Google was failing me, so here's the reason why you sometimes get "Required token $zone$ not found." when debugging why bind won't start with ODBC. The answer is: because the DLZ documentation is slightly wrong. It delimits "zone" and "record" with % instead of $. That is, the directions show:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;{select zone from dns_records where zone = '%zone%'}&lt;br /&gt;&lt;/blockquote&gt;But really, it should be:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;{select zone from dns_records where zone = '$zone$'}&lt;br /&gt;&lt;/blockquote&gt;There you go. That's where that error comes from. Now hopefully the next person who hits this will be able to find an actual useful answer when they search for the error.&lt;br /&gt;&lt;br /&gt;source: http://ubuntulinuxtipstricks.blogspot.com/2010/10/using-odbc-with-bind.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-5407463468736467214?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/5407463468736467214/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/using-odbc-with-bind.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/5407463468736467214?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/5407463468736467214?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/using-odbc-with-bind.html" title="Using ODBC with bind" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQHY9fyp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-7558880355251613410</id><published>2010-10-17T18:33:00.000+07:00</published><updated>2010-10-23T22:04:41.867+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:41.867+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="triks" /><category scheme="http://www.blogger.com/atom/ns#" term="mbr" /><title>Backing up Master Boot Record</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jvSdua7j3UCAn0-h2qm89reSpMc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jvSdua7j3UCAn0-h2qm89reSpMc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jvSdua7j3UCAn0-h2qm89reSpMc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jvSdua7j3UCAn0-h2qm89reSpMc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;The MBR  is a 512 byte segment on the very first sector of your hard drive composed of three parts: 1) the boot code which is 446 bytes long, 2) the partiton table which is 64 btyes long, and 3) the boot code signature which is 2 bytes long.&lt;br /&gt;The core of the backup command is dd—which will be familiar to every system administrator, especially to those who intend to clone an entire hard disk. To see all the options type man dd. As we want to back up only the first 512 bytes we need to append some arguments to it. Here is the full command you need (and remember to run it as the root user, su (and sudo for Ubuntu users):&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;dd if=/dev/hda of=/home/richmondg/mbr_backup bs=512 count=1&lt;br /&gt;&lt;/blockquote&gt;Restoring the MBR&lt;br /&gt;You can use a live CD to access your hard drive and read the backup off any removable media such as a USB stick. Here is the command:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;dd if=/dev/sda/mbr_backup of=/dev/hda bs=512 count=1&lt;br /&gt;&lt;/blockquote&gt;Again, amend sda to read where you saved the MBR and run the command as root. If you wish to kill the MBR altogether, including the partition table, then you can overwrite it with a series of zeros:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;dd if=/dev/zero of=/dev/hda bs=512 count=1&lt;br /&gt;&lt;/blockquote&gt;If you want to kill the MBR but leave the partition table intact then simply change 512 to 446.&lt;br /&gt;Another way to repair the mbr of your HDD device is install LILO then type (replacing x with the letter of your HDDdevice) :&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;lilo -M /dev/sdx&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-7558880355251613410?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/7558880355251613410/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/backing-up-master-boot-record.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/7558880355251613410?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/7558880355251613410?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/backing-up-master-boot-record.html" title="Backing up Master Boot Record" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQHYyfCp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-1086025319246384942</id><published>2010-10-02T18:56:00.000+07:00</published><updated>2010-10-23T22:04:41.894+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:41.894+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="how-to" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title>Batch resize images using the command line in Linux</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Q_NfEv7jxbRv7j3t5SFVGTFf8_E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q_NfEv7jxbRv7j3t5SFVGTFf8_E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Q_NfEv7jxbRv7j3t5SFVGTFf8_E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q_NfEv7jxbRv7j3t5SFVGTFf8_E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;If you have a ton of images that need resizing, you can do it all with the imagemagick package:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;cd /home/user/images&lt;br /&gt;mkdir resized_images&lt;br /&gt;cp /home/user/images/* /home/user/images/resized_images&lt;/blockquote&gt;&lt;br /&gt;Now that you have a copy of the files in resized_images, time to resize them all:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;mogrify -resize 800 *.jpg&lt;/blockquote&gt;&lt;br /&gt;This will resize them all to a width of 800px while keeping the aspect ratio. If you want a fixed image size, you can specify it like this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;mogrify -resize 800×600! *.jpg&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-1086025319246384942?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/1086025319246384942/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/batch-resize-images-using-command-line.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/1086025319246384942?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/1086025319246384942?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/batch-resize-images-using-command-line.html" title="Batch resize images using the command line in Linux" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQHc6cCp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-5442122119768866665</id><published>2010-10-02T18:53:00.000+07:00</published><updated>2010-10-23T22:04:41.918+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:41.918+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="files" /><category scheme="http://www.blogger.com/atom/ns#" term="find" /><category scheme="http://www.blogger.com/atom/ns#" term="how-to" /><title>How to Find duplicate files</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/F6Ht-iqkRHnhXv-2WK2qGYR5eds/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/F6Ht-iqkRHnhXv-2WK2qGYR5eds/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/F6Ht-iqkRHnhXv-2WK2qGYR5eds/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/F6Ht-iqkRHnhXv-2WK2qGYR5eds/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Let’s say you have a folder with 5000 MP3 files you want to check for duplicates. Or a directory containing thousands of EPUB files, all with different names but you have a hunch some of them might be duplicates. You can cd your way in the console up to that particular folder and then do a&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;find -not -empty -type f -printf “%s\n” | sort -rn | uniq -d | xargs -I{} -n1 find -type f -size {}c -print0 | xargs -0 md5sum | sort | uniq -w32 --all-repeated=separate&lt;/blockquote&gt;&lt;br /&gt;This will output a list of files that are duplicates, according tot their HASH signature.&lt;br /&gt;Another way is to install fdupes and do a&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;fdupes -r ./folder &amp;gt; duplicates_list.txt&lt;/blockquote&gt;&lt;br /&gt;The -r is for recursivity. Check the duplicates_list.txt afterwards in a text editor for a list of duplicate files.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-5442122119768866665?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/5442122119768866665/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/how-to-find-duplicate-files.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/5442122119768866665?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/5442122119768866665?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/how-to-find-duplicate-files.html" title="How to Find duplicate files" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEEHSHszeyp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-4256708484651078550</id><published>2010-10-02T18:49:00.001+07:00</published><updated>2010-10-23T22:10:39.583+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:10:39.583+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="samsung" /><category scheme="http://www.blogger.com/atom/ns#" term="android" /><title>Samsung has made Galaxy Tab’s launch date for the UK market official</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/l0wAXFsJzP-l8CeNNqscFWvw9ZM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/l0wAXFsJzP-l8CeNNqscFWvw9ZM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/l0wAXFsJzP-l8CeNNqscFWvw9ZM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/l0wAXFsJzP-l8CeNNqscFWvw9ZM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_F4Lk4UY9uvE/TKccG-jgFuI/AAAAAAAAAWA/Q1rTOq7HRJ8/s1600/galaxy-tab-uk.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/_F4Lk4UY9uvE/TKccG-jgFuI/AAAAAAAAAWA/Q1rTOq7HRJ8/s320/galaxy-tab-uk.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Samsung has made Galaxy Tab’s launch date for the UK market official. Its first Android-powered tablet will go on sale nationwide on November 1, which also happens to be Samsung’s 41st anniversary.&lt;br /&gt;
&lt;br /&gt;
Samsung says the device will arrive on major networks as well as to stores like Carphone Warehouse, Dixons Store Group but has failed to mention the price except claiming to be available in “range of attractive price packages.”&lt;br /&gt;
&lt;br /&gt;
Full Specifications:&lt;br /&gt;
Network: 2.5G (GSM/ GPRS/ EDGE) : 850 / 900 / 1800 / 1900 MHz; 3G (HSUPA 5.76Mbps, HSDPA 7.2Mbps) : 900 / 1900 / 2100 MHz&lt;br /&gt;
OS: Android 2.2 (Froyo)&lt;br /&gt;
Display: 7.0 inch TFT-LCD, WSVGA (1024 x 600)&lt;br /&gt;
Processor: Cortex A8 1.0GHz Application Processor with PowerVR SGX540&lt;br /&gt;
Camera: 3 MP Camera with Auto-Focus and LED Flash; 1.3MP front camera for Video Telephony&lt;br /&gt;
Value-added Features: Android Market™ and Samsung Apps for more applications and contents; Readers Hub; Media Hub*; Music Hub*; Social Hub; *Availability will be decided by market preference.; Adobe Flash 10.1 player support; Full HD video playback; Thinkfree Office; Swype; Hybrid Widget&lt;br /&gt;
Connectivity: 30 pin connector&lt;br /&gt;
WiFi 802.11n / Bluetooth® 3.0&lt;br /&gt;
Sensor: Gyroscope sensor, Geo-magnetic sensor, Accelerometer, Light sensor&lt;br /&gt;
Memory: 16G / 32G internal memory with up to 32G external memory slot&lt;br /&gt;
RAM: 512 MB&lt;br /&gt;
Size: 190.09 x 120.45 x 11.98mm, 380g&lt;br /&gt;
Battery:4,000mAh (7 hour movie play)&lt;br /&gt;
&lt;br /&gt;
source: http://www.samsunghub.com/2010/10/01/galaxy-tab-coming-to-uk-on-november-1/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-4256708484651078550?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/4256708484651078550/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/10/samsung-has-made-galaxy-tabs-launch.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/4256708484651078550?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/4256708484651078550?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/10/samsung-has-made-galaxy-tabs-launch.html" title="Samsung has made Galaxy Tab’s launch date for the UK market official" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_F4Lk4UY9uvE/TKccG-jgFuI/AAAAAAAAAWA/Q1rTOq7HRJ8/s72-c/galaxy-tab-uk.jpg" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQHc8fyp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-2561733457315375233</id><published>2010-05-25T09:51:00.000+07:00</published><updated>2010-10-23T22:04:41.977+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:41.977+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="News" /><category scheme="http://www.blogger.com/atom/ns#" term="slackware 13.1" /><category scheme="http://www.blogger.com/atom/ns#" term="slackware" /><title>Slackware 13.1 Released</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AKOFYH8M6a3AhTyJUDhdt_vLxcg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AKOFYH8M6a3AhTyJUDhdt_vLxcg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AKOFYH8M6a3AhTyJUDhdt_vLxcg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AKOFYH8M6a3AhTyJUDhdt_vLxcg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Great news!!! Slackware 13.1 has been officially released. In the last few days, there has been no activity in -Current tree and they have prepared to put the ISO into replication phase which will be used for pre-orders in Slackware Store.&lt;br /&gt;&lt;br /&gt;As usual, you will not find official ISOs in any mirrors now, but eventually there will be an ISO on the mirrors site within few days. For now, get the ISOs from torrents located in the main page of Slackware.&lt;br /&gt;&lt;br /&gt;Read the &lt;a href="http://slackware.com/announce/13.1.php"&gt;ANNOUNCEMENT&lt;/a&gt; or the &lt;a href="http://slackware.com/releasenotes/13.1.php"&gt;RELEASE NOTES&lt;/a&gt; and also &lt;a href="http://slackware.osuosl.org/slackware-13.1/CHANGES_AND_HINTS.TXT"&gt;CHANGES_AND_HINTS&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-2561733457315375233?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/2561733457315375233/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/05/slackware-131-released.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/2561733457315375233?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/2561733457315375233?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/05/slackware-131-released.html" title="Slackware 13.1 Released" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQ344fSp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-3675199589428639526</id><published>2010-05-02T14:28:00.000+07:00</published><updated>2010-10-23T22:04:42.035+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:42.035+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="how-to" /><category scheme="http://www.blogger.com/atom/ns#" term="bash script" /><category scheme="http://www.blogger.com/atom/ns#" term="ip address" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title>block consecutive IP address using scripts</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CrqRBDmTGgVi7ua70Z7Esta0r10/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CrqRBDmTGgVi7ua70Z7Esta0r10/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CrqRBDmTGgVi7ua70Z7Esta0r10/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CrqRBDmTGgVi7ua70Z7Esta0r10/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;How to block long list of consecutive IP address?&lt;br /&gt;How to call linux route command inside a script?&lt;br /&gt;How to block consecutive IP address using bash script or perl script?&lt;br /&gt;How to block local IP address permanently?&lt;br /&gt;&lt;br /&gt;The are times that a server does not need to listen and process any &lt;b&gt;TCP/UDP&lt;/b&gt; request for a long list of consecutive local IP addresses.&lt;br /&gt;&lt;br /&gt;This blog entry provides a starting point of creating server scripts to block a long list of consecutive &lt;b&gt;IP address&lt;/b&gt; from the server for permanent blocking.&lt;br /&gt;&lt;br /&gt;To start, launch your fave editor and create a &lt;b&gt;IPblock.sh&lt;/b&gt; bash script like with contents similar to the next few lines. This blog entry assumes that you have bash shell and perl currently installed from the machine.&lt;br /&gt;&lt;!-- adsense --&gt;From below example, we are permanently &lt;b&gt;blocking IP address&lt;/b&gt; from&lt;br /&gt;&lt;blockquote&gt;192.168.0.10 to 192.168.0.254.&lt;/blockquote&gt;Here's a simple sample script that does the job.&lt;br /&gt;&lt;blockquote&gt;#!/bin/bash&lt;br /&gt;echo Blocking started ...&lt;br /&gt;&lt;br /&gt;for ((i=10;i&amp;lt;=254;i=i+1)); do /sbin/route add -host 192.168.0.$i reject done  echo Done&lt;/blockquote&gt;This can also be accomplished using perl script which does the same function. Create a separate IPblock.pl perl script like so.&lt;br /&gt;&lt;blockquote&gt;#!/usr/bin/perl -w&lt;br /&gt;&lt;br /&gt;my $i;&lt;br /&gt;for ($i=10; $i&amp;lt;=254; $i++ ) { system ("/sbin/route del -host 192.168.0.$i reject"); } } &lt;/blockquote&gt;Make sure these scripts are root executable like so&lt;br /&gt;&lt;blockquote&gt;# chmod 700 IPblock.sh&lt;br /&gt;# chmod 700 IPblock.pl&lt;/blockquote&gt;Now, to execute individually&lt;br /&gt;&lt;blockquote&gt;# ./IPblock.sh&lt;br /&gt;# ./IPblock.pl&lt;/blockquote&gt;Additionally, the above scripts can be scheduled for regular execution if you need them so by using crontab utility.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-3675199589428639526?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/3675199589428639526/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/05/block-consecutive-ip-address-using.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/3675199589428639526?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/3675199589428639526?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/05/block-consecutive-ip-address-using.html" title="block consecutive IP address using scripts" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQ34-fip7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-2070082479720202301</id><published>2010-05-02T14:22:00.000+07:00</published><updated>2010-10-23T22:04:42.056+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:42.056+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="how-to" /><category scheme="http://www.blogger.com/atom/ns#" term="bash script" /><category scheme="http://www.blogger.com/atom/ns#" term="disk utility" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><category scheme="http://www.blogger.com/atom/ns#" term="script" /><title>du - the disk usage linux command</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MTAe6ppgUkBm9dAR-oo3nq7mnQ4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MTAe6ppgUkBm9dAR-oo3nq7mnQ4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MTAe6ppgUkBm9dAR-oo3nq7mnQ4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MTAe6ppgUkBm9dAR-oo3nq7mnQ4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;du stands for disk usage. This simple linux command provides a summary of harddisk or storage space disk usage. It has many parameter arguments that can provide results in many screen format. du command can also summarize files and directories in a recursive manner.&lt;br /&gt;&lt;br /&gt;Here are several usage of to use the du (disk usage) command.&lt;br /&gt;&lt;blockquote&gt;# cd /home/vertito&lt;/blockquote&gt;&lt;!-- adsense --&gt;To list the files and directories from there&lt;br /&gt;&lt;blockquote&gt;# ls -la&lt;br /&gt;-rw-r--r-- 1 root root 29 2007-08-11 11:57 file.txt&lt;br /&gt;drwxr-xr-x 2 root root 4096 2007-08-11 11:57 folder1&lt;/blockquote&gt;Show summary in bytes&lt;br /&gt;&lt;blockquote&gt;# du -b&lt;br /&gt;4096 ./folder1&lt;br /&gt;8221 .&lt;br /&gt;# du -a&lt;br /&gt;4 ./file.txt&lt;br /&gt;4 ./folder1&lt;br /&gt;12 .&lt;/blockquote&gt;Now, let us get a more human readable results&lt;br /&gt;&lt;blockquote&gt;# du -ah&lt;br /&gt;4.0K ./file.txt&lt;br /&gt;4.0K ./folder1&lt;br /&gt;12K .&lt;/blockquote&gt;The above shows that my file.txt has about 4K of filesize rounded to nearest power of 1024K including . an .. &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Now, let us it in bytes&lt;br /&gt;# du -ab&lt;br /&gt;29 ./file.txt&lt;br /&gt;4096 ./folder1&lt;br /&gt;8221 .&lt;/blockquote&gt;The above is the same results you get from issuing ls -la command. 8221 is . and .. &lt;br /&gt;&lt;br /&gt;Now let us do it once again in human readable form&lt;br /&gt;&lt;blockquote&gt;# du -abh&lt;br /&gt;29 ./file.txt&lt;br /&gt;4.0K ./folder1&lt;br /&gt;8.1K .&lt;/blockquote&gt;You can also exclude file glob pattern or shell expression for files like so&lt;br /&gt;&lt;blockquote&gt;# du -abh --exclude='file.txt'&lt;br /&gt;# du -abh --exclude='*.txt'&lt;br /&gt;4.0K ./folder1&lt;br /&gt;8.0K .&lt;/blockquote&gt;Recursive directory disk usage summary can also be achieved by doing the default usage without any parameters&lt;br /&gt;&lt;blockquote&gt;# cd /home&lt;br /&gt;# du&lt;/blockquote&gt;You can also limit the recursive search dept like so&lt;br /&gt;&lt;blockquote&gt;# du --max-depth=2&lt;/blockquote&gt;which search on the 2nd level of directory only and ignores any folder found above the 2nd level folders.&lt;br /&gt;&lt;br /&gt;Getting the summarized return in a human readable form&lt;br /&gt;&lt;blockquote&gt;# du -sh&lt;/blockquote&gt;Alternatively if you wish to get the last time modification&lt;br /&gt;&lt;blockquote&gt;# du -ah --time&lt;br /&gt;4.0K 2007-08-11 11:57 ./file.txt&lt;br /&gt;4.0K 2007-08-11 11:57 ./folder1&lt;br /&gt;12K 2007-08-11 11:57 .&lt;/blockquote&gt;&lt;br /&gt;If you are using mbox type of mail storage handling, these commands can be handy checking and reporting partition and/or folder disk usage when incorporated inside a shell scripts. Furthermore, you can create and generate your TOP 10 users with largest mails on monthly or weekly basis that could give you more detailed email report and alerts from it.. &lt;br /&gt;&lt;br /&gt;At regular interval and again using a script, you can also watch and monitor folder/partition usage changes and alerts you for certain specified thresholds like for /home or /var/ftp or /tmp.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-2070082479720202301?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/2070082479720202301/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/05/du-disk-usage-linux-command.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/2070082479720202301?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/2070082479720202301?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/05/du-disk-usage-linux-command.html" title="du - the disk usage linux command" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkMHSXc8fSp7ImA9Wx5UGEg.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-423303703911087634</id><published>2010-05-02T14:15:00.001+07:00</published><updated>2010-10-24T00:20:38.975+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-24T00:20:38.975+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="how-to" /><category scheme="http://www.blogger.com/atom/ns#" term="bash script" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title>Insert a file at a specific line and column</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mIgsy1Z92WGK1NTmFMmafx2CKKM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mIgsy1Z92WGK1NTmFMmafx2CKKM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mIgsy1Z92WGK1NTmFMmafx2CKKM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mIgsy1Z92WGK1NTmFMmafx2CKKM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;How to insert the complete contents of a text file at a specific row and column of another text file.&lt;br /&gt;
&lt;br /&gt;
If we are merely concerned with inserting after a specific line, it can be readily achieved with a number of Linux tools. For example, to insert file1.txt after the second line of file2.txt, any of the following commands will do:&lt;br /&gt;
&lt;blockquote&gt;$ sed -i '2r file1.txt' file2.txt&lt;br /&gt;
$ awk '{print} NR==2 {while (getline &amp;lt; "file1.txt") print}' file2.txt&lt;/blockquote&gt;Unlike the previous sed command which modifies file2 in-line, the above awk command writes the desired output to standard output only.&lt;br /&gt;
&lt;blockquote&gt;$ emacs -batch +3 file2.txt --insert file1.txt -f save-buffer -kill&lt;/blockquote&gt;This uses the batch capability of the emacs text editor. The command opens file2 at line 3, inserts file1, saves and then exits.&lt;br /&gt;
&lt;blockquote&gt;$ vi +2 file2.txt &amp;lt;&amp;lt; DELIM  &amp;gt; :r file1.txt&lt;br /&gt;
&amp;gt; :wq &lt;br /&gt;
&amp;gt; DELIM&lt;br /&gt;
Vim: Warning: Input is not from a terminal&lt;/blockquote&gt;Note that after you enter the first line ("vi +2 ..."), you will be prompted for more input. At that time, you enter the next three lines (:r, :wq, DELIM)&lt;br /&gt;
While Linux has many utilities to manipulate text (sed, perl, awk, cut, python), the easiest way I can think of to accomplish my objective to insert at a target line and column is using emacs.&lt;br /&gt;
&lt;blockquote&gt;$ emacs -batch -Q +2:3 file2.txt --insert file1.txt -f save-buffer -kill 2&amp;gt;/dev/null&lt;/blockquote&gt;The key is +2:3 which directs the editor to open the file at line 2 column 3. &lt;br /&gt;
&lt;br /&gt;
Two other components in the above emacs command warrant some explanation. First, -Q means quick startup. Quick, because emacs won't load any init file, or any splash file. Second, the last part of the command pipes any standard error output from the emacs editor to the null device.&lt;br /&gt;
&lt;br /&gt;
I don't doubt that sed, awk or perl can do the job. If you have a simple solution, please share with us via the comment feature of this web page. Many thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-423303703911087634?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/423303703911087634/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/05/insert-file-at-specific-line-and-column.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/423303703911087634?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/423303703911087634?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/05/insert-file-at-specific-line-and-column.html" title="Insert a file at a specific line and column" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQ34zcSp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-1543237989539934295</id><published>2010-05-02T13:47:00.000+07:00</published><updated>2010-10-23T22:04:42.089+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:42.089+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="bash script" /><category scheme="http://www.blogger.com/atom/ns#" term="history" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title>Keeping Command History across Multiple Sessions</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-CBBlxJMpbTf59GIXaOt_vYbySU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-CBBlxJMpbTf59GIXaOt_vYbySU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-CBBlxJMpbTf59GIXaOt_vYbySU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-CBBlxJMpbTf59GIXaOt_vYbySU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;The bash shell maintains a history of the commands you entered. You can re-execute a command by recalling it from the history, without having to re-type it.&lt;br /&gt;&lt;br /&gt;The command history is stored in a file, specified by an environment variable. &lt;br /&gt;&lt;blockquote&gt;$ echo $HISTFILE&lt;br /&gt;/home/peter/.bash_history&lt;/blockquote&gt;The maximum number of commands that it will save depends on the value of this environment variable:&lt;br /&gt;&lt;blockquote&gt;$ echo $HISTSIZE&lt;br /&gt;500&lt;/blockquote&gt;Life is simple if we operate on a single shell session at any given time. If you have 2 simultaneous sessions, you may be surprised that the history does not have the commands you expect.&lt;br /&gt;&lt;br /&gt;The default behavior is that the command history is saved ONLY on session exit. Moreover, the existing contents in the history are overwritten by the new contents.&lt;br /&gt;&lt;!-- adsense --&gt;Assuming you already have a session running, opening a second session will not have the latest commands from the first session. This is because the first shell hasn’t exited yet. Ultimately, the contents of the history file depends on which session exits last, hence overwriting the commands from the session that finishes earlier.&lt;br /&gt;&lt;br /&gt;This can become quite confusing.&lt;br /&gt;The remedy is simple. Change the history behavior as follows:&lt;br /&gt;Append commands to the history file, rather than overwrite it.&lt;br /&gt;&lt;blockquote&gt;$ shopt -s histappend&lt;/blockquote&gt;Save each command right after it has been executed, not at the end of the session.&lt;br /&gt;&lt;blockquote&gt;$ PROMPT_COMMAND='history -a'&lt;/blockquote&gt;&lt;br /&gt;Insert the 2 statements into ~/.bashrc&lt;br /&gt;&lt;blockquote&gt;shopt -s histappend&lt;br /&gt;PROMPT_COMMAND='history -a'&lt;/blockquote&gt;&lt;br /&gt;Note: If the PROMPT_COMMAND is already initialized, then you probably want to concatenate the &lt;br /&gt;&lt;blockquote&gt;history -a part to what is already there.&lt;/blockquote&gt;To determine if PROMPT_COMMAND has a value:&lt;br /&gt;&lt;blockquote&gt;echo $PROMPT_COMMAND&lt;/blockquote&gt;To concenate:&lt;br /&gt;&lt;blockquote&gt;PROMPT_COMMAND="history -a;$PROMPT_COMMAND"&lt;/blockquote&gt;source: http://linuxcommando.blogspot.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-1543237989539934295?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/1543237989539934295/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/05/keeping-command-history-across-multiple.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/1543237989539934295?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/1543237989539934295?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/05/keeping-command-history-across-multiple.html" title="Keeping Command History across Multiple Sessions" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQ387fyp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-1141468990362593427</id><published>2010-05-02T13:41:00.000+07:00</published><updated>2010-10-23T22:04:42.107+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:42.107+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="bluefish" /><category scheme="http://www.blogger.com/atom/ns#" term="install application" /><category scheme="http://www.blogger.com/atom/ns#" term="gnome" /><title>Develop website using bluefish</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RWab1RO-uAsO6msf03mnFVM9mO0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RWab1RO-uAsO6msf03mnFVM9mO0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/RWab1RO-uAsO6msf03mnFVM9mO0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RWab1RO-uAsO6msf03mnFVM9mO0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Linux is at the forefront of web development. Recently, I've been developing web applications using frameworks, and Linux in general makes these things quite a bit easier. Therefore, I figured I should present some of the basic tools you can use to create, develop, and host a website. This may abstract a bit away from the idea of "applications" in and of themselves, but I thought you may all be interested anyway.&lt;br /&gt;&lt;br /&gt;The most logical first step for most users is selecting a development environment. Today, I'll highlight Bluefish. Later on, I'll focus on a &lt;b&gt;WYSIWYG &lt;/b&gt;editor. (Which, by the way, is kind of difficult to find. Please, if you have any ideas, leave a message in the comments.)&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_0YT9Is__VTU/SjR0lPsaTaI/AAAAAAAAAKw/cMBCeYEf8AU/s1600/python_programming.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_0YT9Is__VTU/SjR0lPsaTaI/AAAAAAAAAKw/cMBCeYEf8AU/s320/python_programming.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Of course, to put your webpage on the Internet, you'll probably want to use a reliable web hosting. There's about a million out there, and it's hard to figure out the differences between them. I used to have a site on Bluehost, but I eventually cancelled because I thought their support was poor, and I didn't want to fax in a copy of my driver's license just to have &lt;b&gt;SSH &lt;/b&gt;access so I could use &lt;b&gt;Rails&lt;/b&gt;. I switched to ThinkHost a few months ago, and I've been really happy thus far. They offer reliable Linux hosting with unlimited bandwidth, space, and domains. Better yet, the servers are powered with wind and solar energy, and they plant a tree on your behalf.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_0YT9Is__VTU/SjR06MlYw5I/AAAAAAAAAK4/Okr7srzr8PE/s1600/python_fref.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_0YT9Is__VTU/SjR06MlYw5I/AAAAAAAAAK4/Okr7srzr8PE/s320/python_fref.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Bluefish is a code editor, so users should have a basic understanding of XHTML and CSS, along with any other development languages. I learned HTML rather painstakingly from an outdated code reference, and I don't recommend you do it that way. Instead, try HTML &amp;amp; XHTML: The Definitive Guide published by O'Reilly, which can help even the most talented developer learn new tricks. In fact, it taught me all about the &lt;label&gt; tag, and I felt kind of dumb for previously embedding form labels in only a paragraph tag and wrestling with CSS, but alas...&lt;br /&gt;&lt;!-- adsense --&gt;&lt;br /&gt;One of the nicest things about Bluefish is that it uses 30 to 45 percent less memory than other editors. This makes quick edits less of a hassle. Sometimes, other editors can be too clunky, and I found myself reverting to a console-based text editor to make a minor change, but Bluefish should stop this from happening. It has built-in project support, so you can easily open multiple files and keep them organized in the right path. It has all the standard stuff, like line-numbers, search and replace, and code highlighting for languages like HTML, Ruby (go Rails!), Python, and PHP. Best of all, the menu bar allows you to instantly drop in code that developers use often.&lt;br /&gt;&lt;br /&gt;&lt;b&gt; Bluefish&lt;/b&gt; allows you to connect to a remote server and edit files, so here's a quick guide to using Bluefish with ThinkHost. This tutorial assumes you are using GNOME, though I'm sure you can do the same thing with KDE.&lt;br /&gt;Click on the "&lt;b&gt;Places&lt;/b&gt;" menu, and select "&lt;b&gt;Connect to Server..&lt;/b&gt;.".&lt;br /&gt;&lt;br /&gt;In the dialog box, type in your FTP address in the "&lt;b&gt;Server&lt;/b&gt;" box. You should be prompted for a username and password.&lt;br /&gt;&lt;br /&gt;Now, open up the mounted server in Bluefish, and now you can easily edit and save all of your files on Thinkhost.&lt;br /&gt;If you want to get the latest Ubuntu Applications by email or RSS, be sure to go to The Daily Ubuntu feed.&lt;br /&gt;&lt;/label&gt;&lt;br /&gt;&lt;label&gt;&lt;br /&gt;&lt;/label&gt;&lt;br /&gt;&lt;label&gt;source:&amp;nbsp;http://thedailyubuntu.blogspot.com/&lt;/label&gt;&lt;br /&gt;&lt;label&gt;&lt;br /&gt;&lt;/label&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-1141468990362593427?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/1141468990362593427/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/05/develop-website-using-bluefish.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/1141468990362593427?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/1141468990362593427?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/05/develop-website-using-bluefish.html" title="Develop website using bluefish" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_0YT9Is__VTU/SjR0lPsaTaI/AAAAAAAAAKw/cMBCeYEf8AU/s72-c/python_programming.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQ385fyp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-5694328387249508628</id><published>2010-05-02T13:32:00.000+07:00</published><updated>2010-10-23T22:04:42.127+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:42.127+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><title>Linux Body Painting</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/knObD9BDm3iYqQYlZHjqKgvbbqs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/knObD9BDm3iYqQYlZHjqKgvbbqs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/knObD9BDm3iYqQYlZHjqKgvbbqs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/knObD9BDm3iYqQYlZHjqKgvbbqs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_rbeqbj-n1Z0/SjKHQJpTb_I/AAAAAAAAAXk/XcLayywAkHQ/s1600/450px-Body_painting.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_rbeqbj-n1Z0/SjKHQJpTb_I/AAAAAAAAAXk/XcLayywAkHQ/s320/450px-Body_painting.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;!-- adsense --&gt;&lt;br /&gt;Its, awesome...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-5694328387249508628?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/5694328387249508628/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/05/linux-body-painting.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/5694328387249508628?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/5694328387249508628?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/05/linux-body-painting.html" title="Linux Body Painting" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_rbeqbj-n1Z0/SjKHQJpTb_I/AAAAAAAAAXk/XcLayywAkHQ/s72-c/450px-Body_painting.jpg" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQ38_fip7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-149044161644045989</id><published>2010-05-02T13:29:00.000+07:00</published><updated>2010-10-23T22:04:42.146+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:42.146+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="how-to" /><category scheme="http://www.blogger.com/atom/ns#" term="bash script" /><title>Run commands on logout</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lZvl63LKLehSKr94ZIgGDOR6crE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lZvl63LKLehSKr94ZIgGDOR6crE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lZvl63LKLehSKr94ZIgGDOR6crE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lZvl63LKLehSKr94ZIgGDOR6crE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;If a file named $HOME/.logout (a file named .logout in your home directory) exists, and the following trap statement is in your .profile, .logout is executed when you logout. &lt;br /&gt;&lt;!-- adsense --&gt;&lt;br /&gt;Add this to .profile:&lt;br /&gt;&lt;blockquote&gt;trap "$HOME/.logout" 0&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-149044161644045989?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/149044161644045989/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/05/run-commands-on-logout.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/149044161644045989?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/149044161644045989?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/05/run-commands-on-logout.html" title="Run commands on logout" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQ389fSp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-7152549916373305958</id><published>2010-04-25T16:04:00.000+07:00</published><updated>2010-10-23T22:04:42.165+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:42.165+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><category scheme="http://www.blogger.com/atom/ns#" term="script" /><title>Display the top ten running processes sorted by memory usage</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Q2l5fqpBHOHk3UODG-wwWTMao5Q/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q2l5fqpBHOHk3UODG-wwWTMao5Q/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Q2l5fqpBHOHk3UODG-wwWTMao5Q/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q2l5fqpBHOHk3UODG-wwWTMao5Q/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;blockquote&gt;$ ps aux | sort -nk +4 | tail&lt;/blockquote&gt;This is certainly not the best way to display the top ten processes that consume the most memory, but, hey, it works.&lt;br /&gt;&lt;br /&gt;It takes the output of ps aux, sorts it by 4th column numerically and then uses tail to output the last then lines which happen to be the processes with the biggest memory consumption.&lt;br /&gt;&lt;br /&gt;If I was to find out who consumes the most memory, I'd simply use htop or top and not ps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-7152549916373305958?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/7152549916373305958/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/04/display-top-ten-running-processes.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/7152549916373305958?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/7152549916373305958?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/04/display-top-ten-running-processes.html" title="Display the top ten running processes sorted by memory usage" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQ38yeSp7ImA9Wx5UGEk.&quot;"><id>tag:blogger.com,1999:blog-7128770100706038925.post-4855689112898192956</id><published>2010-04-25T15:58:00.000+07:00</published><updated>2010-10-23T22:04:42.191+07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-23T22:04:42.191+07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Command Line" /><category scheme="http://www.blogger.com/atom/ns#" term="how-to" /><category scheme="http://www.blogger.com/atom/ns#" term="bash script" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><category scheme="http://www.blogger.com/atom/ns#" term="script" /><title>Top for files</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RxuZV0an6XL6rfEwg4YNxQ1AhD4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RxuZV0an6XL6rfEwg4YNxQ1AhD4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/RxuZV0an6XL6rfEwg4YNxQ1AhD4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RxuZV0an6XL6rfEwg4YNxQ1AhD4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;blockquote&gt;$ watch -d -n 1 'df; ls -FlAt /path'&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This one-liner watches for file changes in directory /path. It uses the watch command that executes the given command periodically. The -d flag tells watch to display differences between the command calls (so you saw what files get added or removed in /path). The -n 1 flag tells it to execute the command every second.&lt;br /&gt;&lt;br /&gt;The command to execute is df; ls -FlAt /path that is actually two commands, executed one after other. First, df outputs the filesystem disk space usage, and then ls -FlAt lists the files in /path. The -F argument to ls tells it to classify files, appending */=&gt;@| to the filenames to indicate whether they are executables *, directories /, sockets =, doors &gt;, symlinks @, or named pipes |. The -l argument lists all files, -A hides . and .., and -t sorts the files by time.&lt;br /&gt;&lt;br /&gt;Special note about doors - they are Solaris thing that act like pipes, except they launch the program that is supposed to be the receiving party. A plain pipe would block until the other party opens it, but a door launches the other party itself.&lt;br /&gt;&lt;br /&gt;Actually the output is nicer if you specify -h argument to df so it was human readable. You can also join the arguments to watch together, making them -dn1. Here is the final version:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$ watch -dn1 'df -h; ls -FlAt /path'&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7128770100706038925-4855689112898192956?l=www.moolux.org' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.moolux.org/feeds/4855689112898192956/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.moolux.org/2010/04/top-for-files.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/4855689112898192956?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7128770100706038925/posts/default/4855689112898192956?v=2" /><link rel="alternate" type="text/html" href="http://www.moolux.org/2010/04/top-for-files.html" title="Top for files" /><author><name>Moodjair</name><uri>http://www.blogger.com/profile/04981061197793498876</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="28" height="32" src="http://4.bp.blogspot.com/_F4Lk4UY9uvE/S4ofmp29K2I/AAAAAAAAAIM/Nzo4Sgc_mfE/S220/shutdownkonq.jpg" /></author><thr:total>0</thr:total></entry></feed>

