<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bo Wu&#039;s IT Lab &#187; Command Line</title>
	<atom:link href="http://www.bowu.org/category/system-administration/linux/linux_command/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bowu.org</link>
	<description>If winter comes, can spring be far behind?</description>
	<lastBuildDate>Thu, 29 Dec 2011 18:09:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>How to Convert AVI to MP4 in Linux using Command Line</title>
		<link>http://www.bowu.org/system-administration/linux/convert-avi-mp4-linux-command-line.html</link>
		<comments>http://www.bowu.org/system-administration/linux/convert-avi-mp4-linux-command-line.html#comments</comments>
		<pubDate>Sun, 02 Jan 2011 07:11:19 +0000</pubDate>
		<dc:creator>bo</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[UNIX & Linux]]></category>
		<category><![CDATA[avi]]></category>
		<category><![CDATA[converter]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.bowu.org/?p=541</guid>
		<description><![CDATA[If you want to play your AVI videos in your iPhone, iPod Touch or iPad, you must convert them to MP4 or H.264 format. The following instruction is to let you convert your AVI video files to MP4 files. 1. You must have MPlayer and Mencoder. For more information about MPlayer and Mencoder, please refer [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.technobuzz.net/wp-content/uploads/2008/07/iphone_video.jpg" alt="iphone video How to Convert AVI to MP4 in Linux using Command Line"  title="How to Convert AVI to MP4 in Linux using Command Line" /></p>
<p>If you want to play your AVI videos in your iPhone, iPod Touch or iPad, you must convert them to MP4 or H.264 format.</p>
<p>The following instruction is to let you convert your AVI video files to MP4 files.</p>
<p>1. You must have MPlayer and Mencoder.  For more information about MPlayer and Mencoder, please refer Wikipedia at:</p>
<p>MPlayer: http://en.wikipedia.org/wiki/MPlayer<br />
Mencoder: http://en.wikipedia.org/wiki/Mencoder</p>
<p>In Ubuntu, you can use install them as following command:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get install mplayer mencoder</div></div>
<p>2. If your AVI file is baby.avi and you want to create a MP4 called baby.mp4, you can type following command:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mencoder baby.avi -o baby.mp4 -oac copy -ovc lavc -lavcopts vcodec=mpeg1video -of mpeg</div></div>
<p>3. You can test the new MP4 file you just created using the MPlayer as below:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mplayer baby.mp4</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.bowu.org/system-administration/linux/convert-avi-mp4-linux-command-line.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How do I Unzip multiple files under Linux?</title>
		<link>http://www.bowu.org/system-administration/linux/linux_command/how-do-i-unzip-multiple-files-under-linux.html</link>
		<comments>http://www.bowu.org/system-administration/linux/linux_command/how-do-i-unzip-multiple-files-under-linux.html#comments</comments>
		<pubDate>Sat, 17 Apr 2010 01:57:17 +0000</pubDate>
		<dc:creator>bo</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[UNIX & Linux]]></category>
		<category><![CDATA[unzip]]></category>
		<category><![CDATA[wild card]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://www.bowu.org/?p=327</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-329" title="unzip1" src="http://www.bowu.org/wp-content/uploads/2010/04/unzip1.jpg" alt="unzip1 How do I Unzip multiple files under Linux?" Multiple=" height="273" /></p>
<p>When you try:<br />
<strong>unzip *.zip</strong></p>
<p>You will get the following error:<br />
<strong><span style="color: #008000;">caution: filename not matched</span></strong></p>
<p>When you want to unzip file using wild card, you have two options as follows.</p>
<p>Option # 1 : unzip multiple files using single quote (short version)</p>
<p>Type the command as follows:<br />
<strong>$ unzip </p>
]]></content:encoded>
			<wfw:commentRss>http://www.bowu.org/system-administration/linux/linux_command/how-do-i-unzip-multiple-files-under-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 UNIX Command Line Mistakes</title>
		<link>http://www.bowu.org/system-administration/linux/linux_command/10-unix-command-line-mistakes.html</link>
		<comments>http://www.bowu.org/system-administration/linux/linux_command/10-unix-command-line-mistakes.html#comments</comments>
		<pubDate>Mon, 22 Mar 2010 23:34:08 +0000</pubDate>
		<dc:creator>bo</dc:creator>
				<category><![CDATA[Command Line]]></category>

		<guid isPermaLink="false">http://www.bowu.org/?p=165</guid>
		<description><![CDATA[Anyone who has never made a mistake has never tried anything new. &#8212; Albert Einstein. Here are a few mistakes that I made while working at UNIX prompt. Some mistakes caused me a good amount of downtime. Most of these mistakes are from my early days as a UNIX admin. userdel Command The file /etc/deluser.conf [...]]]></description>
			<content:encoded><![CDATA[<div><img class="alignright" style="border: 0pt none;" src="http://c.cyberciti.biz/cbzcache/3rdparty/terminal.png" border="0" alt="terminal 10 UNIX Command Line Mistakes" width="128" height="128" title="10 UNIX Command Line Mistakes" /></div>
<p>Anyone who has never made a mistake has never tried anything new. &#8212;  <em>Albert Einstein</em>.</p>
<p>Here are a few mistakes that I made while working at UNIX prompt. Some mistakes caused me a good amount of downtime. Most of these mistakes are from my early days as a UNIX admin.</p>
<h2>userdel Command</h2>
<p>The file /etc/deluser.conf was configured to remove the home directory (it was done by previous sys admin and it was my first day at work) and mail spool of the user to be removed. I just wanted to remove the user account and I end up deleting everything (note -r was activated via deluser.conf):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">userdel foo</div></div>
<h2>Rebooted Solaris Box</h2>
<p>On Linux <a href="http://www.cyberciti.biz/tips/kill-frozen-crashed-unix-linux-desktop.html">killall command</a> kill processes by name (killall httpd). On Solaris it kill all active processes. As root I killed all process, this was our main Oracle db box:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">killall process-name</div></div>
<h2>Destroyed named.conf</h2>
<p>I wanted to append a <a href="http://bash.cyberciti.biz/domain/create-bind9-domain-zone-configuration-file/">new zone</a> to /var/named/chroot/etc/named.conf file., but end up running:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">./mkzone example.com &amp;gt; /var/named/chroot/etc/named.conf</div></div>
<h2>Destroyed Working Backups with Tar and Rsync (personal backups)</h2>
<p>I had only one backup copy of my QT project and I just wanted to get a directory called functions. I end up deleting entire backup (note -c switch instead of -x):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /mnt/bacupusbharddisk<br />
tar -zcvf project.tar.gz functions</div></div>
<p>I had no backup. Similarly I end up running rsync command and deleted all new files by overwriting files from backup set (now I</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bowu.org/system-administration/linux/linux_command/10-unix-command-line-mistakes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FTP</title>
		<link>http://www.bowu.org/system-administration/linux/linux_command/ftp.html</link>
		<comments>http://www.bowu.org/system-administration/linux/linux_command/ftp.html#comments</comments>
		<pubDate>Sun, 07 Feb 2010 01:05:19 +0000</pubDate>
		<dc:creator>bo</dc:creator>
				<category><![CDATA[Command Line]]></category>

		<guid isPermaLink="false">http://www.bowu.org/?p=95</guid>
		<description><![CDATA[About FTP FTP is short for File Transfer Protocol, this page contains additional information about the FTP command and help using that command in Unix and MS-DOS (Windows). See our FTP section in our dictionary for a complete definition on FTP. Windows FTP From the MS-DOS prompt or shell type in FTP, once typed in [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="FTP" src="http://www.designftp.com/images/ftp.png" alt="ftp FTP" width="354" height="300" /></p>
<p>About FTP</p>
<p>FTP is short for File Transfer Protocol, this page contains additional information about the FTP command and help using that command in Unix and MS-DOS (Windows). See our FTP section in our dictionary for a complete definition on FTP.</p>
<p>Windows FTP</p>
<p>From the MS-DOS prompt or shell type in FTP, once typed in you will have access to the FTP command line. In this command line type:</p>
<p>open ftp.address.domain</p>
<p>Where address is the name of the server and the domain is the domain such as .COM, .NET&#8230; In addition, the IP address can be typed in, such as 255.255.255.0.</p>
<p>Once connected you will be asked for a username and password; if done successfully, you will have access to transfer files between computers.</p>
<p>Unix FTP</p>
<p>Unix FTP is used much like Windows; from a command prompt or shell, type in FTP, from FTP you should be able to log into a server, providing you have the proper access.</p>
<p>FTP Commands</p>
<p>Depending upon the version of FTP and the operating system being used, each of the below commands may or may not work. Generally typing -help or a ? will list the commands available to you.</p>
<p>Command</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bowu.org/system-administration/linux/linux_command/ftp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to concatenate multiple PDF files into one?</title>
		<link>http://www.bowu.org/system-administration/linux/linux_command/how-to-concatenate-multiple-pdf-files-into-one.html</link>
		<comments>http://www.bowu.org/system-administration/linux/linux_command/how-to-concatenate-multiple-pdf-files-into-one.html#comments</comments>
		<pubDate>Wed, 11 Nov 2009 22:03:37 +0000</pubDate>
		<dc:creator>bo</dc:creator>
				<category><![CDATA[Command Line]]></category>

		<guid isPermaLink="false">http://www.bowu.org/?p=18</guid>
		<description><![CDATA[Make sure the gs (Ghostscript) is installed, and type following command: gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished a.pdf b.pdf]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="PDF" src="http://www.columbia.edu/cu/e3b/images/PDF.jpg" alt="PDF How to concatenate multiple PDF files into one?" width="240" height="240" /></p>
<p>Make sure the gs (Ghostscript) is installed, and type following command:</p>
<p>gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished a.pdf b.pdf</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bowu.org/system-administration/linux/linux_command/how-to-concatenate-multiple-pdf-files-into-one.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
