<?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>Includes news, help, tutorials, programming, tips and how-to guides for Linux, UNIX, and BSD</description>
	<lastBuildDate>Wed, 21 Mar 2012 03:57:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Add a User on Ubuntu Server</title>
		<link>http://namhuy.org/blog/2010/12/22/add-a-user-on-ubuntu-server/</link>
		<comments>http://namhuy.org/blog/2010/12/22/add-a-user-on-ubuntu-server/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 01:15:38 +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[adduser]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[useradd]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=193</guid>
		<description><![CDATA[Ubuntu Server is like any Linux variety, and has full multi-user capabilities, and a common task on any server is adding users. useradd The useradd command will let you add a new user easily from the command line: useradd This &#8230; <a href="http://namhuy.org/blog/2010/12/22/add-a-user-on-ubuntu-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ubuntu Server is like any Linux variety, and has full multi-user capabilities, and a common task on any server is adding users.</p>
<p><strong>useradd</strong></p>
<p>The useradd command will let you add a new user easily from the command line:</p>
<blockquote><p>useradd</p></blockquote>
<p>This command adds the user, but without any extra options your user won’t have a password or a home directory.</p>
<p>You can use the -d option to set the home directory for the user. The -m option will force useradd to create the home directory. We’ll try creating a user account with those options, and then use the passwd command to set the password for the account. You can alternatively set a password using -p on the useradd command, but I prefer to set the password using passwd.</p>
<blockquote><p>sudo useradd -d /home/testuser -m testuser<br />
sudo passwd testuser</p></blockquote>
<p><strong>adduser</strong></p>
<p>The adduser command is even easier than the useradd command, because it prompts you for each piece of information. I find it slightly funny that there are two virtually identically named commands that do the same thing, but that’s linux for you. Here’s the syntax:</p>
<blockquote><p>adduser</p></blockquote>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2010%2F12%2F22%2Fadd-a-user-on-ubuntu-server%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2010/12/22/add-a-user-on-ubuntu-server/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2010/12/22/add-a-user-on-ubuntu-server/"  data-text="Add a User on Ubuntu Server" data-count="horizontal"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2010/12/22/add-a-user-on-ubuntu-server/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2010/12/22/add-a-user-on-ubuntu-server/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/2010/11/03/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux-2/</link>
		<comments>http://namhuy.org/blog/2010/11/03/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux-2/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 23:05:35 +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[command]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shutdown]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=181</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/2010/11/03/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux-2/">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>To shutdown / poweroff Ubuntu Linux<br />
Type the command:<br />
<strong>sudo halt</strong><br />
OR<br />
<strong>sudo shutdown -h now</strong></p>
<p>To reboot Ubuntu Linux<br />
Type the command:<br />
<strong>sudo reboot</strong></p>
<p>More information can be found about these two commands by typing following commands (man page):<br />
<strong>man reboot</strong><br />
<strong>man shutdown</strong></p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2010%2F11%2F03%2Fterminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux-2%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2010/11/03/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux-2/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2010/11/03/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux-2/"  data-text="Terminal or shell command to shutdown or reboot Ubuntu Linux" data-count="horizontal"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2010/11/03/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux-2/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2010/11/03/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2008%2F04%2F20%2Fadd-delete-and-switch-user-in-ubuntu-by-command-lines%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2008/04/20/add-delete-and-switch-user-in-ubuntu-by-command-lines/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2008/04/20/add-delete-and-switch-user-in-ubuntu-by-command-lines/"  data-text="add delete and switch user in ubuntu by command lines" data-count="horizontal"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2008/04/20/add-delete-and-switch-user-in-ubuntu-by-command-lines/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></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>2</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>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2008%2F02%2F09%2Fterminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/"  data-text="Terminal or shell command to shutdown or reboot Ubuntu Linux" data-count="horizontal"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></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>

<!-- Dynamic page generated in 0.330 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-18 06:41:54 -->
<!-- Compression = gzip -->
