<?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>My Workday &#187; Linux</title>
	<atom:link href="http://www.goworkday.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goworkday.com</link>
	<description>Let&#039;s talk TECH</description>
	<lastBuildDate>Thu, 02 Feb 2012 18:52: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>Check Ram Speed and Type</title>
		<link>http://www.goworkday.com/2011/02/17/check-ram-speed-and-type/</link>
		<comments>http://www.goworkday.com/2011/02/17/check-ram-speed-and-type/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 17:26:45 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=307</guid>
		<description><![CDATA[<br/>How do I check RAM speed and type (line DDR or DDR2) without opening my computer? I need to purchase RAM and I need to know the exact speed and type installed. How do I find out ram information from a shell prompt? $ sudo dmidecode --type 17 dmidecode is a tool for dumping a [...]]]></description>
			<content:encoded><![CDATA[<br/><p>How do I check RAM speed and type (line DDR or DDR2) without opening my computer? I need to purchase RAM and I need to know the exact speed and type installed. How do I find out ram information from a shell prompt?<br />
<code><br />
$ sudo dmidecode --type 17<br />
</code></p>
<p> <strong>dmidecode</strong> is a tool for dumping a computer’s DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system’s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. Thanks to this table, you can retrieve this information without having to  probe  for  the  actual hardware.  While this is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2011/02/17/check-ram-speed-and-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find the Biggest CPU Hog</title>
		<link>http://www.goworkday.com/2009/03/27/find-the-biggest-cpu-hog/</link>
		<comments>http://www.goworkday.com/2009/03/27/find-the-biggest-cpu-hog/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 04:36:34 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[ps]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=103</guid>
		<description><![CDATA[<br/>Is a certain process running your CPU right into the ground? How do you find said process without picking your way through the ps aux results? With this command: ps -e -o pcpu,cpu,nice,state,cputime,args --sort pcpu &#124; sed '/^ 0.0 /d' &#8230;at which point you can kill it with sudo kill -9.]]></description>
			<content:encoded><![CDATA[<br/><p>Is a certain process running your CPU right into the ground? How do you find said process without picking your way through the ps aux results? With this command:</p>
<p><code>ps -e -o pcpu,cpu,nice,state,cputime,args --sort pcpu | sed '/^ 0.0 /d'</code></p>
<p>&#8230;at which point you can kill it with sudo kill -9.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/03/27/find-the-biggest-cpu-hog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start MySQL with New Binaries and Other Misc Things</title>
		<link>http://www.goworkday.com/2009/02/28/start-mysql-with-new-binaries/</link>
		<comments>http://www.goworkday.com/2009/02/28/start-mysql-with-new-binaries/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 00:42:25 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Upgrade MySQL]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=92</guid>
		<description><![CDATA[<br/>?View Code BASH1 2 ./mysqld_safe --user=mysql --basedir=/usr/local/mysql-5.0.67-linux-x86_64-icc-glibc23 --ledir=/usr/local/mysql-5.0.67-linux-x86_64-icc-glibc23/bin --mysqld=mysqld ?View Code BASH1 2 ./mysqladmin ext -u root -p -ri60 ./mysqladmin ext -u root -p -ri60 &#124; grep tmp]]></description>
			<content:encoded><![CDATA[<br/>
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code3'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p923"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p92code3"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>mysqld_safe <span style="color: #660033;">--user</span>=mysql <span style="color: #660033;">--basedir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql-5.0.67-linux-x86_64-icc-glibc23
<span style="color: #660033;">--ledir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql-5.0.67-linux-x86_64-icc-glibc23<span style="color: #000000; font-weight: bold;">/</span>bin <span style="color: #660033;">--mysqld</span>=mysqld</pre></td></tr></table></div>


<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code4'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p924"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p92code4"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>mysqladmin ext <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span> <span style="color: #660033;">-ri60</span>
.<span style="color: #000000; font-weight: bold;">/</span>mysqladmin ext <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span> <span style="color: #660033;">-ri60</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> tmp</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/02/28/start-mysql-with-new-binaries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Procedure to add a swap file</title>
		<link>http://www.goworkday.com/2009/02/03/procedure-to-add-a-swap-file/</link>
		<comments>http://www.goworkday.com/2009/02/03/procedure-to-add-a-swap-file/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 22:34:56 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[swap]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=75</guid>
		<description><![CDATA[<br/>Procedure to add a swap file You need to use dd command to create swapfile. Next you need to use mkswap command to set up a Linux swap area on a device or in a file. a) Login as the root user b) Type following command to create 512MB swap file (1024 * 512MB = [...]]]></description>
			<content:encoded><![CDATA[<br/><h3>Procedure to add a swap file</h3>
<p>You need to use dd command to create swapfile. Next you need to use mkswap command to set up a Linux swap area on a device or in a file.</p>
<p>a) Login as the root user</p>
<p>b) Type following command to create 512MB swap file (1024 * 512MB =  524288 block size):</p>
<p><code># dd if=/dev/zero of=/swapfile1 bs=1024 count=524288</code></p>
<p>c) Set up a Linux swap area:</p>
<p><code># mkswap /swapfile1</code></p>
<p>d) Activate /swapfile1 swap space immediately:</p>
<p><code># swapon /swapfile1</code></p>
<p>e) To activate /swapfile1 after Linux system reboot, add entry to /etc/fstab file. Open this file using text editor such as vi:</p>
<p><code># vi /etc/fstab</code></p>
<p>Append following line:</p>
<p><code>/swapfile1    swap    swap   defaults 0 0</code></p>
<p>So next time Linux comes up after reboot, it enables the new swap file for you automatically.</p>
<p>g) How do I verify swap is activated or not?</p>
<p>Simply use free command:</p>
<p><code>$ free -m</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/02/03/procedure-to-add-a-swap-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to copy data in VI editor</title>
		<link>http://www.goworkday.com/2009/01/20/how-to-copy-data-in-vi-editor/</link>
		<comments>http://www.goworkday.com/2009/01/20/how-to-copy-data-in-vi-editor/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 01:03:48 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=62</guid>
		<description><![CDATA[<br/>vi first edit source file then move your cursor to start of selection ma mark current position with letter a then move your cursor to end of selection y'a yank to buffer x from current position to mark a :e other edit target file move cursor to where you want the data p put from [...]]]></description>
			<content:encoded><![CDATA[<br/><pre class="alt2" style="border: 1px inset; margin: 0px; padding: 4px; overflow: auto;">vi first  <span style="color: green;">edit source file</span>
<span style="color: teal;">then move your cursor to start of selection</span>
ma       <span style="color: green;">mark current position with letter a</span>
<span style="color: teal;">then move your cursor to end of selection</span>
y'a     <span style="color: green;">yank to buffer x from current position to mark a</span>
:e other  <span style="color: green;">edit target file</span>
<span style="color: teal;">move cursor to where you want the data</span>
p       <span style="color: green;">put from buffer x</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/01/20/how-to-copy-data-in-vi-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copying a block of text from one file to another in Vi</title>
		<link>http://www.goworkday.com/2008/12/29/copying-a-block-of-text-from-one-file-to-another-in-vi/</link>
		<comments>http://www.goworkday.com/2008/12/29/copying-a-block-of-text-from-one-file-to-another-in-vi/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 18:52:47 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=55</guid>
		<description><![CDATA[<br/>To copy a block of text between files execute the commands: Command Explaination 1. Edit the file containing the text you want to copy. 2. Go to the top line to be copied. 3. ma Mark this line as mark &#8220;a&#8221;. 4. Go to the bottom line to be copied 5. y'a Yank (y) the [...]]]></description>
			<content:encoded><![CDATA[<br/><p>To copy a block of text between files execute the commands:</p>
<table border="3">
<tbody>
<tr valign="top">
<td colspan="2">Command</td>
<td>Explaination</td>
</tr>
<tr valign="top">
<td>1.</td>
<td></td>
<td>Edit the file containing the text you want to copy.</td>
</tr>
<tr valign="top">
<td>2.</td>
<td></td>
<td>Go to the top line to be copied.</td>
</tr>
<tr valign="top">
<td>3.</td>
<td><tt><span style="text-decoration: underline;">ma</span></tt></td>
<td>Mark this line as mark &#8220;a&#8221;.</td>
</tr>
<tr valign="top">
<td>4.</td>
<td></td>
<td>Go to the bottom line to be copied</td>
</tr>
<tr valign="top">
<td>5.</td>
<td><tt><span style="text-decoration: underline;">y'a</span></tt></td>
<td>Yank (<tt><span style="text-decoration: underline;">y</span></tt>) the text from the current 	cursor location to the mark &#8220;a&#8221; (<tt><span style="text-decoration: underline;">'a</span></tt>)</td>
</tr>
<tr valign="top">
<td>6.</td>
<td><tt><span style="text-decoration: underline;">:split</span> </tt><em>second-file</em></td>
<td>Open another window containing the second file. 	(This the file in which the text is to be inserted.)</td>
</tr>
<tr valign="top">
<td>7.</td>
<td></td>
<td>Go to the line where the insert is to occur.  	The text will be place after this line.</td>
</tr>
<tr valign="top">
<td>8.</td>
<td><tt><span style="text-decoration: underline;">p</span></tt></td>
<td>Put the text after the cursor.</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2008/12/29/copying-a-block-of-text-from-one-file-to-another-in-vi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>strace</title>
		<link>http://www.goworkday.com/2008/10/23/strace/</link>
		<comments>http://www.goworkday.com/2008/10/23/strace/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 23:11:18 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[strace]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=45</guid>
		<description><![CDATA[<br/>strace -q -f -c -p strace -f verbose=all -e write=all -o /tmp/strace.log -p [pid] strace -T -t -q -f -e trace=file,open,close,read -o /tmp/prod.strace.log -p &#60;oms or ui pid&#62; -f traces all child processes as they are created byt he currently traced process as a result of the fork() system call. -e is a qualifying expression [...]]]></description>
			<content:encoded><![CDATA[<br/><p>strace -q -f -c -p
<pid>
<p>strace -f verbose=all -e write=all -o /tmp/strace.log -p [pid]</p>
<p>strace -T -t -q -f -e trace=file,open,close,read -o /tmp/prod.strace.log -p &lt;oms or ui pid&gt;</p>
<p>-f traces all child processes as they are created byt he currently traced process as a result of the fork() system call.</p>
<p>-e is a qualifying expression which modifies which events to trace or how to race them</p>
<p>verbose=all dereferences structures for all system calls</p>
<p>write=all performs a full hexadecimal and ASCII dump of all the data written to all file descriptors</p>
<p>-o output file</p>
<p>-p process id to trace</p>
<p>Replace -p [pid] with [command] to trace a specific command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2008/10/23/strace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drop Caches</title>
		<link>http://www.goworkday.com/2008/10/21/drop-caches/</link>
		<comments>http://www.goworkday.com/2008/10/21/drop-caches/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 17:51:40 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Drop Caches]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=43</guid>
		<description><![CDATA[<br/>Kernels 2.6.16 and newer provide a mechanism to have the kernel drop the page cache and/or inode and dentry caches on command, which can help free up a lot of memory. Now you can throw away that script that allocated a ton of memory just to get rid of the cache&#8230; To use /proc/sys/vm/drop_caches, just [...]]]></description>
			<content:encoded><![CDATA[<br/><p>Kernels 2.6.16 and newer provide a mechanism to have the kernel drop the page cache and/or inode and dentry caches on command, which can help free up a lot of memory. Now you can throw away that script that allocated a ton of memory just to get rid of the cache&#8230;</p>
<p>To use /proc/sys/vm/drop_caches, just echo a number to it.</p>
<p>To free pagecache:</p>
<p># echo 1 > /proc/sys/vm/drop_caches</p>
<p>To free dentries and inodes:</p>
<p># echo 2 > /proc/sys/vm/drop_caches</p>
<p>To free pagecache, dentries and inodes:</p>
<p>echo 3 > /proc/sys/vm/drop_caches</p>
<p>As this is a non-destructive operation and dirty objects are not freeable, the user should run &#8220;sync&#8221; first! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2008/10/21/drop-caches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>All about tmpfs</title>
		<link>http://www.goworkday.com/2008/10/17/all-about-tmpfs/</link>
		<comments>http://www.goworkday.com/2008/10/17/all-about-tmpfs/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 21:48:10 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tmpfs]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=40</guid>
		<description><![CDATA[<br/>tmpfs is supported by the Linux kernel from version 2.4 and up. tmpfs (previously known as shmfs) distinguishes itself from the Linux ramdisk device by allocating memory dynamically and by allowing less-used pages to be moved onto swap space. RAMFS, in contrast, does not make use of virtual memory (which can be an advantage or [...]]]></description>
			<content:encoded><![CDATA[<br/><p>tmpfs is supported by the Linux kernel from version 2.4 and up. tmpfs (previously known as shmfs) distinguishes itself from the Linux ramdisk device by allocating memory dynamically and by allowing less-used pages to be moved onto swap space. RAMFS, in contrast, does not make use of virtual memory (which can be an advantage or disadvantage). In addition, MFS and some older versions of ramfs did not grow and shrink dynamically and instead used a fixed amount of memory at all times.</p>
<p>Usage of tmpfs for example is &#8220;mount -t tmpfs -o size=1G,nr_inodes=10k,mode=0700 tmpfs /space&#8221; which will allow up to 1 GiB in RAM/swap with 10240 inodes and only accessible by the owner of the directory /space. The filesystem&#8217;s maximum size can also be changed on-the-fly, like &#8220;mount -o remount,size=2G /space&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2008/10/17/all-about-tmpfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are BogoMips?</title>
		<link>http://www.goworkday.com/2008/08/29/what-are-bogomips/</link>
		<comments>http://www.goworkday.com/2008/08/29/what-are-bogomips/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 00:26:50 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[BogoMips]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=19</guid>
		<description><![CDATA[<br/>MIPS is short for Millions of Instructions Per Second. It is a measure for the computation speed of a program. Like most such measures, it is more often abused than used properly (it is very difficult to justly compare MIPS for different kinds of computers). BogoMips are Linus&#8217;s own invention. The linux kernel version 0.99.11 [...]]]></description>
			<content:encoded><![CDATA[<br/><blockquote><p>MIPS is short for Millions of Instructions Per Second. It is a measure for the computation speed of a program. Like most such measures, it is more often abused than used properly (it is very difficult to justly compare MIPS for different kinds of computers).</p></blockquote>
<blockquote><p>BogoMips are Linus&#8217;s own invention. The linux kernel version 0.99.11 (dated 11 July 1993) needed a timing loop (the time is too short and/or needs to be too exact for a non-busy-loop method of waiting), which must be calibrated to the processor speed of the machine. Hence, the kernel measures at boot time how fast a certain kind of busy loop runs on a computer. &#8220;Bogo&#8221; comes from &#8220;bogus&#8221;, i.e, something which is a fake. Hence, the BogoMips value gives some indication of the processor speed, but it is way too unscientific to be called anything but BogoMips.</p></blockquote>
<blockquote><p>
The reasons (there are two) it is printed during boot-up is that a) it is slightly useful for debugging and for checking that the computers caches and turbo button work, and b) Linus loves to chuckle when he sees confused people on the news.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2008/08/29/what-are-bogomips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

