<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
>

<channel>
	<title>GoogleThem &#187; Linux tips and tricks</title>
	<atom:link href="http://googlethem.com/category/linux-tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://googlethem.com</link>
	<description>Google Search tips and tricks</description>
	<lastBuildDate>Sat, 19 May 2012 06:21:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<!-- podcast_generator="Blubrry PowerPress/3.0" -->
	<itunes:summary>Google tips and tricks</itunes:summary>
	<itunes:author>GoogleThem</itunes:author>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://googlethem.com/wp-content/plugins/powerpress/itunes_default.jpg" />
	<itunes:owner>
		<itunes:name>GoogleThem</itunes:name>
		<itunes:email>wordpressmu_on_hostnine@liquidwebsite.com</itunes:email>
	</itunes:owner>
	<managingEditor>wordpressmu_on_hostnine@liquidwebsite.com (GoogleThem)</managingEditor>
	<copyright>2006-2007</copyright>
	<itunes:subtitle>Google Search tips and tricks</itunes:subtitle>
	<image>
		<title>GoogleThem &#187; Linux tips and tricks</title>
		<url>http://googlethem.com/wp-content/plugins/powerpress/rss_default.jpg</url>
		<link>http://googlethem.com/category/linux-tips-and-tricks/</link>
	</image>
		<item>
		<title>Ubuntu root</title>
		<link>http://googlethem.com/ubuntu-root/</link>
		<comments>http://googlethem.com/ubuntu-root/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 22:40:46 +0000</pubDate>
		<dc:creator>GoogleThem</dc:creator>
				<category><![CDATA[Linux tips and tricks]]></category>

		<guid isPermaLink="false">http://googlethem.com/?p=593</guid>
		<description><![CDATA[sudo command (you must do this every time you issue a command) sudo -i command (this gives you persistent access) If you are launching a graphical app like Nautilus (file manager) use gksudo instead of sudo. This makes it so that your files created in Nautilus, Konqueror, or Dolphin are owned by your user and [...]]]></description>
			<content:encoded><![CDATA[<p>sudo <em>command</em> (you must do this every time you issue a command)</p>
<p>sudo -i <em>command</em> (this gives you persistent access)</p>
<p>If you are launching a graphical app like Nautilus (file manager) use gksudo instead of sudo. This makes it so that your files created in Nautilus, Konqueror, or Dolphin are owned by your user and not root.</p>
<p>If you are using KDE instead of gnome, use kdesudo instead of sudo to launch graphical applicaitons. Example:</p>
<p>kdesudo kate ~/myfile.txt</p>
<p>OR:</p>
<p>Create an <a href="http://googlethem.com/ubuntu-live-cd-root-password-and-live-session-password-for-user-ubuntu/">Ubuntu root account with password</a> easily.</p>
<p>This post also shows how to create a <a href="http://googlethem.com/linux-root-password-for-live-session/">linux cd root password</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://googlethem.com/ubuntu-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache httpd.conf &#8211; ServerSignature Off ServerTokens Prod</title>
		<link>http://googlethem.com/apache-httpd-conf-serversignature-off-servertokens-prod/</link>
		<comments>http://googlethem.com/apache-httpd-conf-serversignature-off-servertokens-prod/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 06:40:58 +0000</pubDate>
		<dc:creator>GoogleThem</dc:creator>
				<category><![CDATA[Linux tips and tricks]]></category>

		<guid isPermaLink="false">http://googlethem.com/?p=554</guid>
		<description><![CDATA[To supress apache returning information about itself in the response headers add these 2 lines to httpd.conf: ServerSignature Off ServerTokens Prod This can be done with WHM without editing the httpd.conf file: Main &#62;&#62; Service Configuration &#62;&#62; Apache Configuration]]></description>
			<content:encoded><![CDATA[<p>To supress apache returning information about itself in the response headers add these 2 lines to httpd.conf:</p>
<pre>ServerSignature Off
ServerTokens Prod

This can be done with WHM without editing the httpd.conf file:
<a href="https://209.236.68.206:2087/scripts/command?PFILE=main">Main</a> &gt;&gt; <a href="https://209.236.68.206:2087/scripts/command?PFILE=Service_Configuration">Service Configuration</a> &gt;&gt; <a href="https://209.236.68.206:2087/scripts2/displayapachesetup">Apache Configuration</a></pre>
]]></content:encoded>
			<wfw:commentRss>http://googlethem.com/apache-httpd-conf-serversignature-off-servertokens-prod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unpredictable drive errors</title>
		<link>http://googlethem.com/unpredictable-drive-errors/</link>
		<comments>http://googlethem.com/unpredictable-drive-errors/#comments</comments>
		<pubDate>Fri, 13 May 2011 07:36:36 +0000</pubDate>
		<dc:creator>GoogleThem</dc:creator>
				<category><![CDATA[Linux tips and tricks]]></category>
		<category><![CDATA[Windows Tips]]></category>

		<guid isPermaLink="false">http://googlethem.com/?p=539</guid>
		<description><![CDATA[from my favorite disk imaging program support website, a very helpful guide to fixing disk read or write errors due to glitchy items like bad IDE cables: http://www.terabyteunlimited.com/kb/article.php?id=152 Image Validation Fails with Image Stream Corrupt or Byte-for-Byte Validation Failure Message This problem can be caused by overclocking, overheating, a hardware problem, or a BIOS or [...]]]></description>
			<content:encoded><![CDATA[<p>from my favorite disk imaging program support website, a very helpful guide to fixing disk read or write errors due to glitchy items like bad IDE cables: http://www.terabyteunlimited.com/kb/article.php?id=152</p>
<h2>Image Validation Fails with Image Stream Corrupt or Byte-for-Byte Validation Failure Message</h2>
<p>This problem can be caused by overclocking, overheating, a hardware problem, or a BIOS or firmware bug or configuration issue.</p>
<p>To determine if the mainboard, memory, or CPU is at fault:</p>
<ul>
<li>Download and run either the <a href="http://oca.microsoft.com/en/windiag.asp" target="_blank">Microsoft Windows Memory Diagnostic</a> or <a title="memtest86" href="http://www.memtest86.com/" target="_blank">memtest86</a> (or try both of them).
<ul>
<li>If you use the Windows Memory Diagnostic, run the extended tests overnight. </li>
<li>If you use memtest86, run all seven of the default tests and allow it to run overnight. </li>
</ul>
</li>
</ul>
<p>If the memory diagnostic does not report any errors, check the following:</p>
<ul>
<li>Run <strong>chkdsk /f</strong> on both the source drive and the drive holding the backup image. <strong><span style="color: #ff0000">Important:</span></strong> Only run <strong>chkdsk</strong> if the memory diagnostic did not report any errors. Running <strong>chkdsk</strong> on a system with bad memory can result in data corruption.
<p>Start a Command Prompt and then run <strong><span style="color: #ff0000">chkdsk x: /f</span></strong> where<strong> x</strong>: is the drive to check. <br />
 For example: <strong><span style="color: #ff0000">chkdsk c: /f<br />
 </span></strong><br />
 <strong>Note:</strong> If running Windows Vista or Windows 7, you must run <strong>chkdsk</strong> from an Administrator Command Prompt.</p>
</li>
<li>If the problem is occurring when saving images to an <a>optical drive</a>, try burning at a slower speed and/or updating the drive&#8217;s firmware, if possible. Also, please refer to the article <a href="http://www.terabyteunlimited.com/kb/article.php?id=087" target="_blank"><strong>Message &#8220;Unable to read from file&#8221; when Performing Image Validation or Restore</strong></a>, if applicable. </li>
<li>If you are overclocking, revert your settings to the defaults and determine if the problem goes away. </li>
<li>If you are using a non-standard, third-party system BIOS or  device firmware, switch to the latest final version of the  manufacturer-supported BIOS or firmware, reset all BIOS settings to the  defaults (referred to as a &#8220;clearing the CMOS&#8221; procedure by some  mainboard manufacturers) and determine if the problem goes away. </li>
<li>If you have recently flashed to a different version of your system BIOS <em>or</em> the firmware of the controller to which your drive is connected (even  if you the version used is a manufacturer-supported version), try  reverting to the BIOS or firmware version you were using before (or the  latest version) and determine if the problem goes away. </li>
<li>If you are having the problem with an <a>IDE</a> drive and you are using an <a>IDE</a> cable that is greater than 18 inches in length, replace the cable with one that is 18 inches or shorter in length. </li>
<li>Switch to an 80-conductor <a>IDE</a> cable. </li>
<li>If you have an <a>IDE</a> drive that is set to master (and/or is the only device on the <a>IDE</a> cable) ensure that it is connected to the <em>end</em> of the <a>IDE</a> cable. </li>
<li>If you are using a USB drive, please see the following KB article:<br />
 <strong><a href="http://www.terabyteunlimited.com/kb/article.php?id=407" target="_blank">Troubleshooting USB Drive Connection and Performance Issues</a></strong></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
</li>
<li>Ensure that your system, including any applicable drives, are  not running at temperatures that exceed the manufacturer  specifications.  If any temperatures are high, addtional case fans may  be needed. </li>
<li>The drive may have weak sectors.  Try a thorough test with a utility provided by the drive manufacturer, with <a href="http://www.spinrite.com/" target="_blank">SpinRite</a>, or with a similar utility. </li>
</ul>
<p><br class="spacer_" /></p>
<p>If none of the above helps, the problem may be due to weak sectors  on the drive surface. If the issue you are having involves a hard drive,  download and run the hard drive manufacturer&#8217;s diagnostic utility or a  third-party utility designed to scan and repair hard disk  surfaces. Below are links to some major hard drive manufacturer&#8217;s home  pages:</p>
<p><a href="http://www.excelstor.com/" target="_blank">ExcelStor</a><br />
 <a href="http://www.fel.fujitsu.com/" target="_blank">Fujitsu</a><br />
 <a href="http://www.hgst.com/" target="_blank">Hitachi</a><br />
 <a href="http://www.maxtor.com/" target="_blank">Seagate/Maxtor</a><br />
 <a href="http://www.samsung.com/" target="_blank">Samsung</a><br />
 <a href="http://www.seagate.com/" target="_blank">Seagate</a><br />
 <a href="http://www.sonystyle.com/" target="_blank">Sony</a><br />
 <a href="http://sdd.toshiba.com/" target="_blank">Toshiba</a><br />
 <a href="http://www.wdc.com/" target="_blank">Western Digital</a></p>
<p>If you still have not narrowed down the problem, try adjusting the  system BIOS parameters below, for the drive(s) with which you are  experiencing the problem. These settings, if available, are typically  found under &#8220;Integrated Peripherals&#8221; or in the &#8220;Drive Configuration&#8221;  section.</p>
<ul>
<li>Disable &#8220;Block mode&#8221; </li>
<li>Disable &#8220;32-bit access&#8221; </li>
<li>Switch to a different <a>PIO</a> mode </li>
<li>Switch to a lower <a>UDMA</a> mode, if using <a>UDMA</a> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://googlethem.com/unpredictable-drive-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux root password for live session</title>
		<link>http://googlethem.com/linux-root-password-for-live-session/</link>
		<comments>http://googlethem.com/linux-root-password-for-live-session/#comments</comments>
		<pubDate>Tue, 10 May 2011 01:27:50 +0000</pubDate>
		<dc:creator>GoogleThem</dc:creator>
				<category><![CDATA[Linux tips and tricks]]></category>

		<guid isPermaLink="false">http://googlethem.com/?p=533</guid>
		<description><![CDATA[When there is no root password for a live session in linux you can type: sudo passwd root Then enter a new unix password Then type su as normal to gain root access. su Another way: in Debian there is no root user only type #sudo su - If you need root access in Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>When there is no root password for a live session in linux you can type:</p>
<pre>sudo passwd root
</pre>
<p>Then enter a new unix password</p>
<div>
<div>Then type su as normal to gain root access.</div>
<pre>su
</pre>
</div>
<p>Another way: in Debian there is no root user only type <br />
 #sudo su -</p>
<p>If you need root access in Ubuntu then it&#8217;s different, there is no actual root, <a href="http://googlethem.com/ubuntu-live-cd-root-password-and-live-session-password-for-user-ubuntu/">with Ubuntu you need to do sudo, this line shows you how</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://googlethem.com/linux-root-password-for-live-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu error splicing file permission denied</title>
		<link>http://googlethem.com/ubuntu-error-splicing-file-permission-denied/</link>
		<comments>http://googlethem.com/ubuntu-error-splicing-file-permission-denied/#comments</comments>
		<pubDate>Mon, 27 Dec 2010 20:36:37 +0000</pubDate>
		<dc:creator>GoogleThem</dc:creator>
				<category><![CDATA[Linux tips and tricks]]></category>
		<category><![CDATA[Windows Tips]]></category>

		<guid isPermaLink="false">http://googlethem.com/?p=497</guid>
		<description><![CDATA[If you have the error on a linux system: &#8220;error splicing file permission denied&#8221; while trying to move, copy or delete a file, most likely you are trying to copy a windows encrypted file. It will not show as encrypted in linux and the permissions will look exactly as your others that do copy properly. The best way to [...]]]></description>
			<content:encoded><![CDATA[<p>If you have the error on a linux system: &#8220;error splicing file permission denied&#8221; while trying to move, copy or delete a file, most likely you are trying to copy a windows encrypted file. It will not show as encrypted in linux and the permissions will look exactly as your others that do copy properly.</p>
<p>The best way to take care of this is to boot into windows that encrypted the file in the first place, and right click &#8220;properties&#8221;, then uncheck &#8220;encrypted&#8221;. The files will decrypt if you logged in the windows that originally encrypted it.</p>
<p>I had accidentally done this and the only way I noticed was the file copy error in Ubuntu, then when booting to windows, the particular folder full of files were all in green text instead of black. If they were in blue, that would mean that they are compressed.</p>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://googlethem.com/ubuntu-error-splicing-file-permission-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Live CD root password and live session password for default user Ubuntu</title>
		<link>http://googlethem.com/ubuntu-live-cd-root-password-and-live-session-password-for-user-ubuntu/</link>
		<comments>http://googlethem.com/ubuntu-live-cd-root-password-and-live-session-password-for-user-ubuntu/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 01:25:08 +0000</pubDate>
		<dc:creator>GoogleThem</dc:creator>
				<category><![CDATA[Linux tips and tricks]]></category>

		<guid isPermaLink="false">http://googlethem.com/?p=422</guid>
		<description><![CDATA[sudo passwd ubuntu Then create your password, you will need to already be in Terminal To create a usable root user&#8217;s account on a live cd, you can set the root password then su. This has not been possible in previous versions of Ubuntu as their user model made you remember to sudo before each [...]]]></description>
			<content:encoded><![CDATA[<pre>sudo passwd ubuntu</pre>
<p>Then create your password, you will need to already be in Terminal <img src='http://googlethem.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>To create a usable root user&#8217;s account on a live cd, you can set the root password then su. This has not been possible in previous versions of Ubuntu as their user model made you remember to sudo before each command requiring root access.</p>
<pre>sudo passwd root</pre>
<p><a href="http://googlethem.com/linux-root-password-for-live-session/">It&#8217;s easier just to <strong>sudo</strong> <em>command</em> for one time use</a>, instead of creating a root user to <strong><em>su</em></strong> to.</p>
<p>As of Ubuntu 9.10, I haven&#8217;t been able to login with &#8220;demo&#8221; or &#8220;Ubuntu&#8221; as the password for live session username &#8220;Ubuntu&#8221;.</p>
<p>If you are running most other types of linux like Debian, Red Hat, Mepis, Suse and others, they have an actual root user with an account.</p>
<p><a href="http://googlethem.com/linux-root-password-for-live-session/">It is easier to gain root access permanently, for these other flavors of Linux click here to learn how.</a></p>
<p>If you&#8217;ve forgot your root password and need to reset it, Make Magazine has a nice writeup here:</p>
<p><a href="http://blog.makezine.com/archive/2008/09/howto-reset-a-lost-ubuntu-pass.html">HOWTO – reset a lost Ubuntu password</a></p>
]]></content:encoded>
			<wfw:commentRss>http://googlethem.com/ubuntu-live-cd-root-password-and-live-session-password-for-user-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Linux Tips</title>
		<link>http://googlethem.com/my-linux-tips/</link>
		<comments>http://googlethem.com/my-linux-tips/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 00:34:44 +0000</pubDate>
		<dc:creator>GoogleThem</dc:creator>
				<category><![CDATA[Linux tips and tricks]]></category>

		<guid isPermaLink="false">http://googlethem.com/?p=202</guid>
		<description><![CDATA[To see if you&#8217;re running Nvidia or ATI Radeon drivers in Linux: glxgears -printfps to see framerate (Mepis 6.5) To edit or change xorg.conf, your video card and video driver settings in linux: Drop to CTRL-ALT-F1 if you have to. First I backup /etc/X11/xorg.conf to xorg-backup.conf then edit the file to usually drop to a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>To see if you&#8217;re running Nvidia or ATI Radeon drivers in Linux:</strong><br />
glxgears -printfps to see framerate (Mepis 6.5)</p>
<p><strong>To edit or change xorg.conf, your video card and video driver settings in linux:</strong></p>
<p>Drop to CTRL-ALT-F1 if you have to.<br />
 First I backup /etc/X11/xorg.conf to xorg-backup.conf then edit the file to usually drop to a lower resolution which is the one listed for 24 bit depth.<br />
 If you really cannot deal with that, you can take your chances with the tool:<br />
 sudo dpkg-reconfigure xserver-xorg</p>
<p><strong>Dialup not working with KDE, (Mepis) using kpppd?</strong><br />
 If your prompt says &#8220;The pppd daemon died unexpectedly!&#8221;</p>
<p>I solved it by going to /etc/ppp/peers/kppp options.txt and replacing #noauth with noauth (ie Delete the #) and all is now good. Hope this helps others</p>
<p><!-- END: links --></p>
<div class="content">
<p>If you still cannot connect, you can try these:<br />
 1) open etc/ppp/peers/kppp-options and remove the # in front<br />
 of noauth if it is there.<br />
 2) open etc/ppp/pap-secrets and make sure your isp username<br />
 and password are there, again with no # in front of the line.<br />
 3) open etc/ppp/peers/provider and first make sure the correct<br />
 modem is listed, mine is on com port 2 so my line reads<br />
 /dev/ttyS1. Then this is the biggie because this line was very<br />
 wrong on mine. The chat script line should read :<br />
 connect &#8220;/usr/sbin/chat -v -f /etc/ppp/peers/provider&#8221;<br />
 That should do it.<br />
 By the way when putting settings in kppp (click configure button)<br />
 i used PAP and CR/LF and CRTSCTS and 115200 and /dev/ttyS1(which in<br />
 my case is com port 2).</p>
<p>Also do not use lock and if you really have to, change everything logged in as root.</p>
</div>
<p><!-- BEGIN: links --></p>
]]></content:encoded>
			<wfw:commentRss>http://googlethem.com/my-linux-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Command Line &#8211; quick list</title>
		<link>http://googlethem.com/linux-command-line/</link>
		<comments>http://googlethem.com/linux-command-line/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 23:55:19 +0000</pubDate>
		<dc:creator>GoogleThem</dc:creator>
				<category><![CDATA[Linux tips and tricks]]></category>

		<guid isPermaLink="false">http://googlethem.com/?p=191</guid>
		<description><![CDATA[Linux Commands: ls - list contents of a directory sudo - "substitute user" (grants administrator rights) sudo -i &#8211; login as superuser or admin or root cd - change directory aptitude - APT package management system (update, install, remove, search) clear - clear screen chmod - change file access permissions chown - change file and [...]]]></description>
			<content:encoded><![CDATA[<p>Linux Commands:</p>
<p><code>ls - list contents of a directory</code><code> sudo - "substitute user" (grants administrator rights)<br />
 </code>sudo -i &#8211; login as superuser or admin or root<br />
 <code>cd - <strong>change</strong> directory<br />
 aptitude - APT package management system (update, install, remove, search)<br />
 clear - clear screen<br />
 chmod - <strong>change</strong> file access permissions<br />
 chown - <strong>change</strong> file  and group ownership<br />
 cp - copy</code></p>
<p><code><br />
 </code><span style="font-family: Verdana,Arial,Helvetica,sans-serif"><strong>du -h </strong>- size of directory, h for human readable kbytes<strong><br />
 </strong></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif"><strong> </strong></span><code> grep - search (used as a pipe most often)<br />
 </code></p>
<ul>
<li><code>ex: </code>cat example.php | grep -i cookie </li>
</ul>
<p><code>ifconfig - shows IP address and other info about all interfaces including ethernet and wireless (may need /sbin/ifconfig if you are not logged in as root)</code></p>
<p><code>mv - move<br />
 rm - remove<br />
 cat - concatenate files (dump to screen)<br />
 </code></p>
<ul>
<li><code>ex: </code>cat example.php | grep -i cookie </li>
</ul>
<p><code> nano - basic text editor<br />
 vi - advanced text editor<br />
 fdisk - partition table manipulator (fdisk for windows and linux are different, their commands are unique to each platform!)<br />
 </code></p>
<ul>
<li>ex: fdisk -l (list all drives)</li>
</ul>
<p><code> df - disk free (remaining / used <a id="KonaLink3" class="kLink" href="http://ubuntu-tutorials.com/2006/12/17/basics-for-the-command-line-for-newbies-ubuntu-510-6061-610/#" target="undefined"><span style="font-weight: 400;font-size: 11px;color: blue"><span class="kLink" style="font-weight: 400;font-size: 11px;font-family: monospace;color: blue">disk </span><span class="kLink" style="font-weight: 400;font-size: 11px;font-family: monospace;color: blue">space</span></span></a>) (df reports space used)<br />
 users - users currently logged in<br />
 useradd - add a user<br />
 usermod - modify existing user<br />
 uname - show system data (try uname -a)<br />
 mount - mount a <a id="KonaLink4" class="kLink" href="http://ubuntu-tutorials.com/2006/12/17/basics-for-the-command-line-for-newbies-ubuntu-510-6061-610/#" target="undefined"><span style="font-weight: 400;font-size: 11px;color: blue"><span class="kLink" style="font-weight: 400;font-size: 11px;font-family: monospace;color: blue">file </span><span class="kLink" style="font-weight: 400;font-size: 11px;font-family: monospace;color: blue">system</span></span></a>, cd or removable drive</code><br />
 netstat -tpe (-t show only TCP connections, -p show PID/name, -e extra info)<br />
 umount &#8211; un-mount a file system, cd or removable drive</p>
<pre>top - show current running processes
touch - create new, empty, filereboot - reboot your system</pre>
<p><code> shutdown - shutdown your system<br />
 passwd - <strong>change</strong> user <strong>password</strong><br />
 ping - ping a <a id="KonaLink5" class="kLink" href="http://ubuntu-tutorials.com/2006/12/17/basics-for-the-command-line-for-newbies-ubuntu-510-6061-610/#" target="undefined"><span style="font-weight: 400;font-size: 11px;color: blue"><span class="kLink" style="font-weight: 400;font-size: 11px;font-family: monospace;color: blue">network </span><span class="kLink" style="font-weight: 400;font-size: 11px;font-family: monospace;color: blue">device</span></span></a> or location (ping google.com)<br />
 more - show output one screen at a time<br />
 exit - logout of the terminal<br />
 eject - eject a cdrom or removable device</code></p>
<pre><strong>tar</strong> cvzf foo.tgz cps100
will <strong>tar</strong> the directory cps100 (and its files/subdirectories) into a <strong>tar</strong> file named <tt>foo.tgz</tt>.
</pre>
<p>To <strong>tar</strong> all .cc and .h files into a <strong>tar</strong> file named <tt>foo.tgz</tt> use:<br />
 <strong>tar</strong> cvzf foo.tgz *.cc *.h</p>
<p>find . -iname &#8216;filetofind.htm&#8217;</p>
<p>In Linux to create a playlist with all the *.mp3, *.wav, *.ogg and *.wma in the current folder (and all subfolders) use the command:</p>
<pre>find . -iname '*' -print | sed -n -E -e 's/.*mp3/&amp;/p' -e 's/.*wav/&amp;/p' -e 's/.*ogg/&amp;/p' -e 's/.*wma/&amp;/p' &gt; playlist.m3u
</pre>
<p>or this one:</p>
<pre>find . -iregex '.*\.\(mp3\|wav\|ogg\|wma\)' -print &gt; playlist.m3u
</pre>
<h2></h2>
]]></content:encoded>
			<wfw:commentRss>http://googlethem.com/linux-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Backup MBR &#8211; Master Boot Record</title>
		<link>http://googlethem.com/linux-backup-mbr-master-boot-record/</link>
		<comments>http://googlethem.com/linux-backup-mbr-master-boot-record/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 15:15:38 +0000</pubDate>
		<dc:creator>GoogleThem</dc:creator>
				<category><![CDATA[Linux tips and tricks]]></category>

		<guid isPermaLink="false">http://googlethem.com/?p=167</guid>
		<description><![CDATA[Backup and Restore Hard drive partitions and MBR. This does the partition map only, not the actual partition data. To do entire drives or partitions use dd to backup and restore entire hard drives or clone drive. * To backup use: sudo dd if=/dev/hda of=mbr.backup bs=512 count=1 * To restore use: sudo dd of=/dev/hda if=mbr.backup [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Backup and Restore Hard drive partitions and MBR. </strong></p>
<p>This does the partition map only, not the actual partition data. To do entire drives or partitions <a href="http://googlethem.com/linux-backup-entire-drive-image-to-a-file-or-another-drive/">use dd to backup and restore entire hard drives or clone drive</a>. <strong><br />
</strong></p>
<p>* To backup use:<br />
 <strong>sudo dd if=/dev/hda of=mbr.backup bs=512 count=1</strong><br />
 * To restore use:<br />
 <strong>sudo dd of=/dev/hda if=mbr.backup bs=512 count=1</strong></p>
<p>Caution the MBR contains the partition table (the first four primary entries) it will break things if you changed the partition since the backup.</p>
<p>If you do not want to restore the partition table you should use sudo dd of=/dev/hda if=mbr.backup bs=446 count=1 instead. This will write only the first 446 bytes of the MBR leaving the last 64 bytes intact (4 partition table entries * 16 bytes/entry). <strong>You can restore an MBR even from a backup that has all 512 bytes just by specifying 446 on the restore operation!</strong></p>
<p>Be warned that you may not be able to boot from this disk if you changed the partition table after the backup of the MBR, depending on the actual boot loader .</p>
<p>Click here If you want to <a href="http://googlethem.com/formatting-and…k-command-lineformatting-and-reverting-a-usb-thumbdrive-back-to-original-using-linux-fdisk-command-line/">linux disk backup dd.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://googlethem.com/linux-backup-mbr-master-boot-record/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Formatting a USB thumbdrive back to original using Linux fdisk command line</title>
		<link>http://googlethem.com/formatting-and-reverting-a-usb-thumbdrive-back-to-original-using-linux-fdisk-command-line/</link>
		<comments>http://googlethem.com/formatting-and-reverting-a-usb-thumbdrive-back-to-original-using-linux-fdisk-command-line/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 15:06:31 +0000</pubDate>
		<dc:creator>GoogleThem</dc:creator>
				<category><![CDATA[Linux tips and tricks]]></category>

		<guid isPermaLink="false">http://googlethem.com/?p=165</guid>
		<description><![CDATA[If you like Linux command line tools, fdisk is a good one for partitioning and formatting USB memory sticks, aks thumbdrives. This works for windows formatted thumbdrives as well. WARNING: This process will delete any information that is currently stored on the USB key. Proceed with caution! When you Fdisk thumb drive you are likely [...]]]></description>
			<content:encoded><![CDATA[<p>If you like <strong>Linux command line</strong> tools, fdisk is a good one for <strong>partitioning and formatting USB memory sticks</strong>, aks thumbdrives. This works for windows formatted thumbdrives as well.</p>
<p>WARNING: This process will delete any information that is currently stored on the USB key. Proceed with caution! When you <strong>Fdisk thumb drive</strong> you are likely to delete the entire USB thumb drive. You are in effect <strong>&#8220;formatting usb memory sticks&#8221;.</strong></p>
<p><strong>Reverting your USB key</strong> back to it’s original state:</p>
<p>A.) First we need to delete the old partitions that remain on the USB key.</p>
<p>1. Open a terminal and type sudo su<br />
 2. Type fdisk -l and note your USB drive letter.<br />
 3. Type fdisk /dev/sdX (replacing X with your drive letter)<br />
 4. Type d to proceed to delete a partition<br />
 5. Type 1 to select the 1st partition and press enter<br />
 6. Type d to proceed to delete another partition (fdisk should automatically select the second partition)</p>
<p>B.) Next we need <strong>to create the new partition.</strong></p>
<p>1. Type n to make a new partition<br />
 2. Type p to make this partition primary and press enter<br />
 3. Type 1 to make this the first partition and then press enter<br />
 4. Press enter to accept the default first cylinder<br />
 5. Press enter again to accept the default last cylinder<br />
 6. Type w to write the new partition information to the USB key<br />
 7. Type umount /dev/sdX (replacing X with your drive letter)</p>
<p>C.) Lastly we need to <strong>create the fat filesystem.</strong><br />
 For FAT16!<br />
 1. Type mkfs.vfat -F 16 /dev/sdX1 (replacing X with your USB key drive letter)</p>
<p>That’s it, you should now have a <strong>restored USB thumb drive</strong> with a single fat 16 partition that can be read from any computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://googlethem.com/formatting-and-reverting-a-usb-thumbdrive-back-to-original-using-linux-fdisk-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

