<?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>Walker News &#187; OS</title>
	<atom:link href="http://www.walkernews.net/category/software/operating-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.walkernews.net</link>
	<description>A capsule of walker's experience in life...</description>
	<lastBuildDate>Sun, 29 Jan 2012 16:29:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How To Resize /dev/shm Filesystem In Linux?</title>
		<link>http://www.walkernews.net/2010/05/04/how-to-resize-devshm-filesystem-in-linux/</link>
		<comments>http://www.walkernews.net/2010/05/04/how-to-resize-devshm-filesystem-in-linux/#comments</comments>
		<pubDate>Mon, 03 May 2010 17:28:53 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=4475</guid>
		<description><![CDATA[Trick to increase or to reduce the size of /dev/shm in Linux.]]></description>
			<content:encoded><![CDATA[By default installation, RHEL and most Linux distributions mount tmpfs (a RAM-based temporarily filesystem) to /dev/shm directory and this temporarily filesystem size is always set to be half of the installed memory.<br />
<span id="more-4475"></span><br />
If that default size is not something expected, you can increase or reduce the /dev/shm filesystem size at wish.<br />
<br />To be even extreme, you may drop or disable this temporarily RAM-based filesystem entirely, to prevent it from auto-mount during system boots up, if none of the application in that Linux server relying on shared memory function or explicitly using tmpfs (as a quick-and-dirty trick to improve execution performance).<br />
<br /><span class="subhead2">To increase or decrease /dev/shm filesystem size</span><br />
<br />1) Open /etc/fstab with vi or any text editor of your choice,<br />
<br />2) Locate the line of /dev/shm and use the tmpfs size option to specify your expected size,<br />
<br />e.g. 512MB:<br />
<pre>
tmpfs      /dev/shm      tmpfs   defaults,<span style="color:#F00;font-weight:bold;">size=512m</span>   0   0
</pre>
<br />e.g. 2GB:<br />
<pre>
tmpfs      /dev/shm      tmpfs   defaults,<span style="color:#F00;font-weight:bold;">size=2g</span>   0   0
</pre>
<br />The /etc/fstab content format is documented in <code>man fstab</code> and the tmpfs filesystem options can be found in <code>man mount</code><br />
<br />3) To make change effective immediately, run this mount command to remount the /dev/shm filesystem:<br />
<pre>
mount -o remount /dev/shm
</pre>
<br /><span class="subhead2">To disable the /dev/shm or tmpfs filesystem</span><br />
<blockquote>
Actually, Linux allocates the memory for this tmpfs on demand basis, up to the maximum size that shown in <code>df -h</code> command output. If none of the application is using the /dev/shm, this tmpfs in fact does not consume any memory space. So, why have to disable it?
</blockquote>
<br />To disable /dev/shm immediately once only (but enable it on subsequent reboots), just execute the umount command:<br />
<pre>
umount /dev/shm
</pre>
<br />To prevent tmpfs from auto-mount each time the Linux boots up, just remark or delete that line from /etc/fstab.<br />
<ul class="related_post"><li><a href="http://www.walkernews.net/2011/06/19/how-to-setup-vpn-server-using-pptpd-on-rhel/" title="How To Setup VPN Server Using pptpd On RHEL?">How To Setup VPN Server Using pptpd On RHEL?</a></li><li><a href="http://www.walkernews.net/2011/06/05/how-to-do-interactive-search-and-replace-using-vi-editor/" title="How To Do Interactive Search And Replace Using Vi Editor?">How To Do Interactive Search And Replace Using Vi Editor?</a></li><li><a href="http://www.walkernews.net/2011/05/12/how-to-configure-vnc-server-to-use-gnome-desktop-on-centos/" title="How To Configure VNC Server To Use GNOME Desktop On CentOS?">How To Configure VNC Server To Use GNOME Desktop On CentOS?</a></li><li><a href="http://www.walkernews.net/2011/05/09/how-to-load-and-remove-linux-usb-mass-storage-driver/" title="How To Load And Remove Linux USB Mass Storage Driver?">How To Load And Remove Linux USB Mass Storage Driver?</a></li><li><a href="http://www.walkernews.net/2011/05/08/how-to-disable-linux-usb-drive/" title="How To Disable Linux USB Drive?">How To Disable Linux USB Drive?</a></li><li><a href="http://www.walkernews.net/2011/05/03/how-to-create-auto-ftp-script-on-linux/" title="How To Create Auto FTP Script On Linux?">How To Create Auto FTP Script On Linux?</a></li><li><a href="http://www.walkernews.net/2011/05/02/how-to-enable-linux-logout-script/" title="How To Enable Linux Logout Script?">How To Enable Linux Logout Script?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2010/05/04/how-to-resize-devshm-filesystem-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Red Hat Enterprise Linux Swap Size Recommendation</title>
		<link>http://www.walkernews.net/2010/05/02/red-hat-enterprise-linux-swap-size-recommendation/</link>
		<comments>http://www.walkernews.net/2010/05/02/red-hat-enterprise-linux-swap-size-recommendation/#comments</comments>
		<pubDate>Sun, 02 May 2010 15:22:34 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=4468</guid>
		<description><![CDATA[How much the size of Linux swap partition should be allocated? ]]></description>
			<content:encoded><![CDATA[Are you looking for the recommended Linux swap partition size for a server with huge amount of RAM installed? Well, I have just stumbled upon one of such recommendation from RHEL documentation while I was actually looking for reference of previous topic.<br />
<span id="more-4468"></span><br />
Some of you, especially the veterans, might know there is this good old formula that suggest swap space size should be at least 1.5 times (some even said 2 times) of the RAM installed.<br />
<br />Nowadays, most of the brand new servers easily come with few tens to hundred gigabytes of RAM installed. Apparently, the required Linux swap file system size will be darn huge if to apply this formula and you wonder is this really needed and justified.<br />
<br />With reference to <a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.5/html/Installation_Guide/ch04s19s04s02.html" target="_blank">RHEL 5.5 installation guide</a>, the new study suggests that the amount of swap space needed by a system is much depends on the memory workload running on that system.<br />
<br />This sound reasonable but not practical, as it is not easy to gauge memory workload before the system is running. Thus, the RHEL engineers suggest their own recommended swap space:<br />
<ul>
<li>Min. 2GB of swap space for system installed with 4GB of RAM or less</li>
<li>Min. 4GB of swap space for system installed with 4GB to 16GB of RAM</li>
<li>Min. 8GB of swap space for system installed with 16GB to 64GB of RAM</li>
<li>Min. 16GB of swap space for system installed with 64GB to 256GB of RAM</li>
<li>Min. 32GB of swap space for system installed with 256GB to 512GB of RAM</li>
</ul>
<br />In addition, the swap space should be spanned across multiple disk drives for the performance&#8217;s sake. <br />
<br />Although the reference is made for RHEL 5.5 running on x86, AMD64, and Intel64 system, I think it is worth for reference or applied with little adjustment if you&#8217;re not working with RHEL. But for CentOS users, you probably know that this reference should works too :-)<br />
<ul class="related_post"><li><a href="http://www.walkernews.net/2009/05/11/how-to-use-putty-generated-rsa-key-to-login-linux-openssh-server/" title="How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?">How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?</a></li><li><a href="http://www.walkernews.net/2009/04/06/how-to-fix-scp-and-ssh-login-prompt-is-very-slow-in-linux/" title="How To Fix: SCP And SSH Login Prompt Is Very Slow In Linux">How To Fix: SCP And SSH Login Prompt Is Very Slow In Linux</a></li><li><a href="http://www.walkernews.net/2009/02/08/using-ibm-db2-monitoring-tool-db2pd-to-document-database-server-profile/" title="Using IBM DB2 Monitoring Tool db2pd To Document Database Server Profile">Using IBM DB2 Monitoring Tool db2pd To Document Database Server Profile</a></li><li><a href="http://www.walkernews.net/2008/07/05/how-to-read-iso-image-file-in-linux/" title="How To Read ISO Image File In Linux">How To Read ISO Image File In Linux</a></li><li><a href="http://www.walkernews.net/2011/09/15/direct-download-windows-8-developer-preview-iso-image-files/" title="Direct Download Windows 8 Developer Preview ISO Image Files">Direct Download Windows 8 Developer Preview ISO Image Files</a></li><li><a href="http://www.walkernews.net/2011/07/17/how-to-receive-earthquake-alert-on-facebook-or-rss-feed-reader/" title="How To Receive Earthquake Alert On Facebook Or RSS Feed Reader?">How To Receive Earthquake Alert On Facebook Or RSS Feed Reader?</a></li><li><a href="http://www.walkernews.net/2011/06/20/use-google-public-dns-to-access-blocked-websites/" title="Use Google Public DNS To Access Blocked Websites">Use Google Public DNS To Access Blocked Websites</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2010/05/02/red-hat-enterprise-linux-swap-size-recommendation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Find The Lost RHEL5 Installation Number?</title>
		<link>http://www.walkernews.net/2010/05/02/how-to-find-the-lost-rhel5-installation-number/</link>
		<comments>http://www.walkernews.net/2010/05/02/how-to-find-the-lost-rhel5-installation-number/#comments</comments>
		<pubDate>Sun, 02 May 2010 10:51:18 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=4461</guid>
		<description><![CDATA[You may able to find the installation number from Red Hat Enterprise Linux 5 system itself if you lost it for whatever reasons.]]></description>
			<content:encoded><![CDATA[Let&#8217;s say a brand new Dell server preinstalled RHEL 5.5 with a valid subscription number (a.k.a. installation number or registration number) has just been delivered to SA team.<br />
<span id="more-4461"></span><br />
Then, the developers (users of that new machine) require Red Hat Enterprise Linux to be reinstalled (for whatever reasons).<br />
<br />You, as one of the Linux system administrator, found out that the RHEL 5 installation number is missing or misplaced at somewhere. Oh no, God knows they (the developers, and maybe your teammate) will have all fingers pointing to you.<br />
<br /><span class="subhead2">The trick to recover the lost RHEL installation number</span><br />
<br />This trick MAY or may NOT work. Since this DELL server is known to have preinstalled RHEL 5.5 with a valid subscription number, the chance to recover RHEL installation number is high:<br />
<br />1) Login to the system as root<br />
<br />2) Change directory to /etc/sysconfig/rhn and uses cat command to display the install-num file. Alternatively, you can just cat the file as this:<br />
<pre>
cat /etc/sysconfig/rhn/install-num
</pre>
<br />According to <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/release-notes/RELEASE-NOTES-ia64-en.html" target="_blank">RHEL 5 Release Notes</a>, the installation number is saved in /etc/sysconfig/rhn/install-num, if entered during RHEL installation. This install-num file is referred by rhn_register when registering with Red Hat Network.<br />
<ul class="related_post"><li><a href="http://www.walkernews.net/2009/05/11/how-to-use-putty-generated-rsa-key-to-login-linux-openssh-server/" title="How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?">How To Use Putty-generated RSA Key To Login Linux OpenSSH Server?</a></li><li><a href="http://www.walkernews.net/2009/04/06/how-to-fix-scp-and-ssh-login-prompt-is-very-slow-in-linux/" title="How To Fix: SCP And SSH Login Prompt Is Very Slow In Linux">How To Fix: SCP And SSH Login Prompt Is Very Slow In Linux</a></li><li><a href="http://www.walkernews.net/2009/03/07/how-to-create-volume-group-and-file-system-with-lvm2-in-linux/" title="How To Create Volume Group And File System With LVM2 In Linux?">How To Create Volume Group And File System With LVM2 In Linux?</a></li><li><a href="http://www.walkernews.net/2009/02/08/using-ibm-db2-monitoring-tool-db2pd-to-document-database-server-profile/" title="Using IBM DB2 Monitoring Tool db2pd To Document Database Server Profile">Using IBM DB2 Monitoring Tool db2pd To Document Database Server Profile</a></li><li><a href="http://www.walkernews.net/2008/07/06/how-to-create-iso-image-of-directory-or-filesystem-in-linux/" title="How To Create An ISO Image Of Directory / Filesystem In Linux">How To Create An ISO Image Of Directory / Filesystem In Linux</a></li><li><a href="http://www.walkernews.net/2008/07/05/how-to-read-iso-image-file-in-linux/" title="How To Read ISO Image File In Linux">How To Read ISO Image File In Linux</a></li><li><a href="http://www.walkernews.net/2008/03/01/excel-trend-line-to-predict-db2-tablespaces-free-page/" title="Excel Trend Line To Predict DB2 Tablespaces Free Page">Excel Trend Line To Predict DB2 Tablespaces Free Page</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2010/05/02/how-to-find-the-lost-rhel5-installation-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Use ps Command To Find Top CPU And Memory Usage Of Processes?</title>
		<link>http://www.walkernews.net/2010/04/14/how-to-use-ps-command-to-find-top-cpu-and-memory-usage-of-processes/</link>
		<comments>http://www.walkernews.net/2010/04/14/how-to-use-ps-command-to-find-top-cpu-and-memory-usage-of-processes/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 17:54:34 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux Command]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=4413</guid>
		<description><![CDATA[Useful tips about how the ps command option switches are used to assist system administrator find out which running processes with top CPU and memory usage.]]></description>
			<content:encoded><![CDATA[The Linux system is slow because of high CPU utilization and memory is running low? Now, how to use the ps command to find out what are the running processes with top CPU and memory usage?<br />
<span id="more-4413"></span><br />
Well, there are no short of command line tools and GUI programs to find these out. But I think the ps command is one of the top 10 Linux commands and thus believe that most of UNIX/Linux users have came across ps command in the first day of UNIX/Linux introduction class.<br />
<br />But, how many users bother to type man ps and vet through the lengthy manual page for the available option switches?<br />
<br /><span class="subhead2">Customize the ps command output for the subject</span><br />
<br />I have tested this in RHEL5 Linux command prompt:<br />
<pre>
ps -eo <em>SFS</em> --sort <em>SFS</em>
</pre>
<br />where the <em>SFS</em> (short for Standard Format Specifiers) can be one or more of the following keywords. Take note that not all of these SFS are available for sorting, e.g. time.<br />
<ul>
<li><code>pid</code> to display the process ID of the process.<br />
&nbsp;</li>
<li><code>start</code> to display the time of command was started.<br />
&nbsp;</li>
<li><code>time</code> is an alias of cputime and is better alternative to bsdtime; to display the cumulative CPU time (user and system) in [dd-]hh:mm:ss format.<br />
&nbsp;</li>
<li><code>rss</code> to display the process&#8217;s Resident Set Size (RSS) in KB. RSS is regarded as non-swapped physical memory taken by a process.<br />
&nbsp;</li>
<li><code>vsz</code> to display virtual memory size of the process in KB, excluding the device mappings.<br />
&nbsp;</li>
<li><code>cmd</code> to display the running command or process and its specified arguments.<br />
&nbsp;</li>
<li><code>comm</code> to display the running command or process but exclude its specified arguments.</li>
</ul>
<br /><span class="subhead2">The ps command example</span><br />
<br />To find out top processes in term of physical memory usage in Linux system, type this:<br />
<pre>
ps -eo pid,rss,comm --sort rss
</pre>
<br />As the standard format specifiers <code>time</code> is not available for sorting, it is a bit troublesome if uses ps command to find top CPU usage of processes. E.g. to find Linux processes that use more than 5 minutes of CPU time: <br />
<pre>
ps -eo pid,time,comm | grep -v 00:0[0-5]
</pre>
<br />Other than the 7 standard format specifiers mentioned above for used with -o option switch of ps command, there are many more (e.g. cputime, bsdtime, etc) covered in <code>man ps</code> that might be interesting and useful to you.<br />
<ul class="related_post"><li><a href="http://www.walkernews.net/2010/02/24/how-to-change-linux-command-prompt-color/" title="How To Change Linux Command Prompt Color?">How To Change Linux Command Prompt Color?</a></li><li><a href="http://www.walkernews.net/2010/02/23/how-to-display-date-and-time-in-linux-history-command-output/" title="How To Display Date And Time In Linux History Command Output?">How To Display Date And Time In Linux History Command Output?</a></li><li><a href="http://www.walkernews.net/2009/03/11/get-linux-ls-command-to-show-file-timestamp-in-detail-of-seconds/" title="Get Linux Ls Command To Show File Timestamp In Detail Of Seconds">Get Linux Ls Command To Show File Timestamp In Detail Of Seconds</a></li><li><a href="http://www.walkernews.net/2009/02/02/using-linux-awk-regular-expression-to-read-big-log-file/" title="Using Linux Awk Regular Expression To Read Big Log File">Using Linux Awk Regular Expression To Read Big Log File</a></li><li><a href="http://www.walkernews.net/2008/12/04/customize-linux-command-prompt-to-differentiate-between-live-and-test-servers/" title="Customize Linux Command Prompt To Differentiate Between Live And Test Servers">Customize Linux Command Prompt To Differentiate Between Live And Test Servers</a></li><li><a href="http://www.walkernews.net/2008/08/30/gnu-date-generates-consistent-unix-epoch-time-between-time-zones/" title="GNU Date Generates Consistent UNIX Epoch Time Between Time Zones">GNU Date Generates Consistent UNIX Epoch Time Between Time Zones</a></li><li><a href="http://www.walkernews.net/2008/07/06/how-to-create-iso-image-of-directory-or-filesystem-in-linux/" title="How To Create An ISO Image Of Directory / Filesystem In Linux">How To Create An ISO Image Of Directory / Filesystem In Linux</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2010/04/14/how-to-use-ps-command-to-find-top-cpu-and-memory-usage-of-processes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To Change Linux Command Prompt Color?</title>
		<link>http://www.walkernews.net/2010/02/24/how-to-change-linux-command-prompt-color/</link>
		<comments>http://www.walkernews.net/2010/02/24/how-to-change-linux-command-prompt-color/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 17:09:06 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux Command]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=4123</guid>
		<description><![CDATA[Can you customize the Linux Command Prompt message and color for different users? Yes, why not.]]></description>
			<content:encoded><![CDATA[The trick to customize Linux command prompt color and message is kinda useful for system administrator or developer who has access to live and testing servers. The difference of Linux prompt color and message between production server and staging server could alert users which system they are working on.<br />
<span id="more-4123"></span><br />
<span class="subhead2">The tips to customize Linux command prompt color</span><br />
<br /><img src="http://www.walkernews.net/wp-content/uploads/2010/02/Linux-Command-Prompt-Color.gif" alt="The color chart of IBM is useful for system administrator to easily customize the Linux system command prompt color with valid color code." title="The color chart of IBM is useful for system administrator to easily customize the Linux system command prompt color with valid color code." width="486" height="335" /><br />
<br />With reference to <a href="http://www.ibm.com/developerworks/linux/library/l-tip-prompt/" target="_blank" rel="bookmark">IBM Tip: Prompt magic</a> and the nice color chart, I have applied the following Linux system prompt customization to /etc/profile on all Linux production servers (hopefully someone who do remote access to any one of these live systems will be vividly alerted that this is not a staging or testing server):<br />
<pre>
export PS1="\[[\e[<span style="color:#00F;font-weight:bold;">1</span>;<span style="color:#F00;font-weight:bold;">33</span>m\]\u@\[\e[<span style="color:#00F;font-weight:bold;">1</span>;<span style="color:#F00;font-weight:bold;">36;41</span>m\]\H\[\e[0m\] \W] "
</pre>
<br />If you are not happy with the Linux system prompt color I choose, just change the number in red to other color code, with reference to the color chart above, where 30-37 is foreground color code (text color) and 40-47 is background color code. <br />
<br />The number in blue can be either 0 or 1, where 0 means to reset the Linux system prompt settings to default value (e.g. foreground, background, and boldness) and 1 means to print text with bold font type.<br />
<ul class="related_post"><li><a href="http://www.walkernews.net/2010/04/14/how-to-use-ps-command-to-find-top-cpu-and-memory-usage-of-processes/" title="How To Use ps Command To Find Top CPU And Memory Usage Of Processes?">How To Use ps Command To Find Top CPU And Memory Usage Of Processes?</a></li><li><a href="http://www.walkernews.net/2010/02/23/how-to-display-date-and-time-in-linux-history-command-output/" title="How To Display Date And Time In Linux History Command Output?">How To Display Date And Time In Linux History Command Output?</a></li><li><a href="http://www.walkernews.net/2009/03/11/get-linux-ls-command-to-show-file-timestamp-in-detail-of-seconds/" title="Get Linux Ls Command To Show File Timestamp In Detail Of Seconds">Get Linux Ls Command To Show File Timestamp In Detail Of Seconds</a></li><li><a href="http://www.walkernews.net/2009/02/02/using-linux-awk-regular-expression-to-read-big-log-file/" title="Using Linux Awk Regular Expression To Read Big Log File">Using Linux Awk Regular Expression To Read Big Log File</a></li><li><a href="http://www.walkernews.net/2008/12/04/customize-linux-command-prompt-to-differentiate-between-live-and-test-servers/" title="Customize Linux Command Prompt To Differentiate Between Live And Test Servers">Customize Linux Command Prompt To Differentiate Between Live And Test Servers</a></li><li><a href="http://www.walkernews.net/2008/08/30/gnu-date-generates-consistent-unix-epoch-time-between-time-zones/" title="GNU Date Generates Consistent UNIX Epoch Time Between Time Zones">GNU Date Generates Consistent UNIX Epoch Time Between Time Zones</a></li><li><a href="http://www.walkernews.net/2008/07/06/how-to-create-iso-image-of-directory-or-filesystem-in-linux/" title="How To Create An ISO Image Of Directory / Filesystem In Linux">How To Create An ISO Image Of Directory / Filesystem In Linux</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2010/02/24/how-to-change-linux-command-prompt-color/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Display Date And Time In Linux History Command Output?</title>
		<link>http://www.walkernews.net/2010/02/23/how-to-display-date-and-time-in-linux-history-command-output/</link>
		<comments>http://www.walkernews.net/2010/02/23/how-to-display-date-and-time-in-linux-history-command-output/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 13:44:12 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux Command]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=4116</guid>
		<description><![CDATA[The tips to display timestamp in Linux history command output.]]></description>
			<content:encoded><![CDATA[There is a trick to display timestamp in Linux history command output. With this feature turned on, one can easily understand or review what commands have been executed, on which date at what time, in the Linux system in question.<br />
<span id="more-4116"></span><br />
By default, however, the history command is not enabled to display date and time of each command executed in Red Hat, as with most Linux distributions.<br />
<br />Anyway, it is not complicated to turn on the chronological feature of history command in Linux; even a novice can do it in no time.<br />
<br /><span class="subhead2">The trick to display timestamp in Linux history command output</span><br />
<br /><img src="http://www.walkernews.net/wp-content/uploads/2010/02/Linux-History-Command-With-Timestamp.jpg" alt="Configure shell variable HISTTIMEFORMAT to display timestamp of each executed command in the Linux history command output." title="Configure shell variable HISTTIMEFORMAT to display timestamp of each executed command in the Linux history command output." width="493" height="116" /><br />
<br />To include standard timestamp format in history command output, as shown in above screenshot, all you have to do is login as root to open <span class="fpath">/etc/profile</span> with vi editor (or any Linux text file editor you&#8217;re comfortable with) and add this following line:<br />
<pre>
export HISTTIMEFORMAT='%F %T >> '
</pre>
<br />This single magic command line exports the shell environment variable HISTTIMEFORMAT globally, so that every Linux users will able to see their respective command execution history with date and time information.<br />
<br />If you are not system administrator or not a root user in Linux system but would like to see timestamp in history command output, just add that magic line in your own account profile, for example the <span class="fpath">$HOME/.bash_profile</span> if you&#8217;re using Bash Shell. You should able to see the timestamp in history command output after logout and login (or if you execute <code>export HISTTIMEFORMAT='%F %T >> '</code> in command line).<br />
<br />The value of HISTTIMEFORMAT is a format string used by strftime. If you like to further customize the date/time format in history command output, just run <code>man 3 strftime</code> to get detail of timestamp string format that is valid for HISTTIMEFORMAT.<br />
<ul class="related_post"><li><a href="http://www.walkernews.net/2010/04/14/how-to-use-ps-command-to-find-top-cpu-and-memory-usage-of-processes/" title="How To Use ps Command To Find Top CPU And Memory Usage Of Processes?">How To Use ps Command To Find Top CPU And Memory Usage Of Processes?</a></li><li><a href="http://www.walkernews.net/2010/02/24/how-to-change-linux-command-prompt-color/" title="How To Change Linux Command Prompt Color?">How To Change Linux Command Prompt Color?</a></li><li><a href="http://www.walkernews.net/2009/03/11/get-linux-ls-command-to-show-file-timestamp-in-detail-of-seconds/" title="Get Linux Ls Command To Show File Timestamp In Detail Of Seconds">Get Linux Ls Command To Show File Timestamp In Detail Of Seconds</a></li><li><a href="http://www.walkernews.net/2009/02/02/using-linux-awk-regular-expression-to-read-big-log-file/" title="Using Linux Awk Regular Expression To Read Big Log File">Using Linux Awk Regular Expression To Read Big Log File</a></li><li><a href="http://www.walkernews.net/2008/12/04/customize-linux-command-prompt-to-differentiate-between-live-and-test-servers/" title="Customize Linux Command Prompt To Differentiate Between Live And Test Servers">Customize Linux Command Prompt To Differentiate Between Live And Test Servers</a></li><li><a href="http://www.walkernews.net/2008/08/30/gnu-date-generates-consistent-unix-epoch-time-between-time-zones/" title="GNU Date Generates Consistent UNIX Epoch Time Between Time Zones">GNU Date Generates Consistent UNIX Epoch Time Between Time Zones</a></li><li><a href="http://www.walkernews.net/2008/07/06/how-to-create-iso-image-of-directory-or-filesystem-in-linux/" title="How To Create An ISO Image Of Directory / Filesystem In Linux">How To Create An ISO Image Of Directory / Filesystem In Linux</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2010/02/23/how-to-display-date-and-time-in-linux-history-command-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use TRK To Reset Or Recover Windows 7 Account Password</title>
		<link>http://www.walkernews.net/2010/01/12/use-trk-to-reset-or-recover-windows-7-account-password/</link>
		<comments>http://www.walkernews.net/2010/01/12/use-trk-to-reset-or-recover-windows-7-account-password/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 17:52:01 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[TRK]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=3679</guid>
		<description><![CDATA[You may able to reset or recover a forgotten Windows 7 account password with the Trinity Rescue Kit freeware.]]></description>
			<content:encoded><![CDATA[I have just tested the latest Trinity Rescue Kit 3.3 build 334 and confirm this freeware stills able to recover or reset Windows 7 administrator account password. It works just nice as expected on my Dell Latitude with vanilla Windows 7 Ultimate installation.<br />
<span id="more-3679"></span><br />
In case you forget the Windows admin account password and find no other way to recover it (i.e. no password reset disk, no clue from the password hint, etc), the TRK freeware might able to take you out of this nightmare:<br />
<br /><img src="http://www.walkernews.net/wp-content/uploads/2010/01/TRK-Reset-Windows-7-Password.jpg" alt="The TRK freeware could reset or recover a forgotten Windows account password." title="The TRK freeware could reset or recover a forgotten Windows account password." width="500" height="160" /><br />
<br />1) <a href="http://trinityhome.org/Home/index.php?wpid=5&#038;front_id=12" target="_blank" rel="nofollow">Download TRK ISO file</a> and <a href="http://www.walkernews.net/2009/12/26/windows-7-integrate-md5sum-to-windows-explorer-context-menu/" title="how to verify MD5 checksum of files in Windows 7?" rel="bookmark">verify its MD5 checksum</a> against the published file checksum value before burning the CD image to CD/DVD-ROM.<br />
<blockquote>
For Netbook without optical drive, you have to boot the TRK CD/DVD-ROM from another computer with CD/DVD-ROM drive and refer to the guide of <a href="http://www.walkernews.net/2010/01/10/how-to-create-bootable-trk-usb-flash-drive/" title="How to create a TRK bootable USB flash drive" rel="bookmark">create a bootable TRK USB flash drive</a>.
</blockquote>
<br />2) Update the computer boot drive priority in BIOS setup to make sure it boots up from USB flash drive or CD/DVD-ROM drive, whichever applicable. <br />
<blockquote>
Some BIOS might have a hotkey which if pressed during start-up could allow user to choose a different boot drive as needed. For example, Dell Latitude uses F12, latest AMI BIOS uses F8, etc.
</blockquote>
<br />3) Boots the computer up from Trinity Rescue Kit media. At the (Linux) command prompt, type the following command and press ENTER:<br />
<pre>
winpass -u Administrator
</pre>
<br /><span class="subhead2">CAUTION</span><br />
<ul>
<li>TRK is actually a customized Linux distribution. Thus the command is case-sensitive, i.e. &#8220;a&#8221; is not equal to &#8220;A&#8221;</li>
<li>The Windows 7 real, built-in administrator account is not enabled by default and thus you have to <a href="http://www.walkernews.net/2008/12/07/using-trk-to-enable-vista-sp1-administrator-account-and-reset-windows-password/" title="how to enable the real, built-in Windows 7 administrator account" rel="bookmark">enable this built-in administrator account with TRK</a> first. Otherwise, replace Administrator account name with the user-defined administrator account. If this is called Walker, make sure you replace &#8220;Administrator&#8221; with &#8220;Walker&#8221; and not &#8220;walker&#8221;.</li>
</ul>
<br />4) At the &#8220;user edit menu&#8221; prompt, type <code>1</code> and press ENTER key to effectively reset the said Windows account password to blank (empty) password! Having said that, you will able to log in with this account again to Windows 7, even if you have forgotten the password.<br />
<ul class="related_post"><li><a href="http://www.walkernews.net/2011/06/06/how-to-unlock-windows-account-at-command-prompt/" title="How To Unlock Windows Account At Command Prompt?">How To Unlock Windows Account At Command Prompt?</a></li><li><a href="http://www.walkernews.net/2011/06/04/how-to-create-batch-file-with-endless-for-loop-on-windows-7/" title="How To Create Batch File With Endless For Loop On Windows 7?">How To Create Batch File With Endless For Loop On Windows 7?</a></li><li><a href="http://www.walkernews.net/2011/05/01/how-to-disable-windows-7-user-account-control-feature/" title="How To Disable Windows 7 User Account Control Feature?">How To Disable Windows 7 User Account Control Feature?</a></li><li><a href="http://www.walkernews.net/2011/04/15/how-to-print-windows-version-on-desktop/" title="How To Print Windows Version On Desktop?">How To Print Windows Version On Desktop?</a></li><li><a href="http://www.walkernews.net/2011/04/13/how-to-turn-on-windows-7-black-theme-instantly/" title="How To Turn On Windows 7 Black Theme Instantly?">How To Turn On Windows 7 Black Theme Instantly?</a></li><li><a href="http://www.walkernews.net/2011/04/05/how-to-turn-off-citrix-application-sound-on-windows-7/" title="How To Turn Off Citrix Application Sound On Windows 7?">How To Turn Off Citrix Application Sound On Windows 7?</a></li><li><a href="http://www.walkernews.net/2011/03/26/how-to-make-internet-explorer-opens-citrix-ica-file-automatically/" title="How To Make Internet Explorer Opens Citrix ICA File Automatically?">How To Make Internet Explorer Opens Citrix ICA File Automatically?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2010/01/12/use-trk-to-reset-or-recover-windows-7-account-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

