<?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>Linux 101 Hacks &#187; 05. Linux Prompts</title>
	<atom:link href="http://linux.101hacks.com/category/linux-prompts/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux.101hacks.com</link>
	<description>Free eBook to Build a Strong Foundation in UNIX / Linux</description>
	<lastBuildDate>Fri, 09 Dec 2011 06:07:51 +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>Hack 33. PROMPT_COMMAND</title>
		<link>http://linux.101hacks.com/linux-prompts/prompt_command/</link>
		<comments>http://linux.101hacks.com/linux-prompts/prompt_command/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 15:49:13 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[05. Linux Prompts]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=147</guid>
		<description><![CDATA[Bash shell executes the content of the PROMPT_COMMAND just before displaying the PS1 variable. ramesh@dev-db ~> export PROMPT_COMMAND="date +%H:%M:%S" 22:08:42 ramesh@dev-db ~> [Note: This displays the PROMPT_COMMAND and PS1 output on different lines] If you want to display the value of PROMPT_COMMAND in the same line as the PS1, use the echo -n as shown [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/linux-prompts/prompt_command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack 32. PS4 &#8211; Used by “set -x” to prefix tracing output</title>
		<link>http://linux.101hacks.com/linux-prompts/ps4-prompt/</link>
		<comments>http://linux.101hacks.com/linux-prompts/ps4-prompt/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 15:47:21 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[05. Linux Prompts]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=141</guid>
		<description><![CDATA[The PS4 shell variable defines the prompt that gets displayed, when you execute a shell script in debug mode as shown below. Shell script and output WITHOUT PS4: ramesh@dev-db ~&#62; cat ps4.sh set -x echo "PS4 demo script" ls -l /etc/ &#124; wc -l du -sh ~ ramesh@dev-db ~&#62; ./ps4.sh ++ echo 'PS4 demo script' [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/linux-prompts/ps4-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack 31. PS3 &#8211; Prompt used by “select” inside shell script</title>
		<link>http://linux.101hacks.com/linux-prompts/ps3-prompt/</link>
		<comments>http://linux.101hacks.com/linux-prompts/ps3-prompt/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 15:43:58 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[05. Linux Prompts]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=136</guid>
		<description><![CDATA[You can define a custom prompt for the select loop inside a shell script, using the PS3 environment variable, as explained below. Shell script and output WITHOUT PS3: ramesh@dev-db ~> cat ps3.sh select i in mon tue wed exit do case $i in mon) echo "Monday";; tue) echo "Tuesday";; wed) echo "Wednesday";; exit) exit;; esac [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/linux-prompts/ps3-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack 30. PS2 &#8211; Continuation Interactive Prompt</title>
		<link>http://linux.101hacks.com/linux-prompts/ps2-prompt/</link>
		<comments>http://linux.101hacks.com/linux-prompts/ps2-prompt/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 15:42:33 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[05. Linux Prompts]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=133</guid>
		<description><![CDATA[A very long command can be broken down to multiple lines by giving \ at the end of the line. The default interactive prompt for a multi-line command is “> “. Let us change this default behavior to display “continue->” by using PS2 environment variable as shown below. ramesh@dev-db ~> myisamchk --silent --force --fast --update-state [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/linux-prompts/ps2-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack 29. PS1 &#8211; Default Interaction Prompt</title>
		<link>http://linux.101hacks.com/linux-prompts/ps1-prompt/</link>
		<comments>http://linux.101hacks.com/linux-prompts/ps1-prompt/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 01:58:59 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[05. Linux Prompts]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=129</guid>
		<description><![CDATA[The default interactive prompt on your Linux can be modified as shown below to something useful and informative. In the following example, the default PS1 was “\s-\v\$”, which displays the shell name and the version number. Let us change this default behavior to display the username, hostname and current working directory name as shown below. [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/linux-prompts/ps1-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.101hacks.com

Served from: linux.101hacks.com @ 2012-02-04 04:06:09 -->
