<?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>NamHuy &#187; command</title>
	<atom:link href="http://namhuy.org/blog/tag/command/feed/" rel="self" type="application/rss+xml" />
	<link>http://namhuy.org/blog</link>
	<description>Linux tips and tricks</description>
	<lastBuildDate>Fri, 23 Jul 2010 08:41:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>add delete and switch user in ubuntu by command lines</title>
		<link>http://namhuy.org/blog/2008/04/20/add-delete-and-switch-user-in-ubuntu-by-command-lines/</link>
		<comments>http://namhuy.org/blog/2008/04/20/add-delete-and-switch-user-in-ubuntu-by-command-lines/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 19:55:33 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=44</guid>
		<description><![CDATA[First, I want to add a user. So how to do it? + To add user: sudo adduser &#60;username&#62; to add password for your user sudo passwd &#60;username&#62; + How can i switch from one user to another one? In &#8230; <a href="http://namhuy.org/blog/2008/04/20/add-delete-and-switch-user-in-ubuntu-by-command-lines/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>First, I want to add a user. So how to do it?</p>
<p>+ To add user:</p>
<p style="padding-left: 30px;">sudo adduser &lt;username&gt;</p>
<p>to add password for your user</p>
<p style="padding-left: 30px;">sudo passwd &lt;username&gt;</p>
<p>+ How can i switch from one user to another one? In this example, i want to switch from one user to another one.</p>
<p style="padding-left: 30px;">su &lt;username&gt;</p>
<p>and type in your password to login</p>
<p>after that, you will be at a &#8216;$&#8217; prompt. type:</p>
<p style="padding-left: 30px;">bash</p>
<p>to get to a normal prompt.</p>
<p>+ How can I delete a user?</p>
<p style="padding-left: 30px;">sudo userdel &lt;username&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2008/04/20/add-delete-and-switch-user-in-ubuntu-by-command-lines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminal or shell command to shutdown or reboot Ubuntu Linux</title>
		<link>http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/</link>
		<comments>http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 11:48:55 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/</guid>
		<description><![CDATA[So how do you shutdown or reboot Ubuntu Linux from a terminal or a shell prompt? If GUI is working you can always click on a Quit button. If GUI is not working or if you are working remotely over &#8230; <a href="http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So how do you shutdown or reboot Ubuntu Linux from a terminal or a shell prompt? If GUI is working you can always click on a Quit button. If GUI is not working or if you are working remotely over ssh type the following command:</p>
<p><strong><br />
To shutdown / poweroff Ubuntu Linux</strong></p>
<p>Type the command:</p>
<blockquote><p>sudo halt</p></blockquote>
<p>OR</p>
<blockquote><p>sudo shutdown -h now</p></blockquote>
<p>OR</p>
<blockquote><p>sudo shutdown -r now</p></blockquote>
<p>OR</p>
<blockquote><p>sudo init 6</p></blockquote>
<p><strong>To reboot Ubuntu Linux</strong></p>
<p>Type the command:</p>
<blockquote><p>sudo reboot</p></blockquote>
<p>More information can be found about these two commands by typing following commands (man page):</p>
<blockquote><p>man reboot<br />
man shutdown</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
