<?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>OpenPeta &#187; File Management</title>
	<atom:link href="http://openpeta.com/index.php/category/file-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://openpeta.com</link>
	<description>Open Mind ....  Open Source ...</description>
	<lastBuildDate>Wed, 21 Jul 2010 03:20:44 +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>&#039;tail&#039; command</title>
		<link>http://openpeta.com/index.php/2007/10/tail-command/</link>
		<comments>http://openpeta.com/index.php/2007/10/tail-command/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 04:21:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Basic Commands]]></category>
		<category><![CDATA[File Management]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2007/10/12/tail-command/</guid>
		<description><![CDATA[&#8220;tail&#8221; command &#8211; used to Print the last few lines of each FILE to standard output. Syntax : tail [options] filename [Source from Wikipedia]By default, tail will print the last 10 lines of its input to the standard output. With command line options the number of lines printed and the printing units (lines, blocks or [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;tail&#8221; command &#8211; used to Print  the  last few lines of each FILE to standard output.</p>
<p>Syntax :<br /><span style="font-weight: bold; font-style: italic;"> tail [options] filename</span></p>
<p>[Source from Wikipedia]<br />By default, tail will print the last 10 lines of its input to the standard output. With command line options the number of lines printed and the printing units (lines, blocks or bytes) may be changed. The following example shows the last 20 lines of filename:<br /><span style="font-weight: bold; font-style: italic;">tail -n 20 filename</span></p>
<p>This example shows the last 15 bytes of all files starting with filename :<br /><span style="font-weight: bold; font-style: italic;">tail -c 15 filename</span></p>
<p>This example shows all lines of filename from the second line onwards:<br /><span style="font-weight: bold; font-style: italic;">tail -n +2 filename</span></p>
<p>Using an older syntax (still used in Sun Solaris as the -n option is not supported), the last 20 lines and the last 50 bytes of filename can be shown with the following command:<br /><span style="font-weight: bold; font-style: italic;">tail -20 filename</span><br /><span style="font-weight: bold; font-style: italic;">tail -50c filename</span></p>
<p>However this syntax is now obsolete and does not conform with the POSIX 1003.1-2001 standard. Even if still supported in current versions, when used with other options (like -f, see below), these switches could not work at all.</p>
<p><span style="font-weight: bold; font-style: italic;">File monitoring</span></p>
<p>tail has a special command line option -f (follow) that allows a file to be monitored. Instead of displaying the last few lines and exiting, tail displays the lines and then monitors the file. As new lines are added to the file by another process, tail updates the display. This is particularly useful for monitoring log files. The following command will display the last 10 lines of messages and append new lines to the display as new lines are added to messages:</p>
<p><span style="font-weight: bold; font-style: italic;">tail -f /var/adm/messages</span></p>
<p>To interrupt tail while it is monitoring, break-in with CTRL-C. This command can be run &#8220;in the background&#8221; with &amp;, see job control.</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2007/10/tail-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File and Directory Commands</title>
		<link>http://openpeta.com/index.php/2007/10/file-and-directory-commands/</link>
		<comments>http://openpeta.com/index.php/2007/10/file-and-directory-commands/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 06:43:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Basic Commands]]></category>
		<category><![CDATA[File Management]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2007/10/10/file-and-directory-commands/</guid>
		<description><![CDATA[1.mkdir &#8211;make directories or folder# mkdir [dirname]&#8211;> creates specified directory 2.cd &#8211; change directory path# cd [dirname]&#8211;> switches into specified directory# cd .. &#8211;>moves one directory up# cd ../../ &#8212;> moves two directories up (and so on)# cd &#8211;> brings you to highest level of your home directory 3.rm &#8211; delete files and directories# rmdir [...]]]></description>
			<content:encoded><![CDATA[<p>1.mkdir &#8211;make directories or folder<br /># <strong><em>mkdir [dirname]</em></strong>&#8211;> creates specified directory</p>
<p>2.cd &#8211; change directory path<br /># <strong><em>cd [dirname]<dirname></em></strong>&#8211;> switches into specified directory<br /># cd .. &#8211;>moves one directory up<br /># cd ../../ &#8212;> moves two directories up (and so on)<br /># cd &#8211;> brings you to highest level of your home directory</p>
<p>3.rm &#8211; delete files and directories<br /># rmdir &#8211;> removes empty directory<br /># rm &#8211;> removes file name<br /># <strong><em>rm -r</em></strong> &#8211;> removes directory including its content, but asks for confirmation, &#8216;f&#8217; argument turns confirmation off</p>
<p>4.mv &#8211; move or rename the file or directory<br /># <strong><em>mv [name1] [name2]</em></strong> <name1><name2>&#8211;> renames directories or files<br /># mv [name] [dir]&#8211;> moves file/directory as specified in path<br /># <strong><em>rename [oldfilename] [newfilename] [oldfilename]<newfilename>
<oldfilename><newfilename><br /></em></strong><br />5.cp -copy files and directory<br /># <strong><em>cp [file] [path]</em></strong> <file>
<path>&#8211;> copy file/directory as specified in path (-r to include content in directories)</p>
<p>6. <strong><em>pwd</em></strong> &#8211;> present working directory<br />7. <strong><em>ls </em></strong>&#8211;> content of pwd<br />8. ll &#8211;> similar as ls, but provides additional info on files and directories<br />9. ll -a &#8211;> includes hidden files (.name) as well<br />10. <strong><em>ll -R</em></strong> &#8211;> lists subdirectories recursively<br />11 ll -t &#8211;> lists files in chronological order<br />12.<strong><em>dir</em></strong> &#8211; display the directory contents<br />13.<strong><em>stat [filename]<filename>&#8211;></em></strong> provides all attributes of a file</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2007/10/file-and-directory-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Archive Files (like tar.gz)</title>
		<link>http://openpeta.com/index.php/2007/09/creating-archive-files-like-targz/</link>
		<comments>http://openpeta.com/index.php/2007/09/creating-archive-files-like-targz/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 22:20:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[File Management]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2007/09/22/creating-archive-files-like-targz/</guid>
		<description><![CDATA[1. For creating Archive file use tar commandSyntax: tar -cf archivename filenames (seperated with space) Example :VIT:/home/antony# tar -cf model.tar sample.c sample2.c 2. For displaying contents of archive file VIT:/home/antony# tar -tvf model.tar -rw-r&#8211;r&#8211; antony/antony 54 2007-09-22 03:10 sample.c -rw-r&#8211;r&#8211; root/root 0 2007-09-22 03:12 sample2.c 3. For extracting files from archiveVIT:/home/antony# tar -xf model.tar]]></description>
			<content:encoded><![CDATA[<p>1. For creating Archive file  use tar command<br />Syntax:<br /> tar -cf archivename filenames (seperated with space)</p>
<p>Example :<br />VIT:/home/antony# <span style="font-style: italic;">tar -cf model.tar sample.c sample2.c</span></p>
<p>2. For displaying contents of archive file<br />   VIT:/home/antony# <span style="font-style: italic;">tar -tvf model.tar</span><br /> -rw-r&#8211;r&#8211; antony/antony    54 2007-09-22 03:10 sample.c<br /> -rw-r&#8211;r&#8211; root/root         0 2007-09-22 03:12 sample2.c</p>
<p>3. For extracting files from archive<br />VIT:/home/antony# <span style="font-style: italic;">tar -xf model.tar</span></p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2007/09/creating-archive-files-like-targz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
