<?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>SavvyAdmin.com &#187; CLI</title>
	<atom:link href="http://savvyadmin.com/tag/cli/feed/" rel="self" type="application/rss+xml" />
	<link>http://savvyadmin.com</link>
	<description>For savvy admins everywhere...</description>
	<lastBuildDate>Sun, 21 Feb 2010 19:02:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Download PGP Keys with Apt-key</title>
		<link>http://savvyadmin.com/download-pgp-keys-with-apt-key/</link>
		<comments>http://savvyadmin.com/download-pgp-keys-with-apt-key/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 23:46:11 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/?p=463</guid>
		<description><![CDATA[When adding third party software repositories to your APT sources list, you can easily download a referenced PGP key to your APT keyring using the advanced options of the apt-key utility.
For example, if you are adding a third party repository that references the PGP key ID of 6E80C6B7, the following will work as long as [...]


Related posts:<ol><li><a href='http://savvyadmin.com/useful-apt-aliases/' rel='bookmark' title='Permanent Link: Useful APT Aliases'>Useful APT Aliases</a></li>
<li><a href='http://savvyadmin.com/backup-and-restore-package-lists-in-ubuntu/' rel='bookmark' title='Permanent Link: Backup and Restore Package Lists in Ubuntu'>Backup and Restore Package Lists in Ubuntu</a></li>
<li><a href='http://savvyadmin.com/grep-in-color/' rel='bookmark' title='Permanent Link: Grep in Color'>Grep in Color</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>When adding third party software repositories to your APT sources list, you can easily download a referenced PGP key to your APT keyring using the advanced options of the <strong><code>apt-key</code></strong> utility.</p>
<p>For example, if you are adding a third party repository that references the PGP key ID of <code>6E80C6B7</code>, the following will work as long as the key has been uploaded to a keyserver.</p>
<blockquote><p><code><strong>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6E80C6B7</strong><br />
gpg: requesting key 6E80C6B7 from hkp server keyserver.ubuntu.com<br />
gpg: key 6E80C6B7: public key "Launchpad PPA for Banshee Team" imported<br />
gpg: no ultimately trusted keys found<br />
gpg: Total number processed: 1<br />
gpg:               imported: 1  (RSA: 1)</code></p></blockquote>
<p>Typically, instructions on adding repositories give readers a two or three step process that involves apt-key reading a key from a text file or piped from a wget command.  The above just cuts all that nonsense out.</p>
<p>The <code><strong>apt-key</strong></code> man page is a bit bare, but there are a few other options you might find interesting that are only mentioned in the commands help output.</p>
<blockquote><p>
<code><strong>apt-key</strong><br />
Usage: apt-key [command] [arguments]</code></p>
<p><code>Manage apt's list of trusted keys</code></p>
<p><code>  apt-key add <file>          - add the key contained in <file> ('-' for stdin)<br />
  apt-key del <keyid>         - remove the key <keyid><br />
  apt-key export <keyid>      - output the key <keyid><br />
  apt-key exportall           - output all trusted keys<br />
  apt-key update              - update keys using the keyring package<br />
  apt-key net-update          - update keys using the network<br />
  apt-key list                - list keys<br />
  apt-key finger              - list fingerprints<br />
  apt-key adv                 - pass advanced options to gpg (download key)</code></p></blockquote>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Fdownload-pgp-keys-with-apt-key%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Fdownload-pgp-keys-with-apt-key%2F&amp;t=Download%20PGP%20Keys%20with%20Apt-key" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Download%20PGP%20Keys%20with%20Apt-key%20-%20http%3A%2F%2Fsavvyadmin.com%2Fdownload-pgp-keys-with-apt-key%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Fdownload-pgp-keys-with-apt-key%2F&amp;title=Download%20PGP%20Keys%20with%20Apt-key&amp;notes=When%20adding%20third%20party%20software%20repositories%20to%20your%20APT%20sources%20list%2C%20you%20can%20easily%20download%20a%20referenced%20PGP%20key%20to%20your%20APT%20keyring%20using%20the%20advanced%20options%20of%20the%20apt-key%20utility.%0D%0A%0D%0AFor%20example%2C%20if%20you%20are%20adding%20a%20third%20party%20repository%20tha" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fdownload-pgp-keys-with-apt-key%2F&amp;title=Download%20PGP%20Keys%20with%20Apt-key&amp;bodytext=When%20adding%20third%20party%20software%20repositories%20to%20your%20APT%20sources%20list%2C%20you%20can%20easily%20download%20a%20referenced%20PGP%20key%20to%20your%20APT%20keyring%20using%20the%20advanced%20options%20of%20the%20apt-key%20utility.%0D%0A%0D%0AFor%20example%2C%20if%20you%20are%20adding%20a%20third%20party%20repository%20tha" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Download%20PGP%20Keys%20with%20Apt-key&amp;body=http%3A%2F%2Fsavvyadmin.com%2Fdownload-pgp-keys-with-apt-key%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fdownload-pgp-keys-with-apt-key%2F&amp;title=Download%20PGP%20Keys%20with%20Apt-key&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=When%20adding%20third%20party%20software%20repositories%20to%20your%20APT%20sources%20list%2C%20you%20can%20easily%20download%20a%20referenced%20PGP%20key%20to%20your%20APT%20keyring%20using%20the%20advanced%20options%20of%20the%20apt-key%20utility.%0D%0A%0D%0AFor%20example%2C%20if%20you%20are%20adding%20a%20third%20party%20repository%20tha" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Fdownload-pgp-keys-with-apt-key%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Fdownload-pgp-keys-with-apt-key%2F&amp;title=Download%20PGP%20Keys%20with%20Apt-key&amp;annotation=When%20adding%20third%20party%20software%20repositories%20to%20your%20APT%20sources%20list%2C%20you%20can%20easily%20download%20a%20referenced%20PGP%20key%20to%20your%20APT%20keyring%20using%20the%20advanced%20options%20of%20the%20apt-key%20utility.%0D%0A%0D%0AFor%20example%2C%20if%20you%20are%20adding%20a%20third%20party%20repository%20tha" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Fdownload-pgp-keys-with-apt-key%2F&amp;title=Download%20PGP%20Keys%20with%20Apt-key" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/useful-apt-aliases/' rel='bookmark' title='Permanent Link: Useful APT Aliases'>Useful APT Aliases</a></li>
<li><a href='http://savvyadmin.com/backup-and-restore-package-lists-in-ubuntu/' rel='bookmark' title='Permanent Link: Backup and Restore Package Lists in Ubuntu'>Backup and Restore Package Lists in Ubuntu</a></li>
<li><a href='http://savvyadmin.com/grep-in-color/' rel='bookmark' title='Permanent Link: Grep in Color'>Grep in Color</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/download-pgp-keys-with-apt-key/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Symmetric Key Encryption with GnuPG</title>
		<link>http://savvyadmin.com/symmetric-key-encryption-with-gnupg/</link>
		<comments>http://savvyadmin.com/symmetric-key-encryption-with-gnupg/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 03:59:06 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[GnuPG]]></category>
		<category><![CDATA[PGP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tar]]></category>
		<category><![CDATA[Zip]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/?p=438</guid>
		<description><![CDATA[If you ever want to quickly protect a file by encrypting it with a simple password, you can use GnuPG and symmetric key encryption for the job.  Using this method, you can use industry strength encryption like AES256 and not have to worry about public and private keys.  Just remember your password and [...]


Related posts:<ol><li><a href='http://savvyadmin.com/perform-gnupg-functions-within-vim/' rel='bookmark' title='Permanent Link: Perform GnuPG Functions Within Vim'>Perform GnuPG Functions Within Vim</a></li>
<li><a href='http://savvyadmin.com/gnupg-context-menu-options-for-gnome-nautilus/' rel='bookmark' title='Permanent Link: GnuPG Context Menu Options for Gnome Nautilus'>GnuPG Context Menu Options for Gnome Nautilus</a></li>
<li><a href='http://savvyadmin.com/rar-and-unrar-from-linux-cli/' rel='bookmark' title='Permanent Link: RAR and UNRAR from Linux CLI'>RAR and UNRAR from Linux CLI</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you ever want to quickly protect a file by encrypting it with a simple password, you can use GnuPG and symmetric key encryption for the job.  Using this method, you can use industry strength encryption like AES256 and not have to worry about public and private keys.  Just remember your password and use PGP compatible software to decrypt the files when needed.</p>
<p>For example, this is how you can encrypt a zip file called <code>backup.zip</code> and output the result to a new file called <code>backup.zip.gpg</code>.</p>
<blockquote><p><code><strong>gpg --symmetric --cipher-algo aes256 -o backup.zip.gpg backup.zip</strong><br />
Enter passphrase: <strong>*******</strong><br />
Repeat passphrase: <strong>*******</strong></code></p></blockquote>
<p>To decrypt the file, the following will work.</p>
<blockquote><p><code><strong>gpg -d -o backup.zip backup.zip.gpg</strong><br />
gpg: AES256 encrypted data<br />
Enter passphrase: <strong>*******</strong><br />
gpg: encrypted with 1 passphrase</code></p></blockquote>
<p>For fun, here&#8217;s how to create a Gzip Tar archive (tar.gz) and encrypt it on the fly.</p>
<blockquote><p><code><strong>tar czvpf - SomeFiles/ | gpg --symmetric --cipher-algo aes256 -o backup.tar.gz.gpg</strong><br />
Enter passphrase: <strong>*******</strong><br />
Repeat passphrase: <strong>*******</strong></code></p></blockquote>
<p>To decrypt and extract in a single command, the following also works.</p>
<blockquote><p><code><strong>gpg -d backup.tar.gz.gpg | tar xzvf -</strong><br />
gpg: AES256 encrypted data<br />
Enter passphrase: <strong>*******</strong><br />
gpg: encrypted with 1 passphrase</code></p></blockquote>
<p>If you&#8217;re curious to know what other ciphers are available to you, simple use the <code>gpg --version</code> command.</p>
<blockquote><p><code><strong>gpg --version | grep Cipher</strong><br />
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH</code></p></blockquote>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Fsymmetric-key-encryption-with-gnupg%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Fsymmetric-key-encryption-with-gnupg%2F&amp;t=Symmetric%20Key%20Encryption%20with%20GnuPG" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Symmetric%20Key%20Encryption%20with%20GnuPG%20-%20http%3A%2F%2Fsavvyadmin.com%2Fsymmetric-key-encryption-with-gnupg%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Fsymmetric-key-encryption-with-gnupg%2F&amp;title=Symmetric%20Key%20Encryption%20with%20GnuPG&amp;notes=If%20you%20ever%20want%20to%20quickly%20protect%20a%20file%20by%20encrypting%20it%20with%20a%20simple%20password%2C%20you%20can%20use%20GnuPG%20and%20symmetric%20key%20encryption%20for%20the%20job.%20%20Using%20this%20method%2C%20you%20can%20use%20industry%20strength%20encryption%20like%20AES256%20and%20not%20have%20to%20worry%20about%20publi" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fsymmetric-key-encryption-with-gnupg%2F&amp;title=Symmetric%20Key%20Encryption%20with%20GnuPG&amp;bodytext=If%20you%20ever%20want%20to%20quickly%20protect%20a%20file%20by%20encrypting%20it%20with%20a%20simple%20password%2C%20you%20can%20use%20GnuPG%20and%20symmetric%20key%20encryption%20for%20the%20job.%20%20Using%20this%20method%2C%20you%20can%20use%20industry%20strength%20encryption%20like%20AES256%20and%20not%20have%20to%20worry%20about%20publi" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Symmetric%20Key%20Encryption%20with%20GnuPG&amp;body=http%3A%2F%2Fsavvyadmin.com%2Fsymmetric-key-encryption-with-gnupg%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fsymmetric-key-encryption-with-gnupg%2F&amp;title=Symmetric%20Key%20Encryption%20with%20GnuPG&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=If%20you%20ever%20want%20to%20quickly%20protect%20a%20file%20by%20encrypting%20it%20with%20a%20simple%20password%2C%20you%20can%20use%20GnuPG%20and%20symmetric%20key%20encryption%20for%20the%20job.%20%20Using%20this%20method%2C%20you%20can%20use%20industry%20strength%20encryption%20like%20AES256%20and%20not%20have%20to%20worry%20about%20publi" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Fsymmetric-key-encryption-with-gnupg%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Fsymmetric-key-encryption-with-gnupg%2F&amp;title=Symmetric%20Key%20Encryption%20with%20GnuPG&amp;annotation=If%20you%20ever%20want%20to%20quickly%20protect%20a%20file%20by%20encrypting%20it%20with%20a%20simple%20password%2C%20you%20can%20use%20GnuPG%20and%20symmetric%20key%20encryption%20for%20the%20job.%20%20Using%20this%20method%2C%20you%20can%20use%20industry%20strength%20encryption%20like%20AES256%20and%20not%20have%20to%20worry%20about%20publi" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Fsymmetric-key-encryption-with-gnupg%2F&amp;title=Symmetric%20Key%20Encryption%20with%20GnuPG" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/perform-gnupg-functions-within-vim/' rel='bookmark' title='Permanent Link: Perform GnuPG Functions Within Vim'>Perform GnuPG Functions Within Vim</a></li>
<li><a href='http://savvyadmin.com/gnupg-context-menu-options-for-gnome-nautilus/' rel='bookmark' title='Permanent Link: GnuPG Context Menu Options for Gnome Nautilus'>GnuPG Context Menu Options for Gnome Nautilus</a></li>
<li><a href='http://savvyadmin.com/rar-and-unrar-from-linux-cli/' rel='bookmark' title='Permanent Link: RAR and UNRAR from Linux CLI'>RAR and UNRAR from Linux CLI</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/symmetric-key-encryption-with-gnupg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickly Identify Video File Attributes</title>
		<link>http://savvyadmin.com/quickly-identify-video-file-attributes/</link>
		<comments>http://savvyadmin.com/quickly-identify-video-file-attributes/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 22:59:12 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Multimedia]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/?p=433</guid>
		<description><![CDATA[If you want to gain quick insight into the basic properties of a video file from the Linux command line, there&#8217;s a few really easy methods.  The information you might be interested in are audio and video codecs, resolution, frame rates, bitrates, etc.
Using mplayer, you can see some basic information about a video file. [...]


Related posts:<ol><li><a href='http://savvyadmin.com/extract-audio-from-video-files-to-wav-using-mplayer/' rel='bookmark' title='Permanent Link: Extract Audio from Video Files to WAV using Mplayer'>Extract Audio from Video Files to WAV using Mplayer</a></li>
<li><a href='http://savvyadmin.com/extract-audio-from-video-files-to-wav-using-ffmpeg/' rel='bookmark' title='Permanent Link: Extract Audio from Video Files to WAV using FFmpeg'>Extract Audio from Video Files to WAV using FFmpeg</a></li>
<li><a href='http://savvyadmin.com/add-stereo-audio-tracks-to-mkv-files/' rel='bookmark' title='Permanent Link: Add Stereo Audio Tracks to MKV Files'>Add Stereo Audio Tracks to MKV Files</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you want to gain quick insight into the basic properties of a video file from the Linux command line, there&#8217;s a few really easy methods.  The information you might be interested in are audio and video codecs, resolution, frame rates, bitrates, etc.</p>
<p>Using <code><em>mplayer</em></code>, you can see some basic information about a video file.  For example, the following video is using the WMV3 video codec at the resolution of 1280&#215;720 (720p), the bitrate of 3000 kbps, etc.</p>
<blockquote><p><code><strong>mplayer video.wmv -vo null -ao null -frames 0 2>&#038;1 /dev/null | egrep "(VIDEO|AUDIO)"</strong><br />
VIDEO:  [WMV3]  1280x720  24bpp  1000.000 fps  3000.0 kbps (366.2 kbyte/s)<br />
AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.80% (ratio: 12003->176400)</code></p></blockquote>
<p>The audio rate is shown to be 44100 Hz using 2-Channel stereo, but the codec is not listed.  You can get additional information with the -identify option.</p>
<blockquote><p><code><strong>mplayer video.wmv -identify -vo null -ao null -frames 0 2>&#038;1 /dev/null | egrep "(^ID|VIDEO|AUDIO)"</strong><br />
ID_AUDIO_ID=1<br />
ID_VIDEO_ID=2<br />
VIDEO:  [WMV3]  1280x720  24bpp  1000.000 fps  3000.0 kbps (366.2 kbyte/s)<br />
ID_CLIP_INFO_NAME0=name<br />
ID_CLIP_INFO_VALUE0=<br />
ID_CLIP_INFO_NAME1=author<br />
ID_CLIP_INFO_VALUE1=<br />
ID_CLIP_INFO_NAME2=copyright<br />
ID_CLIP_INFO_VALUE2=<br />
ID_CLIP_INFO_NAME3=comments<br />
ID_CLIP_INFO_VALUE3=<br />
ID_CLIP_INFO_N=4<br />
ID_FILENAME=video.wmv<br />
ID_DEMUXER=asf<br />
ID_VIDEO_FORMAT=WMV3<br />
ID_VIDEO_BITRATE=3000000<br />
ID_VIDEO_WIDTH=1280<br />
ID_VIDEO_HEIGHT=720<br />
ID_VIDEO_FPS=1000.000<br />
ID_VIDEO_ASPECT=1.7778<br />
ID_AUDIO_FORMAT=353<br />
ID_AUDIO_BITRATE=0<br />
ID_AUDIO_RATE=0<br />
ID_AUDIO_NCH=0<br />
ID_LENGTH=2116.00<br />
ID_VIDEO_ASPECT=1.7778<br />
ID_VIDEO_CODEC=wmv9dmo<br />
AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.80% (ratio: 12003->176400)<br />
ID_AUDIO_BITRATE=96024<br />
ID_AUDIO_RATE=44100<br />
ID_AUDIO_NCH=2<br />
ID_AUDIO_CODEC=ffwmav2</code></p></blockquote>
<p>Another great tool for identifying video attributes is <code><em>idvid</em></code>.  <code><em>idvid</em></code> comes with the <code><em>tovid</em></code> package, so be sure to install it from your repository.  It is a bit slow, but the output is very clean and easy to interpret.</p>
<blockquote><p><code><strong>idvid video.wmv</strong><br />
--------------------------------<br />
idvid<br />
Video identification script<br />
Part of the tovid suite, version 0.31</p>
<p>http://www.tovid.org</p>
<p>--------------------------------<br />
Analyzing file: 'video.wmv'. This may take several minutes...<br />
=========================================================<br />
               File: video.wmv<br />
              Width: 1280 pixels<br />
             Height: 720 pixels<br />
       Aspect ratio: 1.77:1<br />
             Frames: 63352<br />
           Duration: 00:35:13 hours/mins/secs<br />
          Framerate: 1000.000 frames per second<br />
       Video format: WMV3<br />
      Video bitrate: 3000000 bits per second<br />
---------------------------<br />
Audio track 1 (Stream 0.0, AID 0):<br />
---------------------------<br />
              Codec: wmav2<br />
            Bitrate: 0000 bits per second<br />
      Sampling rate: 44100 Hz<br />
=========================================================<br />
Audio is compliant with the following formats:<br />
  Not compliant with (S)VCD or DVD<br />
Video is compliant with the following formats:<br />
  Not compliant with (S)VCD or DVD<br />
This video does not seem to be compliant with (S)VCD or DVD<br />
standards. If you burn it to a video disc, it may not work.<br />
=========================================================</code></p></blockquote>
<p>Finally, another tool that works very well is <code><em>exiftool</em></code>.  It&#8217;s available in the <code><em>libimage-exiftool-perl</em></code> package.  The output is also very straight forward, and easy to interpret.  It&#8217;s also a lot faster than <code><em>idvid</em></code> because the tool only displays metadata, which in some cases can be misleading.  <code><em>Mplayer</em></code> and <code><em>tovid</em></code> actually probe the video, providing very accurate information at the cost of speed.</p>
<blockquote><p><code><strong>exiftool video.wmv</strong><br />
ExifTool Version Number         : 7.30<br />
File Name                       : video.wmv<br />
Directory                       : .<br />
File Modification Date/Time     : 2009:04:20 09:21:58<br />
File Type                       : WMV<br />
MIME Type                       : video/x-ms-wmv<br />
File ID                         : 12341234-1234-1234-1234-123412341234<br />
File Size                       : 823200182<br />
Creation Date                   : 2009:03:31 02:52:55Z<br />
Data Packets                    : 102833<br />
Play Duration                   : 35:16<br />
Send Duration                   : 35:13<br />
Preroll                         : 3000<br />
Flags                           : 2<br />
Min Packet Size                 : 8000<br />
Max Packet Size                 : 8000<br />
Max Bitrate                     : 3122812<br />
Is VBR                          : False<br />
Audio Codec Name                : Windows Media Audio 9.2<br />
Audio Codec Description         :  96 kbps, 44 kHz, stereo 1-pass CBR<br />
Video Codec Name                : Windows Media Video 9<br />
Video Codec Description         : Professional<br />
Audio Codec ID                  : Windows Media Audio V2 V7 V8 V9 / DivX audio (WMA) / Alex AC3 Audio<br />
Audio Channels                  : 2<br />
Audio Sample Rate               : 44100<br />
Stream Type                     : Video<br />
Error Correction Type           : No Error Correction<br />
Time Offset                     : 0 s<br />
Stream Number                   : 2<br />
Image Width                     : 1280<br />
Image Height                    : 720<br />
Title                           :<br />
Author                          :<br />
Copyright                       :<br />
Description                     :<br />
Rating                          :<br />
Image Size                      : 1280x720</code></p></blockquote>
<p>As always, comments and additional tips are welcome!</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Fquickly-identify-video-file-attributes%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Fquickly-identify-video-file-attributes%2F&amp;t=Quickly%20Identify%20Video%20File%20Attributes" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Quickly%20Identify%20Video%20File%20Attributes%20-%20http%3A%2F%2Fsavvyadmin.com%2Fquickly-identify-video-file-attributes%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Fquickly-identify-video-file-attributes%2F&amp;title=Quickly%20Identify%20Video%20File%20Attributes&amp;notes=If%20you%20want%20to%20gain%20quick%20insight%20into%20the%20basic%20properties%20of%20a%20video%20file%20from%20the%20Linux%20command%20line%2C%20there%27s%20a%20few%20really%20easy%20methods.%20%20The%20information%20you%20might%20be%20interested%20in%20are%20audio%20and%20video%20codecs%2C%20resolution%2C%20frame%20rates%2C%20bitrates%2C%20etc" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fquickly-identify-video-file-attributes%2F&amp;title=Quickly%20Identify%20Video%20File%20Attributes&amp;bodytext=If%20you%20want%20to%20gain%20quick%20insight%20into%20the%20basic%20properties%20of%20a%20video%20file%20from%20the%20Linux%20command%20line%2C%20there%27s%20a%20few%20really%20easy%20methods.%20%20The%20information%20you%20might%20be%20interested%20in%20are%20audio%20and%20video%20codecs%2C%20resolution%2C%20frame%20rates%2C%20bitrates%2C%20etc" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Quickly%20Identify%20Video%20File%20Attributes&amp;body=http%3A%2F%2Fsavvyadmin.com%2Fquickly-identify-video-file-attributes%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fquickly-identify-video-file-attributes%2F&amp;title=Quickly%20Identify%20Video%20File%20Attributes&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=If%20you%20want%20to%20gain%20quick%20insight%20into%20the%20basic%20properties%20of%20a%20video%20file%20from%20the%20Linux%20command%20line%2C%20there%27s%20a%20few%20really%20easy%20methods.%20%20The%20information%20you%20might%20be%20interested%20in%20are%20audio%20and%20video%20codecs%2C%20resolution%2C%20frame%20rates%2C%20bitrates%2C%20etc" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Fquickly-identify-video-file-attributes%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Fquickly-identify-video-file-attributes%2F&amp;title=Quickly%20Identify%20Video%20File%20Attributes&amp;annotation=If%20you%20want%20to%20gain%20quick%20insight%20into%20the%20basic%20properties%20of%20a%20video%20file%20from%20the%20Linux%20command%20line%2C%20there%27s%20a%20few%20really%20easy%20methods.%20%20The%20information%20you%20might%20be%20interested%20in%20are%20audio%20and%20video%20codecs%2C%20resolution%2C%20frame%20rates%2C%20bitrates%2C%20etc" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Fquickly-identify-video-file-attributes%2F&amp;title=Quickly%20Identify%20Video%20File%20Attributes" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/extract-audio-from-video-files-to-wav-using-mplayer/' rel='bookmark' title='Permanent Link: Extract Audio from Video Files to WAV using Mplayer'>Extract Audio from Video Files to WAV using Mplayer</a></li>
<li><a href='http://savvyadmin.com/extract-audio-from-video-files-to-wav-using-ffmpeg/' rel='bookmark' title='Permanent Link: Extract Audio from Video Files to WAV using FFmpeg'>Extract Audio from Video Files to WAV using FFmpeg</a></li>
<li><a href='http://savvyadmin.com/add-stereo-audio-tracks-to-mkv-files/' rel='bookmark' title='Permanent Link: Add Stereo Audio Tracks to MKV Files'>Add Stereo Audio Tracks to MKV Files</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/quickly-identify-video-file-attributes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RAR and UNRAR from Linux CLI</title>
		<link>http://savvyadmin.com/rar-and-unrar-from-linux-cli/</link>
		<comments>http://savvyadmin.com/rar-and-unrar-from-linux-cli/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 18:09:48 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/?p=393</guid>
		<description><![CDATA[Two great packages available to the Linux community are RAR and UNRAR.  If you are already familiar with the RAR compression format, these allow you to create, modify and extract RAR archives.  For those of you that appreciate the graphical compression application for Gnome called File Roller, these packages enable it to read [...]


Related posts:<ol><li><a href='http://savvyadmin.com/symmetric-key-encryption-with-gnupg/' rel='bookmark' title='Permanent Link: Symmetric Key Encryption with GnuPG'>Symmetric Key Encryption with GnuPG</a></li>
<li><a href='http://savvyadmin.com/fixing-dates-in-image-exif-tag-data-from-linux/' rel='bookmark' title='Permanent Link: Fixing Dates in Image EXIF Tag Data from Linux'>Fixing Dates in Image EXIF Tag Data from Linux</a></li>
<li><a href='http://savvyadmin.com/quickly-identify-video-file-attributes/' rel='bookmark' title='Permanent Link: Quickly Identify Video File Attributes'>Quickly Identify Video File Attributes</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Two great packages available to the Linux community are RAR and UNRAR.  If you are already familiar with the RAR compression format, these allow you to create, modify and extract RAR archives.  For those of you that appreciate the graphical compression application for Gnome called File Roller, these packages enable it to read RAR files.  For more information about the RAR format, check out <a href="http://www.rarsoft.com/rar_file.htm" target="_blank">rarsoft.com</a>.</p>
<p>To install from Ubuntu or Debian, its as simple as:</p>
<blockquote><p><strong><code>sudo apt-get install rar unrar</code></strong></p></blockquote>
<p>To list the files in a RAR archive, use the l or v option:</p>
<blockquote><p><strong><code>rar l video.rar</code></strong></p></blockquote>
<p>To decompress a RAR archive called video.rar, simply issue the command:</p>
<blockquote><p><strong><code>unrar e video.rar</code></strong></p></blockquote>
<p>The unrar package is only intended for decompression tasks.  Otherwise, just use the rar command with the e option to extract the files to the current directory.</p>
<blockquote><p><strong><code>rar e video.rar</code></strong></p></blockquote>
<p>To compress a single file called video.avi, adding it to a RAR file called video.rar:</p>
<blockquote><p><strong><code>rar a video.rar video.avi</code></strong></p></blockquote>
<p>To compress a single file called video.avi, splitting it into approximately 50 Mb files:</p>
<blockquote><p><strong><code>rar a -v50000 video.rar video.avi</code></strong></p></blockquote>
<p>This by default creates archive files starting with video.part01.rar, video.part02.rar and following the sequence to completion.  To use the older and better known extension sequence format of .rar, .r00, .r01, etc, use the -vn option like so:</p>
<blockquote><p><strong><code>rar a -v50000 -vn video.rar video.avi</code></strong></p></blockquote>
<p>To compress an entire directory recursively, use the -r option:</p>
<blockquote><p><strong><code>rar a -r Documents.rar Documents/</code></strong></p></blockquote>
<p>To extract the files from an archive, such that the original directory structure is also recreated, use the x command:</p>
<blockquote><p><strong><code>rar x Documents.rar</code></strong></p></blockquote>
<p>There are so many other features available to the RAR format, so be sure to check out the man pages or the packaged documentation.</p>
<blockquote><p><strong><code>man rar<br />
less /usr/share/doc/rar/rar.txt.gz</code></strong></p></blockquote>
<p>(if your version of less supports reading of compressed files)</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Frar-and-unrar-from-linux-cli%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Frar-and-unrar-from-linux-cli%2F&amp;t=RAR%20and%20UNRAR%20from%20Linux%20CLI" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=RAR%20and%20UNRAR%20from%20Linux%20CLI%20-%20http%3A%2F%2Fsavvyadmin.com%2Frar-and-unrar-from-linux-cli%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Frar-and-unrar-from-linux-cli%2F&amp;title=RAR%20and%20UNRAR%20from%20Linux%20CLI&amp;notes=Two%20great%20packages%20available%20to%20the%20Linux%20community%20are%20RAR%20and%20UNRAR.%20%20If%20you%20are%20already%20familiar%20with%20the%20RAR%20compression%20format%2C%20these%20allow%20you%20to%20create%2C%20modify%20and%20extract%20RAR%20archives.%20%20For%20those%20of%20you%20that%20appreciate%20the%20graphical%20compressi" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Frar-and-unrar-from-linux-cli%2F&amp;title=RAR%20and%20UNRAR%20from%20Linux%20CLI&amp;bodytext=Two%20great%20packages%20available%20to%20the%20Linux%20community%20are%20RAR%20and%20UNRAR.%20%20If%20you%20are%20already%20familiar%20with%20the%20RAR%20compression%20format%2C%20these%20allow%20you%20to%20create%2C%20modify%20and%20extract%20RAR%20archives.%20%20For%20those%20of%20you%20that%20appreciate%20the%20graphical%20compressi" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=RAR%20and%20UNRAR%20from%20Linux%20CLI&amp;body=http%3A%2F%2Fsavvyadmin.com%2Frar-and-unrar-from-linux-cli%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Frar-and-unrar-from-linux-cli%2F&amp;title=RAR%20and%20UNRAR%20from%20Linux%20CLI&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=Two%20great%20packages%20available%20to%20the%20Linux%20community%20are%20RAR%20and%20UNRAR.%20%20If%20you%20are%20already%20familiar%20with%20the%20RAR%20compression%20format%2C%20these%20allow%20you%20to%20create%2C%20modify%20and%20extract%20RAR%20archives.%20%20For%20those%20of%20you%20that%20appreciate%20the%20graphical%20compressi" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Frar-and-unrar-from-linux-cli%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Frar-and-unrar-from-linux-cli%2F&amp;title=RAR%20and%20UNRAR%20from%20Linux%20CLI&amp;annotation=Two%20great%20packages%20available%20to%20the%20Linux%20community%20are%20RAR%20and%20UNRAR.%20%20If%20you%20are%20already%20familiar%20with%20the%20RAR%20compression%20format%2C%20these%20allow%20you%20to%20create%2C%20modify%20and%20extract%20RAR%20archives.%20%20For%20those%20of%20you%20that%20appreciate%20the%20graphical%20compressi" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Frar-and-unrar-from-linux-cli%2F&amp;title=RAR%20and%20UNRAR%20from%20Linux%20CLI" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/symmetric-key-encryption-with-gnupg/' rel='bookmark' title='Permanent Link: Symmetric Key Encryption with GnuPG'>Symmetric Key Encryption with GnuPG</a></li>
<li><a href='http://savvyadmin.com/fixing-dates-in-image-exif-tag-data-from-linux/' rel='bookmark' title='Permanent Link: Fixing Dates in Image EXIF Tag Data from Linux'>Fixing Dates in Image EXIF Tag Data from Linux</a></li>
<li><a href='http://savvyadmin.com/quickly-identify-video-file-attributes/' rel='bookmark' title='Permanent Link: Quickly Identify Video File Attributes'>Quickly Identify Video File Attributes</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/rar-and-unrar-from-linux-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Dates in Image EXIF Tag Data from Linux</title>
		<link>http://savvyadmin.com/fixing-dates-in-image-exif-tag-data-from-linux/</link>
		<comments>http://savvyadmin.com/fixing-dates-in-image-exif-tag-data-from-linux/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 06:11:51 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[JPEG]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/?p=378</guid>
		<description><![CDATA[I recently needed to organize a large number of old digital photos that had the wrong date embedded in their EXIF tag data.  The camera I used many years ago would often lose track of time and would sometimes be set to the wrong year.  Applications I now use to organize photos read [...]


Related posts:<ol><li><a href='http://savvyadmin.com/quickly-identify-video-file-attributes/' rel='bookmark' title='Permanent Link: Quickly Identify Video File Attributes'>Quickly Identify Video File Attributes</a></li>
<li><a href='http://savvyadmin.com/console-framebuffer-in-ubuntu/' rel='bookmark' title='Permanent Link: Console Framebuffer in Ubuntu'>Console Framebuffer in Ubuntu</a></li>
<li><a href='http://savvyadmin.com/resize-and-watermark-images-in-linux/' rel='bookmark' title='Permanent Link: Resize and Watermark Images in Linux'>Resize and Watermark Images in Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I recently needed to organize a large number of old digital photos that had the wrong date embedded in their EXIF tag data.  The camera I used many years ago would often lose track of time and would sometimes be set to the wrong year.  Applications I now use to organize photos read this data and made my albums difficult to navigate.  I came across a Linux command line utility called <a title="jhead website" href="http://www.sentex.net/~mwandel/jhead/" target="_blank"><em>jhead</em></a> that allows you to modify this information to whatever you wish, and its easy to use in scripts as well.  Installing was easy, because it&#8217;s currently in most repositories, including Ubuntu&#8217;s.</p>
<p>To read existing EXIF tag data, simply run jhead against an image without any options.  As you can see from the example below, my date is set to the year 2022.</p>
<blockquote><p><code><strong>jhead image.jpg </strong><br />
File name    : image.jpg<br />
File size    : 159390 bytes<br />
File date    : 2004:01:12 07:35:23<br />
Camera make  : Samsung<br />
Camera model : Digimax 200<br />
<em><strong>Date/Time    : 2022:02:12 04:04:17</strong></em><br />
Resolution   : 800 x 600<br />
Flash used   : Yes<br />
Exposure time: 0.045 s  (1/22)<br />
Aperture     : f/2.8</code></p></blockquote>
<p>To clear all EXIF data from the file, use the <em><strong>-de</strong></em> option.  Then recreate the EXIF fields with the <em><strong>-mkexif</strong></em> option, and check the data again.  Notice the new Date/Time is set to the timestamp on the file.</p>
<blockquote><p><code><strong>jhead -de image.jpg</strong><br />
Modified: image.jpg</code></p>
<p><code><strong>jhead -mkexif image.jpg</strong><br />
Modified: image.jpg</code></p>
<p><code><strong>jhead image.jpg </strong><br />
File name    : image.jpg<br />
File size    : 147751 bytes<br />
File date    : 2004:01:12 07:35:23<br />
Date/Time    : 2004:01:12 07:35:23<br />
Resolution   : 800 x 600</code></p></blockquote>
<p>To change the entire timestamp manually, use the <em><strong>-ts</strong></em> option.  Notice, there is no space between the <em><strong>-ts</strong></em> and the option.  I could not trust the month and day, so I simply chaged the date to midnight on January 1, 2003.</p>
<blockquote><p><code><strong>jhead -ts2003:01:01-00:00:00 image.jpg</strong><br />
Modified: image.jpg</code></p>
<p><code><strong>jhead image.jpg</strong><br />
File name    : image.jpg<br />
File size    : 147751 bytes<br />
File date    : 2004:01:12 07:35:23<br />
Date/Time    : 2003:01:01 00:00:00<br />
Resolution   : 800 x 600</code></p></blockquote>
<p>For many more options, check out the man page or visit the <a title="jhead website" href="http://www.sentex.net/~mwandel/jhead/" target="_blank">jhead</a> site for more info.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;t=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux%20-%20http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;title=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux&amp;notes=I%20recently%20needed%20to%20organize%20a%20large%20number%20of%20old%20digital%20photos%20that%20had%20the%20wrong%20date%20embedded%20in%20their%20EXIF%20tag%20data.%20%20The%20camera%20I%20used%20many%20years%20ago%20would%20often%20lose%20track%20of%20time%20and%20would%20sometimes%20be%20set%20to%20the%20wrong%20year.%20%20Applications%20I" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;title=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux&amp;bodytext=I%20recently%20needed%20to%20organize%20a%20large%20number%20of%20old%20digital%20photos%20that%20had%20the%20wrong%20date%20embedded%20in%20their%20EXIF%20tag%20data.%20%20The%20camera%20I%20used%20many%20years%20ago%20would%20often%20lose%20track%20of%20time%20and%20would%20sometimes%20be%20set%20to%20the%20wrong%20year.%20%20Applications%20I" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux&amp;body=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;title=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=I%20recently%20needed%20to%20organize%20a%20large%20number%20of%20old%20digital%20photos%20that%20had%20the%20wrong%20date%20embedded%20in%20their%20EXIF%20tag%20data.%20%20The%20camera%20I%20used%20many%20years%20ago%20would%20often%20lose%20track%20of%20time%20and%20would%20sometimes%20be%20set%20to%20the%20wrong%20year.%20%20Applications%20I" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;title=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux&amp;annotation=I%20recently%20needed%20to%20organize%20a%20large%20number%20of%20old%20digital%20photos%20that%20had%20the%20wrong%20date%20embedded%20in%20their%20EXIF%20tag%20data.%20%20The%20camera%20I%20used%20many%20years%20ago%20would%20often%20lose%20track%20of%20time%20and%20would%20sometimes%20be%20set%20to%20the%20wrong%20year.%20%20Applications%20I" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Ffixing-dates-in-image-exif-tag-data-from-linux%2F&amp;title=Fixing%20Dates%20in%20Image%20EXIF%20Tag%20Data%20from%20Linux" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/quickly-identify-video-file-attributes/' rel='bookmark' title='Permanent Link: Quickly Identify Video File Attributes'>Quickly Identify Video File Attributes</a></li>
<li><a href='http://savvyadmin.com/console-framebuffer-in-ubuntu/' rel='bookmark' title='Permanent Link: Console Framebuffer in Ubuntu'>Console Framebuffer in Ubuntu</a></li>
<li><a href='http://savvyadmin.com/resize-and-watermark-images-in-linux/' rel='bookmark' title='Permanent Link: Resize and Watermark Images in Linux'>Resize and Watermark Images in Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/fixing-dates-in-image-exif-tag-data-from-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Line wrapping text made easy with fold</title>
		<link>http://savvyadmin.com/line-wrapping-text-made-easy-with-fold/</link>
		<comments>http://savvyadmin.com/line-wrapping-text-made-easy-with-fold/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 04:37:08 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/?p=300</guid>
		<description><![CDATA[Line wrapping text from the command line is easy with the fold utility, which of course is provided by the Free Software Foundation.  By default, the fold command will wrap text at 80 characters, but you can of course specify the width manually.  I prefer using the -s option, which will break only on spaces, [...]


Related posts:<ol><li><a href='http://savvyadmin.com/rename-files-in-bulk-from-the-command-line/' rel='bookmark' title='Permanent Link: Rename Files in Bulk from the Command Line'>Rename Files in Bulk from the Command Line</a></li>
<li><a href='http://savvyadmin.com/vim-in-color/' rel='bookmark' title='Permanent Link: Vim in Color'>Vim in Color</a></li>
<li><a href='http://savvyadmin.com/grep-in-color/' rel='bookmark' title='Permanent Link: Grep in Color'>Grep in Color</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Line wrapping text from the command line is easy with the <em>fold</em> utility, which of course is provided by the Free Software Foundation.  By default, the <em>fold</em> command will wrap text at 80 characters, but you can of course specify the width manually.  I prefer using the -s option, which will break only on spaces, making sure not to break in the middle of a word.</p>
<p>For example, the following command will concatenate a text file to standard output, adding line breaks  only at spaces or at 72 characters, whichever comes first.</p>
<blockquote><pre><strong>fold -s -w 72 textfile.txt</strong></pre>
</blockquote>
<p>This can also be useful if you want to clearsign a message with Gnupg, but wish to line wrap it beforehand.</p>
<blockquote><pre><strong>fold -s -w 72 textfile.txt | gpg --clearsign -u user@email.com</strong></pre>
</blockquote>
<p>Add redirection if you wish to output the results to a file.</p>
<blockquote><pre><strong>fold -s -w 72 textfile.txt > newfile.txt</strong></pre>
</blockquote>
<p>As mentioned <a href="http://www.linuxquestions.org/questions/linux-newbie-8/simulating-word-wrap-with-probably-sed-551488/#post3510488" target="_blank">here</a>, the <em>fmt</em> command also provides the same primary features of <em>fold</em>, but is much better.  Not only does it wrap long lines, but it also fills out short lines as well.  There are additional options that are worth looking into.  Be sure to check out the man page!</p>
<blockquote><pre><strong>man fmt</strong></pre>
</blockquote>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Fline-wrapping-text-made-easy-with-fold%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Fline-wrapping-text-made-easy-with-fold%2F&amp;t=Line%20wrapping%20text%20made%20easy%20with%20fold" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Line%20wrapping%20text%20made%20easy%20with%20fold%20-%20http%3A%2F%2Fsavvyadmin.com%2Fline-wrapping-text-made-easy-with-fold%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Fline-wrapping-text-made-easy-with-fold%2F&amp;title=Line%20wrapping%20text%20made%20easy%20with%20fold&amp;notes=Line%20wrapping%20text%20from%20the%20command%20line%20is%20easy%20with%20the%20fold%20utility%2C%20which%20of%20course%20is%20provided%20by%20the%20Free%20Software%20Foundation.%C2%A0%20By%20default%2C%20the%20fold%20command%20will%20wrap%20text%20at%2080%20characters%2C%20but%20you%20can%20of%20course%20specify%20the%20width%20manually.%C2%A0%20I" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fline-wrapping-text-made-easy-with-fold%2F&amp;title=Line%20wrapping%20text%20made%20easy%20with%20fold&amp;bodytext=Line%20wrapping%20text%20from%20the%20command%20line%20is%20easy%20with%20the%20fold%20utility%2C%20which%20of%20course%20is%20provided%20by%20the%20Free%20Software%20Foundation.%C2%A0%20By%20default%2C%20the%20fold%20command%20will%20wrap%20text%20at%2080%20characters%2C%20but%20you%20can%20of%20course%20specify%20the%20width%20manually.%C2%A0%20I" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Line%20wrapping%20text%20made%20easy%20with%20fold&amp;body=http%3A%2F%2Fsavvyadmin.com%2Fline-wrapping-text-made-easy-with-fold%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fline-wrapping-text-made-easy-with-fold%2F&amp;title=Line%20wrapping%20text%20made%20easy%20with%20fold&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=Line%20wrapping%20text%20from%20the%20command%20line%20is%20easy%20with%20the%20fold%20utility%2C%20which%20of%20course%20is%20provided%20by%20the%20Free%20Software%20Foundation.%C2%A0%20By%20default%2C%20the%20fold%20command%20will%20wrap%20text%20at%2080%20characters%2C%20but%20you%20can%20of%20course%20specify%20the%20width%20manually.%C2%A0%20I" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Fline-wrapping-text-made-easy-with-fold%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Fline-wrapping-text-made-easy-with-fold%2F&amp;title=Line%20wrapping%20text%20made%20easy%20with%20fold&amp;annotation=Line%20wrapping%20text%20from%20the%20command%20line%20is%20easy%20with%20the%20fold%20utility%2C%20which%20of%20course%20is%20provided%20by%20the%20Free%20Software%20Foundation.%C2%A0%20By%20default%2C%20the%20fold%20command%20will%20wrap%20text%20at%2080%20characters%2C%20but%20you%20can%20of%20course%20specify%20the%20width%20manually.%C2%A0%20I" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Fline-wrapping-text-made-easy-with-fold%2F&amp;title=Line%20wrapping%20text%20made%20easy%20with%20fold" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/rename-files-in-bulk-from-the-command-line/' rel='bookmark' title='Permanent Link: Rename Files in Bulk from the Command Line'>Rename Files in Bulk from the Command Line</a></li>
<li><a href='http://savvyadmin.com/vim-in-color/' rel='bookmark' title='Permanent Link: Vim in Color'>Vim in Color</a></li>
<li><a href='http://savvyadmin.com/grep-in-color/' rel='bookmark' title='Permanent Link: Grep in Color'>Grep in Color</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/line-wrapping-text-made-easy-with-fold/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rename Files in Bulk from the Command Line</title>
		<link>http://savvyadmin.com/rename-files-in-bulk-from-the-command-line/</link>
		<comments>http://savvyadmin.com/rename-files-in-bulk-from-the-command-line/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 01:22:27 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rename]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/?p=59</guid>
		<description><![CDATA[Renaming a large number of files can seem like a daunting task, but no worries, your trusty Linux CLI is at your service.  For this example, we will rename a number of MP3&#8217;s located in multiple subdirectories with a couple very easy commands; &#8220;find&#8221; and &#8220;rename&#8221;.
By listing the following directory, you&#8217;ll see that the [...]


Related posts:<ol><li><a href='http://savvyadmin.com/vim-in-color/' rel='bookmark' title='Permanent Link: Vim in Color'>Vim in Color</a></li>
<li><a href='http://savvyadmin.com/rar-and-unrar-from-linux-cli/' rel='bookmark' title='Permanent Link: RAR and UNRAR from Linux CLI'>RAR and UNRAR from Linux CLI</a></li>
<li><a href='http://savvyadmin.com/split-and-reassemble-files/' rel='bookmark' title='Permanent Link: Split and Reassemble Files'>Split and Reassemble Files</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Renaming a large number of files can seem like a daunting task, but no worries, your trusty Linux CLI is at your service.  For this example, we will rename a number of MP3&#8217;s located in multiple subdirectories with a couple very easy commands; &#8220;find&#8221; and &#8220;rename&#8221;.</p>
<p>By listing the following directory, you&#8217;ll see that the MP3&#8217;s have been named with &#8220;(LP Version)&#8221;, and of course I don&#8217;t like this naming convention.</p>
<blockquote><p><code><strong>cd ~/Music/Metallica/Metallica/<br />
ls -1</strong><br />
01 - Enter Sandman (LP Version).mp3<br />
02 - Sad But True (LP Version).mp3<br />
03 - Holier Than Thou (LP Version).mp3<br />
04 - The Unforgiven (LP Version).mp3<br />
05 - Wherever I May Roam (LP Version).mp3<br />
06 - Don't Tread On Me (LP Version).mp3<br />
07 - Through The Never (LP Version).mp3<br />
08 - Nothing Else Matters (LP Version).mp3<br />
09 - Of Wolf And Man (LP Version).mp3<br />
10 - The God That Failed (LP Version).mp3<br />
11 - My Friend Of Misery (LP Version).mp3<br />
12 - The Struggle Within (LP Version).mp3</code></p></blockquote>
<p>We&#8217;ll use the &#8220;rename&#8221; command to search for and delete the string &#8221; (LP Version)&#8221; in any of the mp3 file names.</p>
<p>Syntax:</p>
<blockquote><p><code><strong>rename (search command) (files)<br />
rename 's/search_for_string/replace_string_with_this/' files</strong></code></p></blockquote>
<p>To delete the matching string, simply leave the replace area empty like so:</p>
<blockquote><p><code><strong>rename 's/search_for_string//' files</strong></code></p></blockquote>
<p>Our Example:</p>
<blockquote><p><code><strong>rename 's/ \(LP Version\)//' *.mp3</strong></code></p></blockquote>
<p>Notice, the left and right parentheses need to be preceded with a backslash &#8220;\&#8221; character, although the spaces do not.  The backslash is a metacharacter used to give you control over what your are matching against.  For more info, here&#8217;s a <a title="Linux.com - CLI Magic" href="http://www.linux.com/feature/114045" target="_blank">link to a decent tutorial</a> on the matter.</p>
<p>You can see the results of the command below.</p>
<blockquote><p><code><strong>ls -1</strong><br />
01 - Enter Sandman.mp3<br />
02 - Sad But True.mp3<br />
03 - Holier Than Thou.mp3<br />
04 - The Unforgiven.mp3<br />
05 - Wherever I May Roam.mp3<br />
06 - Don't Tread On Me.mp3<br />
07 - Through The Never.mp3<br />
08 - Nothing Else Matters.mp3<br />
09 - Of Wolf And Man.mp3<br />
10 - The God That Failed.mp3<br />
11 - My Friend Of Misery.mp3<br />
12 - The Struggle Within.mp3</code></p></blockquote>
<p>Now, to rename a large number of files spanning multiple directories, simply combine &#8220;rename&#8221; with the power of the &#8220;find&#8221; command.</p>
<p>Syntax:</p>
<blockquote><p><code><strong>find . -type f -name *.mp3 -exec rename 's/ \(LP Version\)//' '{}' \;</strong></code></p></blockquote>
<p>In this example, we searched starting from the current directory for only files with .mp3 in their file names.  We use the find command&#8217;s -exec option to execute the rename command against the result set.  See the find(1) manpage for more info.</p>
<p>Other useful examples:</p>
<blockquote><p><code>Replace all spaces with underscores.<br />
<strong>rename 's/ /\_/g' *.mp3</strong></code></p>
<p><code>Replace all uppercase with lowercase characters<br />
<strong>rename 'y/[A-Z]/[a-z]/' *.mp3</strong></code></p></blockquote>
<p>Easy stuff, and you don&#8217;t even need any fancy GUI applications to do the job!</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Frename-files-in-bulk-from-the-command-line%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Frename-files-in-bulk-from-the-command-line%2F&amp;t=Rename%20Files%20in%20Bulk%20from%20the%20Command%20Line" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Rename%20Files%20in%20Bulk%20from%20the%20Command%20Line%20-%20http%3A%2F%2Fsavvyadmin.com%2Frename-files-in-bulk-from-the-command-line%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Frename-files-in-bulk-from-the-command-line%2F&amp;title=Rename%20Files%20in%20Bulk%20from%20the%20Command%20Line&amp;notes=Renaming%20a%20large%20number%20of%20files%20can%20seem%20like%20a%20daunting%20task%2C%20but%20no%20worries%2C%20your%20trusty%20Linux%20CLI%20is%20at%20your%20service.%20%20For%20this%20example%2C%20we%20will%20rename%20a%20number%20of%20MP3%27s%20located%20in%20multiple%20subdirectories%20with%20a%20couple%20very%20easy%20commands%3B%20%22find%22%20" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Frename-files-in-bulk-from-the-command-line%2F&amp;title=Rename%20Files%20in%20Bulk%20from%20the%20Command%20Line&amp;bodytext=Renaming%20a%20large%20number%20of%20files%20can%20seem%20like%20a%20daunting%20task%2C%20but%20no%20worries%2C%20your%20trusty%20Linux%20CLI%20is%20at%20your%20service.%20%20For%20this%20example%2C%20we%20will%20rename%20a%20number%20of%20MP3%27s%20located%20in%20multiple%20subdirectories%20with%20a%20couple%20very%20easy%20commands%3B%20%22find%22%20" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Rename%20Files%20in%20Bulk%20from%20the%20Command%20Line&amp;body=http%3A%2F%2Fsavvyadmin.com%2Frename-files-in-bulk-from-the-command-line%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Frename-files-in-bulk-from-the-command-line%2F&amp;title=Rename%20Files%20in%20Bulk%20from%20the%20Command%20Line&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=Renaming%20a%20large%20number%20of%20files%20can%20seem%20like%20a%20daunting%20task%2C%20but%20no%20worries%2C%20your%20trusty%20Linux%20CLI%20is%20at%20your%20service.%20%20For%20this%20example%2C%20we%20will%20rename%20a%20number%20of%20MP3%27s%20located%20in%20multiple%20subdirectories%20with%20a%20couple%20very%20easy%20commands%3B%20%22find%22%20" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Frename-files-in-bulk-from-the-command-line%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Frename-files-in-bulk-from-the-command-line%2F&amp;title=Rename%20Files%20in%20Bulk%20from%20the%20Command%20Line&amp;annotation=Renaming%20a%20large%20number%20of%20files%20can%20seem%20like%20a%20daunting%20task%2C%20but%20no%20worries%2C%20your%20trusty%20Linux%20CLI%20is%20at%20your%20service.%20%20For%20this%20example%2C%20we%20will%20rename%20a%20number%20of%20MP3%27s%20located%20in%20multiple%20subdirectories%20with%20a%20couple%20very%20easy%20commands%3B%20%22find%22%20" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Frename-files-in-bulk-from-the-command-line%2F&amp;title=Rename%20Files%20in%20Bulk%20from%20the%20Command%20Line" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/vim-in-color/' rel='bookmark' title='Permanent Link: Vim in Color'>Vim in Color</a></li>
<li><a href='http://savvyadmin.com/rar-and-unrar-from-linux-cli/' rel='bookmark' title='Permanent Link: RAR and UNRAR from Linux CLI'>RAR and UNRAR from Linux CLI</a></li>
<li><a href='http://savvyadmin.com/split-and-reassemble-files/' rel='bookmark' title='Permanent Link: Split and Reassemble Files'>Split and Reassemble Files</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/rename-files-in-bulk-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Vim in Color</title>
		<link>http://savvyadmin.com/vim-in-color/</link>
		<comments>http://savvyadmin.com/vim-in-color/#comments</comments>
		<pubDate>Sun, 30 Sep 2007 13:48:05 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/2007/09/30/vim-in-color/</guid>
		<description><![CDATA[Turing on colored syntax highlighting in Vim can make it easier when looking through complicated text files, scripts, and source code.  To quickly turn on or off the feature, use the &#8220;syntax&#8221; command within Vim:
:syntax on
:syntax off
The results are great.  Here&#8217;s a screenshot of Vim in color.

To make the feature permanent, edit the [...]


Related posts:<ol><li><a href='http://savvyadmin.com/perform-gnupg-functions-within-vim/' rel='bookmark' title='Permanent Link: Perform GnuPG Functions Within Vim'>Perform GnuPG Functions Within Vim</a></li>
<li><a href='http://savvyadmin.com/rename-files-in-bulk-from-the-command-line/' rel='bookmark' title='Permanent Link: Rename Files in Bulk from the Command Line'>Rename Files in Bulk from the Command Line</a></li>
<li><a href='http://savvyadmin.com/grep-in-color/' rel='bookmark' title='Permanent Link: Grep in Color'>Grep in Color</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Turing on colored syntax highlighting in Vim can make it easier when looking through complicated text files, scripts, and source code.  To quickly turn on or off the feature, use the &#8220;syntax&#8221; command within Vim:</p>
<blockquote><p><code>:syntax on<br />
:syntax off</code></p></blockquote>
<p>The results are great.  Here&#8217;s a screenshot of Vim in color.</p>
<p style="text-align: center"><img src="https://www.savvyadmin.com/wp-content/uploads/2007/09/vim-in-color.png" alt="Vim in Color" /></p>
<p>To make the feature permanent, edit the file /etc/vim/vimrc, or as your Vim package maintainer may suggest, /etc/vim/vimrc.local.  One can also make the change simply for their user only by editing ~/.vimrc.   In all cases, simply add the following line at the end of the file:</p>
<blockquote><p><code>:syntax on</code></p></blockquote>
<p>Users of Ubuntu by default have vim-tiny, which as it&#8217;s name suggests, is a smaller version of the Vim editor.  This version does not support syntax highlighting and a number of other features.  Of course, remedying this is very easy by installing the full featured vim:</p>
<blockquote><p><code># sudo apt-get install vim</code></p></blockquote>
<p>Happy editing.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Fvim-in-color%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Fvim-in-color%2F&amp;t=Vim%20in%20Color" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Vim%20in%20Color%20-%20http%3A%2F%2Fsavvyadmin.com%2Fvim-in-color%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Fvim-in-color%2F&amp;title=Vim%20in%20Color&amp;notes=Turing%20on%20colored%20syntax%20highlighting%20in%20Vim%20can%20make%20it%20easier%20when%20looking%20through%20complicated%20text%20files%2C%20scripts%2C%20and%20source%20code.%20%20To%20quickly%20turn%20on%20or%20off%20the%20feature%2C%20use%20the%20%22syntax%22%20command%20within%20Vim%3A%0D%0A%3Asyntax%20on%0D%0A%3Asyntax%20off%0D%0AThe%20results%20" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fvim-in-color%2F&amp;title=Vim%20in%20Color&amp;bodytext=Turing%20on%20colored%20syntax%20highlighting%20in%20Vim%20can%20make%20it%20easier%20when%20looking%20through%20complicated%20text%20files%2C%20scripts%2C%20and%20source%20code.%20%20To%20quickly%20turn%20on%20or%20off%20the%20feature%2C%20use%20the%20%22syntax%22%20command%20within%20Vim%3A%0D%0A%3Asyntax%20on%0D%0A%3Asyntax%20off%0D%0AThe%20results%20" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Vim%20in%20Color&amp;body=http%3A%2F%2Fsavvyadmin.com%2Fvim-in-color%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fvim-in-color%2F&amp;title=Vim%20in%20Color&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=Turing%20on%20colored%20syntax%20highlighting%20in%20Vim%20can%20make%20it%20easier%20when%20looking%20through%20complicated%20text%20files%2C%20scripts%2C%20and%20source%20code.%20%20To%20quickly%20turn%20on%20or%20off%20the%20feature%2C%20use%20the%20%22syntax%22%20command%20within%20Vim%3A%0D%0A%3Asyntax%20on%0D%0A%3Asyntax%20off%0D%0AThe%20results%20" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Fvim-in-color%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Fvim-in-color%2F&amp;title=Vim%20in%20Color&amp;annotation=Turing%20on%20colored%20syntax%20highlighting%20in%20Vim%20can%20make%20it%20easier%20when%20looking%20through%20complicated%20text%20files%2C%20scripts%2C%20and%20source%20code.%20%20To%20quickly%20turn%20on%20or%20off%20the%20feature%2C%20use%20the%20%22syntax%22%20command%20within%20Vim%3A%0D%0A%3Asyntax%20on%0D%0A%3Asyntax%20off%0D%0AThe%20results%20" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Fvim-in-color%2F&amp;title=Vim%20in%20Color" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/perform-gnupg-functions-within-vim/' rel='bookmark' title='Permanent Link: Perform GnuPG Functions Within Vim'>Perform GnuPG Functions Within Vim</a></li>
<li><a href='http://savvyadmin.com/rename-files-in-bulk-from-the-command-line/' rel='bookmark' title='Permanent Link: Rename Files in Bulk from the Command Line'>Rename Files in Bulk from the Command Line</a></li>
<li><a href='http://savvyadmin.com/grep-in-color/' rel='bookmark' title='Permanent Link: Grep in Color'>Grep in Color</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/vim-in-color/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grep in Color</title>
		<link>http://savvyadmin.com/grep-in-color/</link>
		<comments>http://savvyadmin.com/grep-in-color/#comments</comments>
		<pubDate>Sun, 02 Sep 2007 16:24:43 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Grep]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/2007/09/02/grep-in-color/</guid>
		<description><![CDATA[If you would like to make it easier to visually spot what you are looking for when using &#8220;grep&#8221;, try out the &#8220;&#8211;color&#8221; flag.  This option highlights any matches in the output of your search, giving you an upper hand when trying to visually scan through complicated or cumbersome sequences.
For example, if you were [...]


Related posts:<ol><li><a href='http://savvyadmin.com/useful-apt-aliases/' rel='bookmark' title='Permanent Link: Useful APT Aliases'>Useful APT Aliases</a></li>
<li><a href='http://savvyadmin.com/vim-in-color/' rel='bookmark' title='Permanent Link: Vim in Color'>Vim in Color</a></li>
<li><a href='http://savvyadmin.com/split-and-reassemble-files/' rel='bookmark' title='Permanent Link: Split and Reassemble Files'>Split and Reassemble Files</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you would like to make it easier to visually spot what you are looking for when using &#8220;grep&#8221;, try out the &#8220;&#8211;color&#8221; flag.  This option highlights any matches in the output of your search, giving you an upper hand when trying to visually scan through complicated or cumbersome sequences.</p>
<p>For example, if you were looking for any IP address in your /etc/hosts.deny file that has the number &#8220;209&#8243; in it, issue the following command:</p>
<blockquote><p><code><strong>grep --color 209 /etc/hosts.deny</strong></code></p></blockquote>
<p>Here is the comparison of the same output, with and without the color option.</p>
<p style="text-align: center;"><img src="https://www.savvyadmin.com/wp-content/uploads/2007/09/grep-no-color.png" alt="Grep with no color" /> <img src="https://www.savvyadmin.com/wp-content/uploads/2007/09/grep-color.png" alt="Grep with color" /></p>
<p>As you can see, one might find it very easy to miss the fact that there are some IP addresses that have multiple octets with the value of 209.  The color flag really comes in handy.</p>
<p><strong>UPDATE (12/13/2009):</strong> In the most recent versions of Ubuntu, a local alias has been defined in the default .bashrc for each user.  This alias gives turns on color highlighting with the following line.</p>
<blockquote><p><code>alias grep='grep --color=auto'</code></p></blockquote>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Fgrep-in-color%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Fgrep-in-color%2F&amp;t=Grep%20in%20Color" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Grep%20in%20Color%20-%20http%3A%2F%2Fsavvyadmin.com%2Fgrep-in-color%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Fgrep-in-color%2F&amp;title=Grep%20in%20Color&amp;notes=If%20you%20would%20like%20to%20make%20it%20easier%20to%20visually%20spot%20what%20you%20are%20looking%20for%20when%20using%20%22grep%22%2C%20try%20out%20the%20%22--color%22%20flag.%20%20This%20option%20highlights%20any%20matches%20in%20the%20output%20of%20your%20search%2C%20giving%20you%20an%20upper%20hand%20when%20trying%20to%20visually%20scan%20throu" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fgrep-in-color%2F&amp;title=Grep%20in%20Color&amp;bodytext=If%20you%20would%20like%20to%20make%20it%20easier%20to%20visually%20spot%20what%20you%20are%20looking%20for%20when%20using%20%22grep%22%2C%20try%20out%20the%20%22--color%22%20flag.%20%20This%20option%20highlights%20any%20matches%20in%20the%20output%20of%20your%20search%2C%20giving%20you%20an%20upper%20hand%20when%20trying%20to%20visually%20scan%20throu" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Grep%20in%20Color&amp;body=http%3A%2F%2Fsavvyadmin.com%2Fgrep-in-color%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fgrep-in-color%2F&amp;title=Grep%20in%20Color&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=If%20you%20would%20like%20to%20make%20it%20easier%20to%20visually%20spot%20what%20you%20are%20looking%20for%20when%20using%20%22grep%22%2C%20try%20out%20the%20%22--color%22%20flag.%20%20This%20option%20highlights%20any%20matches%20in%20the%20output%20of%20your%20search%2C%20giving%20you%20an%20upper%20hand%20when%20trying%20to%20visually%20scan%20throu" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Fgrep-in-color%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Fgrep-in-color%2F&amp;title=Grep%20in%20Color&amp;annotation=If%20you%20would%20like%20to%20make%20it%20easier%20to%20visually%20spot%20what%20you%20are%20looking%20for%20when%20using%20%22grep%22%2C%20try%20out%20the%20%22--color%22%20flag.%20%20This%20option%20highlights%20any%20matches%20in%20the%20output%20of%20your%20search%2C%20giving%20you%20an%20upper%20hand%20when%20trying%20to%20visually%20scan%20throu" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Fgrep-in-color%2F&amp;title=Grep%20in%20Color" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/useful-apt-aliases/' rel='bookmark' title='Permanent Link: Useful APT Aliases'>Useful APT Aliases</a></li>
<li><a href='http://savvyadmin.com/vim-in-color/' rel='bookmark' title='Permanent Link: Vim in Color'>Vim in Color</a></li>
<li><a href='http://savvyadmin.com/split-and-reassemble-files/' rel='bookmark' title='Permanent Link: Split and Reassemble Files'>Split and Reassemble Files</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/grep-in-color/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Split and Reassemble Files</title>
		<link>http://savvyadmin.com/split-and-reassemble-files/</link>
		<comments>http://savvyadmin.com/split-and-reassemble-files/#comments</comments>
		<pubDate>Mon, 04 Jun 2007 06:11:20 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/2007/06/03/split-and-reassemble-files/</guid>
		<description><![CDATA[If you ever need to work with a large file and wish you could split it into smaller pieces, you&#8217;ll be pleased to know that it&#8217;s extremely easy to do in Linux. You can use the &#8220;split&#8221; utility that comes standard with most *nix variations. Lets take a look at a couple easy examples.
To create [...]


Related posts:<ol><li><a href='http://savvyadmin.com/grep-in-color/' rel='bookmark' title='Permanent Link: Grep in Color'>Grep in Color</a></li>
<li><a href='http://savvyadmin.com/vim-in-color/' rel='bookmark' title='Permanent Link: Vim in Color'>Vim in Color</a></li>
<li><a href='http://savvyadmin.com/rename-files-in-bulk-from-the-command-line/' rel='bookmark' title='Permanent Link: Rename Files in Bulk from the Command Line'>Rename Files in Bulk from the Command Line</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you ever need to work with a large file and wish you could split it into smaller pieces, you&#8217;ll be pleased to know that it&#8217;s extremely easy to do in Linux. You can use the &#8220;split&#8221; utility that comes standard with most *nix variations. Lets take a look at a couple easy examples.</p>
<p>To create a test file to work with, the following will create one that&#8217;s exactly 100 megabytes.  Note, I am using &#8216;dd&#8217; with /dev/urandom to demonstrate that the results of the split and reassembly are completely accurate.  This will be accomplished via md5 hash comparisons at the end of this process.</p>
<blockquote><p><code>$ dd if=/dev/urandom of=testfile bs=1k count=102400<br />
102400+0 records in<br />
102400+0 records out<br />
104857600 bytes (105 MB) copied, 23.2982 seconds, 4.5 MB/s</code></p>
<p><code>$ ls -lh testfile<br />
-rw-r--r-- 1 gmendoza gmendoza 100M 2007-06-03 22:45 testfile</code></p></blockquote>
<p>To split the file into five 20MB files, use the split command as shown below.  Note, I am producing five files with a new naming convention of &#8220;splitfiles&#8221;.</p>
<blockquote><p><code>$ split -b 20971520 -d testfile splitfiles</code></p></blockquote>
<p>Verify by listing all files that begin with &#8220;splitfiles&#8221;.  Below, you see the new files with the appropriate sequence numbers as a result of the split command.</p>
<blockquote><p><code>$ ls -l splitfiles*<br />
-rw-r--r-- 1 gmendoza gmendoza 20971520 2007-06-03 22:47 splitfiles00<br />
-rw-r--r-- 1 gmendoza gmendoza 20971520 2007-06-03 22:47 splitfiles01<br />
-rw-r--r-- 1 gmendoza gmendoza 20971520 2007-06-03 22:47 splitfiles02<br />
-rw-r--r-- 1 gmendoza gmendoza 20971520 2007-06-03 22:47 splitfiles03<br />
-rw-r--r-- 1 gmendoza gmendoza 20971520 2007-06-03 22:47 splitfiles04</code></p></blockquote>
<p>To reassemble the smaller files back to their original state, concatenate them together using a simple redirect.</p>
<blockquote><p><code>$ cat splitfile* &gt; newtestfile</code></p></blockquote>
<p>&#8230; and list again to show your handy work&#8230;</p>
<blockquote><p><code>$ ls -lh newtestfile<br />
-rw-r--r-- 1 gmendoza gmendoza 100M 2007-06-03 22:52 newtestfile</code></p></blockquote>
<p>As proof that both the original and newly reassembled files are exactly the same, check the results of a cryptographic md5 hash:</p>
<blockquote><p><code>$ md5sum testfile newtestfile<br />
54a07d5011ca893eddfab29960a7f232  testfile<br />
54a07d5011ca893eddfab29960a7f232  newtestfile</code></p></blockquote>
<p>Cool stuff.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Fsplit-and-reassemble-files%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Fsplit-and-reassemble-files%2F&amp;t=Split%20and%20Reassemble%20Files" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Split%20and%20Reassemble%20Files%20-%20http%3A%2F%2Fsavvyadmin.com%2Fsplit-and-reassemble-files%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Fsplit-and-reassemble-files%2F&amp;title=Split%20and%20Reassemble%20Files&amp;notes=If%20you%20ever%20need%20to%20work%20with%20a%20large%20file%20and%20wish%20you%20could%20split%20it%20into%20smaller%20pieces%2C%20you%27ll%20be%20pleased%20to%20know%20that%20it%27s%20extremely%20easy%20to%20do%20in%20Linux.%20You%20can%20use%20the%20%22split%22%20utility%20that%20comes%20standard%20with%20most%20%2Anix%20variations.%20Lets%20take%20a%20" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fsplit-and-reassemble-files%2F&amp;title=Split%20and%20Reassemble%20Files&amp;bodytext=If%20you%20ever%20need%20to%20work%20with%20a%20large%20file%20and%20wish%20you%20could%20split%20it%20into%20smaller%20pieces%2C%20you%27ll%20be%20pleased%20to%20know%20that%20it%27s%20extremely%20easy%20to%20do%20in%20Linux.%20You%20can%20use%20the%20%22split%22%20utility%20that%20comes%20standard%20with%20most%20%2Anix%20variations.%20Lets%20take%20a%20" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Split%20and%20Reassemble%20Files&amp;body=http%3A%2F%2Fsavvyadmin.com%2Fsplit-and-reassemble-files%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fsplit-and-reassemble-files%2F&amp;title=Split%20and%20Reassemble%20Files&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=If%20you%20ever%20need%20to%20work%20with%20a%20large%20file%20and%20wish%20you%20could%20split%20it%20into%20smaller%20pieces%2C%20you%27ll%20be%20pleased%20to%20know%20that%20it%27s%20extremely%20easy%20to%20do%20in%20Linux.%20You%20can%20use%20the%20%22split%22%20utility%20that%20comes%20standard%20with%20most%20%2Anix%20variations.%20Lets%20take%20a%20" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Fsplit-and-reassemble-files%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Fsplit-and-reassemble-files%2F&amp;title=Split%20and%20Reassemble%20Files&amp;annotation=If%20you%20ever%20need%20to%20work%20with%20a%20large%20file%20and%20wish%20you%20could%20split%20it%20into%20smaller%20pieces%2C%20you%27ll%20be%20pleased%20to%20know%20that%20it%27s%20extremely%20easy%20to%20do%20in%20Linux.%20You%20can%20use%20the%20%22split%22%20utility%20that%20comes%20standard%20with%20most%20%2Anix%20variations.%20Lets%20take%20a%20" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Fsplit-and-reassemble-files%2F&amp;title=Split%20and%20Reassemble%20Files" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/grep-in-color/' rel='bookmark' title='Permanent Link: Grep in Color'>Grep in Color</a></li>
<li><a href='http://savvyadmin.com/vim-in-color/' rel='bookmark' title='Permanent Link: Vim in Color'>Vim in Color</a></li>
<li><a href='http://savvyadmin.com/rename-files-in-bulk-from-the-command-line/' rel='bookmark' title='Permanent Link: Rename Files in Bulk from the Command Line'>Rename Files in Bulk from the Command Line</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/split-and-reassemble-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful APT Aliases</title>
		<link>http://savvyadmin.com/useful-apt-aliases/</link>
		<comments>http://savvyadmin.com/useful-apt-aliases/#comments</comments>
		<pubDate>Fri, 01 Jun 2007 06:54:29 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/2007/06/01/useful-apt-aliases/</guid>
		<description><![CDATA[If you&#8217;re an avid user of Ubuntu or other Debian based Linux distributions, then you&#8217;re probably very familiar with using APT and it&#8217;s related command line utilities. You might however find it useful to create some command line aliases that shorten the time it takes to type out these repetitive tasks.
For example,
"sudo apt-get update" can [...]


Related posts:<ol><li><a href='http://savvyadmin.com/grep-in-color/' rel='bookmark' title='Permanent Link: Grep in Color'>Grep in Color</a></li>
<li><a href='http://savvyadmin.com/download-pgp-keys-with-apt-key/' rel='bookmark' title='Permanent Link: Download PGP Keys with Apt-key'>Download PGP Keys with Apt-key</a></li>
<li><a href='http://savvyadmin.com/backup-and-restore-package-lists-in-ubuntu/' rel='bookmark' title='Permanent Link: Backup and Restore Package Lists in Ubuntu'>Backup and Restore Package Lists in Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re an avid user of Ubuntu or other Debian based Linux distributions, then you&#8217;re probably very familiar with using APT and it&#8217;s related command line utilities. You might however find it useful to create some command line aliases that shorten the time it takes to type out these repetitive tasks.</p>
<p>For example,</p>
<blockquote><p><code>"<strong>sudo apt-get update</strong>" can be shortened to "<strong>agu</strong>".<br />
"<strong>sudo apt-get install</strong>" can be shortened to "<strong>agi</strong>".<br />
"<strong>sudo apt-get dist-upgrade</strong>" can be shorted to "<strong>agd</strong>".</code></p></blockquote>
<p>A very simple way to create a set of command line aliases would be to add them to your <code>~/.bashrc</code> file located in your users home directory. Here&#8217;s an example of some of my favorite APT aliases.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Favorite Aliases</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">agu</span>=<span style="color: #ff0000;">'sudo apt-get update'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">agi</span>=<span style="color: #ff0000;">'sudo apt-get install'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">agd</span>=<span style="color: #ff0000;">'sudo apt-get dist-upgrade'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">agr</span>=<span style="color: #ff0000;">'sudo apt-get remove'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ags</span>=<span style="color: #ff0000;">'sudo aptitude search'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">agsh</span>=<span style="color: #ff0000;">'sudo apt-cache show'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">afs</span>=<span style="color: #ff0000;">'sudo apt-file search'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">afsh</span>=<span style="color: #ff0000;">'sudo apt-file show'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">afu</span>=<span style="color: #ff0000;">'sudo apt-file update'</span></pre></div></div>

<p>To apply the changes immediately to your bash profile without having to log out, simply run the following command:</p>
<blockquote><p><code><strong>. .bashrc</strong></code></p></blockquote>
<p>Now, if you want to install the &#8220;vim-full&#8221; package, simply issue the following command:</p>
<blockquote><p><code><strong>agi vim-full</strong></code></p></blockquote>
<p>Remember, because &#8220;sudo&#8221; has been added to your alias, you don&#8217;t have to type it every time. It will prompt you to use the password the first time, and won&#8217;t ask again for the duration of the defined timeout period. Cool?</p>
<p>&#8220;apt-file&#8221; is a very useful package you should install. The alias is defined above, but is not installed by default. It allows you to search for file names in all packages from all your defined repositories. For example, lets say you&#8217;ve tried to run an application and it claims that your&#8217;re missing the library &#8220;libstdc++.so.5.0.7&#8243;. The following example tells you which packages contains a file with that name, which you can then install.</p>
<blockquote><p><code><strong>afs libstdc++.so.5.0.7</strong><br />
libstdc++5: usr/lib/libstdc++.so.5.0.7<br />
libstdc++5-3.3-dbg: usr/lib/debug/libstdc++.so.5.0.7<br />
<strong>agi libstdc++5</strong></code></p></blockquote>
<p>Although these examples have been geared towards Debian and Ubuntu, you can obviously use aliases on any Unix-like operating system. The technique of applying them just varies depending on the shell environment you are using. Have fun!</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fsavvyadmin.com%2Fuseful-apt-aliases%2F&amp;partner=sociable" title="Print"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fsavvyadmin.com%2Fuseful-apt-aliases%2F&amp;t=Useful%20APT%20Aliases" title="Facebook"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Useful%20APT%20Aliases%20-%20http%3A%2F%2Fsavvyadmin.com%2Fuseful-apt-aliases%2F" title="Twitter"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsavvyadmin.com%2Fuseful-apt-aliases%2F&amp;title=Useful%20APT%20Aliases&amp;notes=If%20you%27re%20an%20avid%20user%20of%20Ubuntu%20or%20other%20Debian%20based%20Linux%20distributions%2C%20then%20you%27re%20probably%20very%20familiar%20with%20using%20APT%20and%20it%27s%20related%20command%20line%20utilities.%20You%20might%20however%20find%20it%20useful%20to%20create%20some%20command%20line%20aliases%20that%20shorten%20t" title="del.icio.us"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://savvyadmin.com/feed/" title="RSS"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fuseful-apt-aliases%2F&amp;title=Useful%20APT%20Aliases&amp;bodytext=If%20you%27re%20an%20avid%20user%20of%20Ubuntu%20or%20other%20Debian%20based%20Linux%20distributions%2C%20then%20you%27re%20probably%20very%20familiar%20with%20using%20APT%20and%20it%27s%20related%20command%20line%20utilities.%20You%20might%20however%20find%20it%20useful%20to%20create%20some%20command%20line%20aliases%20that%20shorten%20t" title="Digg"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Useful%20APT%20Aliases&amp;body=http%3A%2F%2Fsavvyadmin.com%2Fuseful-apt-aliases%2F" title="email"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fsavvyadmin.com%2Fuseful-apt-aliases%2F&amp;title=Useful%20APT%20Aliases&amp;source=SavvyAdmin.com+For+savvy+admins+everywhere...&amp;summary=If%20you%27re%20an%20avid%20user%20of%20Ubuntu%20or%20other%20Debian%20based%20Linux%20distributions%2C%20then%20you%27re%20probably%20very%20familiar%20with%20using%20APT%20and%20it%27s%20related%20command%20line%20utilities.%20You%20might%20however%20find%20it%20useful%20to%20create%20some%20command%20line%20aliases%20that%20shorten%20t" title="LinkedIn"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fsavvyadmin.com%2Fuseful-apt-aliases%2F" title="Identi.ca"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsavvyadmin.com%2Fuseful-apt-aliases%2F&amp;title=Useful%20APT%20Aliases&amp;annotation=If%20you%27re%20an%20avid%20user%20of%20Ubuntu%20or%20other%20Debian%20based%20Linux%20distributions%2C%20then%20you%27re%20probably%20very%20familiar%20with%20using%20APT%20and%20it%27s%20related%20command%20line%20utilities.%20You%20might%20however%20find%20it%20useful%20to%20create%20some%20command%20line%20aliases%20that%20shorten%20t" title="Google Bookmarks"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsavvyadmin.com%2Fuseful-apt-aliases%2F&amp;title=Useful%20APT%20Aliases" title="StumbleUpon"><img src="http://savvyadmin.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://savvyadmin.com/grep-in-color/' rel='bookmark' title='Permanent Link: Grep in Color'>Grep in Color</a></li>
<li><a href='http://savvyadmin.com/download-pgp-keys-with-apt-key/' rel='bookmark' title='Permanent Link: Download PGP Keys with Apt-key'>Download PGP Keys with Apt-key</a></li>
<li><a href='http://savvyadmin.com/backup-and-restore-package-lists-in-ubuntu/' rel='bookmark' title='Permanent Link: Backup and Restore Package Lists in Ubuntu'>Backup and Restore Package Lists in Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/useful-apt-aliases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
