<?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 Scribbles &#187; moving directory using linux command</title>
	<atom:link href="http://www.blazecoder.com/tag/moving-directory-using-linux-command/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blazecoder.com</link>
	<description></description>
	<lastBuildDate>Thu, 08 Jul 2010 05:15:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>List of Linux Commands</title>
		<link>http://www.blazecoder.com/linux-command/list-of-linux-commands</link>
		<comments>http://www.blazecoder.com/linux-command/list-of-linux-commands#comments</comments>
		<pubDate>Thu, 12 Nov 2009 12:33:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Command]]></category>
		<category><![CDATA[create directories linux syntax]]></category>
		<category><![CDATA[Linux command syntax]]></category>
		<category><![CDATA[List of Linux Commands]]></category>
		<category><![CDATA[moving directory using linux command]]></category>
		<category><![CDATA[navigate directory using linux command]]></category>
		<category><![CDATA[Navigating files using linux command]]></category>

		<guid isPermaLink="false">http://www.blazecoder.com/?p=117</guid>
		<description><![CDATA[This topic is the continuation of my previous post. I have explained on How To Use PuTTY SSH Windows. Now, this following Linux Commands probably will help you manage and modify files and permission on your Linux Server.
help command &#8211; Display brief info on a bash (shell) build-in command. Just type &#8220;help&#8221;.
Navigating Files, Folders and [...]]]></description>
			<content:encoded><![CDATA[<p>This topic is the continuation of my previous <a href="http://www.blazecoder.com/linux-command/how-to-use-putty-ssh-in-windows">post</a>. I have explained on <a href="http://www.blazecoder.com/linux-command/how-to-use-putty-ssh-in-windows">How To Use PuTTY SSH Windows</a>. Now, this following Linux Commands probably will help you manage and modify files and permission on your Linux Server.</p>
<p>help command &#8211; Display brief info on a bash (shell) build-in command. Just type &#8220;help&#8221;.</p>
<p><strong>Navigating Files, Folders and Directory using Linux</strong></p>
<table border='1'>
<tr>
<td>command</td>
<td>Description</td>
</tr>
<tr>
<td width='90' align='left'>cd -</td>
<td>The cd command allows you to change directories. When you open a terminal, you will be in your home directory.</td>
</tr>
<tr>
<td width='90' align='left'>cd ~/Desktop</td>
<td>To navigate to your desktop directory.</td>
</tr>
<tr>
<td width='90' align='left'>cd /</td>
<td>To navigate into the root directory.</td>
</tr>
<tr>
<td width='90' align='left'>cd ..</td>
<td>To navigate up one directory level.</td>
</tr>
<tr>
<td width='90' align='left'>cd -</td>
<td>To navigate to the previous directory (or back).</td>
</tr>
<tr>
<td width='90' align='left'>cd /var/www</td>
<td>To navigate through multiple levels of directories at once, use cd /var/www,  for example, which take you directly to the /www subdirectory of /var.</td>
</tr>
<tr>
<td width='90' align='left'>pwd</td>
<td>&#8220;Print Working Directory&#8221;. Shows the full path of the current directory.</td>
</tr>
<tr>
<td width='90' align='left'>ls</td>
<td>Lists all the files in the current directory.</td>
</tr>
<tr>
<td width='90' align='left'>ls -al</td>
<td>Lists all files and information.</td>
</tr>
<tr>
<td width='90' align='left'>ls –alR</td>
<td>Lists all files and information in all sub directories</td>
</tr>
<tr>
<td width='90' align='left'>ls *.html</td>
<td>Lists all files ending with .html</td>
</tr>
<tr>
<td width='90' align='left'>ls -d */</td>
<td> Lists all directories within current directory</td>
</tr>
<tr>
<td width='90' align='left'>cd foo</td>
<td>Changes to a new directory, ex. directory name foo.</td>
</tr>
<tr>
<td width='90' align='left'>clear</td>
<td> Clears the screen</td>
</tr>
<tr>
<td width='90' align='left'>vdir</td>
<td>Gives a more detailed listing than the “ls” command</td>
</tr>
</table>
<p><strong>Creating, Moving Directory and File using Linux Commands</strong></p>
<table border='1'>
<tr>
<td width='209' align='left'>Command</td>
<td>Description</td>
</tr>
<tr>
<td width='202' align='left'>mkdir [directory name]</td>
<td>Creates a new directory</td>
</tr>
<tr>
<td width='202' align='left'>mv [old filename] [new filename]</td>
<td> Move/rename a file
</td>
</tr>
</table>
<p><strong>Deleting files and Directory using Linux Command</strong></p>
<p>rm -r  = (recursive remove) Remove files, directories, and their sub directories. Careful with this command as root&#8211;you can easily remove all files on the system with such a command executed on the top of your directory tree, and there is no undelete in Linux (yet). But if you really wanted to do it (reconsider), here is how (as root): rm -rf /*</p>
<table border='1'>
<tr>
<td>command</td>
<td>Description</td>
</tr>
<tr>
<td width='187' align='left'>rm [filename]</td>
<td>Deletes a file</td>
</tr>
<tr>
<td width='187' align='left'>rm *.html</td>
<td>Deletes all files ending in .html</td>
</tr>
<tr>
<td width='187' align='left'>rm -r filename.php filename.txt</td>
<td>Removes filename.php and filename.txt files</td>
</tr>
</table>
<p></p>
<p><strong>Copy Files and Directory using Linux Command</strong></p>
<p>The cp command is used to copy files and directories. The copies become independent of the originals (i.e., a subsequent change in one will not affect the other). When a copy is made of a file or directory, the copy must have a different name than the original if it is to be placed in the same directory as the original. However, the copy can have the same name if it is made in a different directory. </p>
<p>cp&#8217;s basic syntax:<br />
cp [options] name/filename new_filename </p>
<p>cp -r [directory] [new directory]  =   Copies a directory and all files/directories in it.<br />
ex. cp -r foo /home/rolan/foo  &#8211; this will copy foo directory under rolan&#8217;s directory.</p>
<p>cp [filename] [new filename]  =   to copy file in the same directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blazecoder.com/linux-command/list-of-linux-commands/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
