<?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>IT Engineer's Blog, Malaysia Life Tech Blog &#187; Operating System</title>
	<atom:link href="http://www.icalvyn.com/category/operating-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icalvyn.com</link>
	<description>Your Gateway To IT Engineer Knowledge, Life experience on Malaysia Tech Blog</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:04:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Choose Unix [Part 2]</title>
		<link>http://www.icalvyn.com/how-to-choose-unix-part-2/</link>
		<comments>http://www.icalvyn.com/how-to-choose-unix-part-2/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 00:16:11 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2556</guid>
		<description><![CDATA[Last month, I have come across how to choose Unix, with which UNIX to choose, commercial UNIX, and open source UNIX, lets see how the “Brands of commercial UNIX“and “Brands of open source UNIX”. Brands of commercial UNIX Some of the most famous and widely used brands of UNIX include Sun&#8217;s Solaris and Hewlett Packard&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Last month, I have come across <a title="choose unix" href="http://www.icalvyn.com/how-to-choose-unix-part-1/" target="_blank">how to choose Unix</a>, with which UNIX to choose, commercial UNIX, and open source UNIX, lets see how the “Brands of commercial UNIX“and “Brands of open source UNIX”.</p>
<p style="text-align: center;"><img src="http://img42.imageshack.us/img42/317/unixplate.jpg" alt="choose unix" width="525" /></p>
<p><strong>Brands of commercial UNIX</strong><br />
Some of the most famous and widely used brands of UNIX include Sun&#8217;s Solaris and Hewlett Packard&#8217;s HP-UX.</p>
<p>Solaris is a binary-compatible operating system, which means that Sun have gone to some lengths to ensure that one version of their UNIX will run on all of their hardware. Solaris also features integrated Java support, although Java can be downloaded for any UNIX<br />
distribution.</p>
<p>Sun also manufacture UNIX for Intel hardware as well as their own proprietary hardware.<span id="more-2556"></span></p>
<p>By comparison, HP manufacture four different versions of their operating system, each fine tuned for a specific purpose. Hewlett Packard&#8217;s UNIX variants all support both RISC architecture and the new breed of Itanium chips from Intel.</p>
<p>Other commercial UNIX variants include IBM&#8217;s AIX and Silicon Graphics&#8217;s IRIX system.</p>
<p><strong>Brands of open source UNIX</strong><br />
There are an increasingly large number of offshoots of open-source UNIX. However, two names are significant: BSD and Linux. <!--more--></p>
<p>BSD UNIX is one of the oldest forms of UNIX in existence, and pioneered such technologies as the TCP/IP stack and virtual memory. It&#8217;s widely in use across the Internet as a web server.</p>
<p>Linux is a port of the UNIX kernel to i386 (Intel) hardware, and is one of the fastest growing and most widespread UNIXes in use today. In fact, some hardware vendors who traditionally developed proprietary UNIX systems now offer the choice of shipping their<br />
hardware with Linux installed. For example, even though IBM have their own proprietary UNIX, they now offer the option of shipping their xSeries servers with Linux pre-installed.</p>
<p>As a conclusion on choosing Unix, UNIX comes in two main flavors: commercial and open source. The strength of commercial UNIX lies in its support and stability, while open source&#8217;s strength lies in innovation and portability. Well known commercial UNIXes include Sun Solaris and Hewlett Packard&#8217;s HP-UX. Well known open-source UNIXes include BSD and Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/how-to-choose-unix-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Choose Unix [Part 1]</title>
		<link>http://www.icalvyn.com/how-to-choose-unix-part-1/</link>
		<comments>http://www.icalvyn.com/how-to-choose-unix-part-1/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 00:07:51 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2546</guid>
		<description><![CDATA[While the Linux variant of UNIX is fast becoming a desktop operating system, UNIX&#8217;s multiuser capabilities make it ideally suitable in a server role. When tasked as a web or database server, a properly configured UNIX system will provide unparalleled periods of uptime, requiring little service. The structure of UNIX means that in the case [...]]]></description>
			<content:encoded><![CDATA[<p>While the Linux variant of UNIX is fast becoming a desktop operating system, UNIX&#8217;s multiuser capabilities make it ideally suitable in a server role.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img42.imageshack.us/img42/317/unixplate.jpg" alt="choose unix" width="525" /></p>
<p>When tasked as a web or database server, a properly configured UNIX system will provide unparalleled periods of uptime, requiring little service. The structure of UNIX means that in the case of a hardware failure, sections of a data structure can be taken offline, replaced and put online again without shutting down the system. This makes UNIX a good choice for mission critical applications.</p>
<p>UNIX&#8217;s multi-user capabilities make it highly resistant to attack. It&#8217;s designed in such a way that even if a malicious party did gain access to the system, their activities would be restricted to the user account they had access to, leaving them unable to damage critical system resources.<span id="more-2546"></span></p>
<p>For this reason, there are very few viruses that target UNIX systems, and even fewer that pose any real threat. In fact, most UNIX virus scanners, for example, those running on mail servers – do most of their work removing viruses intended for other operating systems, to which they are immune.</p>
<p>UNIX is also long term cost effective; because by design it&#8217;s independent of the hardware it runs on. It will obviously run faster on more powerful hardware, but it does not require powerful hardware to begin with, so existing computers in your network rarely become obsolete.</p>
<p><strong>Which Unix to use</strong><br />
Brand names aside, UNIX comes in two main variants: commercial distributions and open source distributions. Each has it&#8217;s own distinct features and advantages that need to be carefully considered when choosing which product is right for you.</p>
<p><span style="text-decoration: underline;">Commercial UNIX</span><br />
Commercial UNIX has the distinct advantage of having IT vendor&#8217;s support. When something goes wrong in the system, there&#8217;s usually someone you can call that will help you with the problem you&#8217;re having.</p>
<p>Commercial distributions often adhere to established standards, so chances are high that the software you need will run reliably on your system. Commercial UNIX often utilizes proprietary code to ensure that the system is as stable as possible.</p>
<p>Some distributors write commercial UNIX specifically for a particular set of hardware. Examples of this include Sun&#8217;s Solaris for their SPARC range, and IBM&#8217;s AIX for their pSeries. The advantage of this approach is that the software can be highly optimized for<br />
that hardware, giving maximum performance and a greater level of stability.</p>
<p>Using commercial UNIX with proprietary code does mean that the software will be guaranteed scalable, but it also means you may be locked into a particular upgrade path and can only use hardware from one specific company.</p>
<p><span style="text-decoration: underline;">Open Source UNIX</span><br />
Open source UNIX is a hotbed of emerging technology. Because the code is open and available, you can compile UNIX for just about any hardware. It is free, because open source UNIX is distributed under the GNU General Public License (GPL).</p>
<p>The GPL allows you to make any modifications you see fit to the code in order to improve on any system component, provided you make your changes available to the rest of the open source community under the same license, and provide them with the modified source. GPL software has no warranty of any kind.</p>
<p>FreeBSD, a widely used open source UNIX, works a little differently. The bulk of its code is covered by the GPL, but FreeBSD incorporates functionality from several proprietary modules, including some from the original version of BSD. So FreeBSD is covered by the GNU GPL, the BSD copyright, and has restrictions on the redistribution of several proprietary components. Ultimately this makes FreeBSD a bit of a hybrid.<br />
One of the fastest growing UNIX variants is Linux, the UNIX-clone created by Linus Torvalds. It is particularly interesting in that it has been ported to many different platforms, from desktop machines to PDAs and mobile phones. With the arrival of UNIX desktops, such as Gnome and KDE, Linux has started to make inroads in the desktop computing market as well.</p>
<p>You can download open source versions of UNIX, including FreeBSD and Linux, without paying for them. But because of the terms of the GPL, you usually cannot get support for such distributions.</p>
<p>However, because of the wide user base, you can get support for open source UNIXes by turning to the Web, where there is a wealth of documentation and user group expertise to draw from. Alternatively, you can choose to buy commercial support from a company that<br />
specializes in supporting open source UNIX.</p>
<p>Also, the flexibility to compile code for any processor doesn&#8217;t guarantee that the software will be compatible with other hardware in your system, such as the particular brand of graphics card or network hub you have. However, if you search the Internet you will often find that there is a driver project underway by others who have encountered the same difficulty.</p>
<p>After get known on <strong>which UNIX to choose</strong>, <strong>commercial UNIX</strong>, and <strong>open source UNIX</strong>,  will talk about &#8220;<strong>Brands of commercial UNIX</strong>&#8220;, &#8220;<strong>Brands of open source UNIX</strong>&#8221; on How to Choose Unix [Part 2]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/how-to-choose-unix-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu Ebook Collection</title>
		<link>http://www.icalvyn.com/ubuntu-ebook-collection/</link>
		<comments>http://www.icalvyn.com/ubuntu-ebook-collection/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 08:01:07 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2541</guid>
		<description><![CDATA[When I google around some latest Ubuntu OS, found a collection of Ubuntu eBook. For those who can read eBook and fans of Open Source, this series of Ubuntu eBook is a best collection for you. Here the list of eBook List of these ebooks: Addison Wesley &#8211; Moving to Ubuntu Linux (2006) Apress &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>When I google around some latest Ubuntu OS, found a collection of Ubuntu eBook. For those who can read eBook and fans of Open Source, this series of Ubuntu eBook is a best collection for you.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img11.imageshack.us/img11/4500/51275ubuntutiticolor.jpg" alt="" width="525" /></p>
<p>Here the list of eBook<span id="more-2541"></span></p>
<p>List of these ebooks:</p>
<p>Addison Wesley &#8211; Moving to Ubuntu Linux (2006)<br />
Apress &#8211; Beginning Ubuntu Linux 3rd Edition (2008)<br />
Apress &#8211; Beginning Ubuntu Linux 4th Edition (2009)<br />
Apress &#8211; Beginning Ubuntu LTS Server Administration 2nd Edition (2008)<br />
Apress &#8211; Beginning Ubuntu Server Administration, From Novice to Professional (2008)<br />
Apress &#8211; Pro Ubuntu Server Administration (2009)<br />
Apress &#8211; Ubuntu on a Dime, The Path to Low-Cost Computing (2009)<br />
McGraw-Hill &#8211; How to Do Everything Ubuntu (2008)<br />
McGraw-Hill &#8211; Ubuntu Server Administration (2008)<br />
McGraw-Hill &#8211; Ubuntu, The Complete Reference (2008)<br />
No Starch &#8211; Ubuntu for Non-Geeks 2nd Edition (2007)<br />
No Starch &#8211; Ubuntu Linux for Non Geeks (2006)<br />
O&#8217;Reilly &#8211; Learning Debian GNU Linux (1999)<br />
O&#8217;Reilly &#8211; Ubuntu Hacks (2006)<br />
O&#8217;Reilly &#8211; Ubuntu Hacks (2006)<br />
Pragmatic &#8211; Ubuntu Kung Fu (2008)<br />
Prentice Hall &#8211; A Practical Guide to Ubuntu Linux (2007)<br />
Prentice Hall &#8211; The Official Ubuntu Book (2006)<br />
Sams &#8211; Ubuntu 7.10 Linux Unleashed 3rd Edition (2008)<br />
Sams &#8211; Ubuntu Unleashed 2008 Edition (2008)<br />
The Ubuntu Packaging Guide</p>
<p>Thomson Course Technology &#8211; Introducing Ubuntu, Desktop Linux (2008)<br />
Ubuntu Desktop Guide<br />
Ubuntu Pocket Guide and Reference (2009)<br />
Unofficial Ubuntu Starter Guide<br />
Wiley &#8211; Hacking Ubuntu (2007)<br />
Wiley &#8211; Ubuntu Linux Bible (2007)<br />
Wiley &#8211; Ubuntu Linux For Dummies (2007)<br />
Wiley &#8211; Ubuntu Linux Secrets (2009)<br />
Wiley &#8211; Ubuntu Linux Toolbox, 1000+ Commands for Ubuntu and Debian Power Users (2008)</p>
<p>Download Ubuntu Ebook Collection:<br />
hxxp://ho*tfile.com/dl/19291496/7542101/Ubuntu_ebook_collection.part1.rar.html<br />
hxxp://hotfil*e.com/dl/19292673/243a760/Ubuntu_ebook_collection.part2.rar.html<br />
hxxp://hot*file.com/dl/19292847/42ec0cc/Ubuntu_ebook_collection.part3.rar.html<br />
hxxp://h*otfile.com/dl/19293117/d98b4b8/Ubuntu_ebook_collection.part4.rar.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/ubuntu-ebook-collection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Text-processing utilities in Linux</title>
		<link>http://www.icalvyn.com/text-processing-utilities-in-linux/</link>
		<comments>http://www.icalvyn.com/text-processing-utilities-in-linux/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 16:14:46 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2002</guid>
		<description><![CDATA[Text processing is different than word processing. In word processing, text is edited and manipulated in a &#8220;What-You-See-Is-What-You-Get&#8221; (WYSIWYG) environment. This enables you to produce printed copies of the text, complete with features such as graphics and tables. Linux stores files in plain-text format. This allows you to use different processing, or filtering, utilities on [...]]]></description>
			<content:encoded><![CDATA[<p>Text processing is different than word processing. In word processing, text is edited and manipulated in a &#8220;What-You-See-Is-What-You-Get&#8221; (WYSIWYG) environment. This enables you to produce printed copies of the text, complete with features such as graphics and tables.</p>
<p>Linux stores files in plain-text format. This allows you to use different processing, or filtering, utilities on the text. These utilities let you format, analyze, and manipulate text in many different ways. For example, you can format pages and paragraphs, check spelling, add page numbers and headers, and count the lines, words, and characters that a file contains.</p>
<p><strong>Text-processing utilities</strong></p>
<p style="text-align: center;"><img class="aligncenter" src="http://img181.imageshack.us/img181/9839/linux1d.jpg" alt="text processing utilities" /><br />
<img src="http://img178.imageshack.us/img178/6530/linux2y.jpg" alt="text processing utilities" /></p>
<p>The general command syntax used for text-processing commands is</p>
<blockquote><p>command [option ] filename(s)</p></blockquote>
<p><strong>Reading files</strong><br />
To work with files, you need to know what information they contain. One way of doing this is to use the cat command to display the contents of a file on your terminal screen. This command provides a number of options.</p>
<p><strong>Options for the cat command </strong></p>
<p style="text-align: center;"><img class="aligncenter" src="http://img179.imageshack.us/img179/3176/linux3optionforcat.jpg" alt="text-processing utilities" /></p>
<p><strong>Viewer commands </strong><br />
A quicker way of viewing the contents of a file is by using viewer commands, which display the information at the start or end of a file. Examples of viewer commands include head and tail.</p>
<p>By default, the head command displays the first 10 lines of a file, and the tail command displays the last 10 lines of a file. Additional options can be used with these commands to view more specific areas of a file. For example, you can use the -n option with the commands to specify the number of lines they must display.</p>
<p><strong>Pager commands </strong><br />
If a particular file is longer than one screen, it may scroll past too quickly for you to read it. You can scroll through documents at your own pace by using pager commands, which display documents one screen at a time. Examples of pager commands include less and more.</p>
<p>The more command is the original pager command and derives from the Berkeley version of UNIX. It enables you to move through a document in a forward direction only.</p>
<p>The less command was developed to replace the more command and provides a wider range of options for viewing files.</p>
<p><strong>Pager command options </strong></p>
<p style="text-align: center;"><img src="http://img246.imageshack.us/img246/6425/linux4pager.jpg" alt="pager command option" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/text-processing-utilities-in-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Do you Defrag your Hard Disk Drive.</title>
		<link>http://www.icalvyn.com/do-you-defrag-your-hard-disk-drive/</link>
		<comments>http://www.icalvyn.com/do-you-defrag-your-hard-disk-drive/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 01:55:48 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2137</guid>
		<description><![CDATA[Defragmentation is a process that helps to reduce the amount of fragmentation in your file systems. Same as file fragment, disk fragments, they are created by the allocation of file in the magnetic disk. This happens when we create, delete, move, update and copy files from one location to another. This is because our computer [...]]]></description>
			<content:encoded><![CDATA[<p>Defragmentation is a process that helps to reduce the amount of fragmentation in your file systems. Same as file fragment, disk fragments, they are created by the allocation of file in the magnetic disk.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img218.imageshack.us/img218/593/topdefragment.jpg" alt="defrag" width="525" /></p>
<p>This happens when we create, delete, move, update and copy files from one location to another. This is because our computer system cannot or have not enough contiguous space to store a complete file as a unit and instead puts parts of it in gaps between other files. In long time period, the accumulation of fragments in hard disk become bigger and bigger, it will affects the system performance, your will <strong>feel the processing become slower and slower</strong>. In the end, system slowdown, system files crash, or even more serious will decrease hard disk life span.</p>
<p>So, I would like to introduce a helpful application called <a rel="nofollow" href="http://86d470ce8n2jp5a5mlo7mil8df.hop.clickbank.net/" target="_blank">Advanced Defrag</a> to help you do disk defragmentation.<span id="more-2137"></span></p>
<p>By using <a rel="nofollow" href="http://86d470ce8n2jp5a5mlo7mil8df.hop.clickbank.net/" target="_blank">Advanced Defrag</a>, it will assist you in analyze and defrag your hard disk completely and thoroughly. How does it work? It will search for any hard disk bad sector, unresolved file, removes any infected and corrupted file. Then it will defrag the entire related file in same location. By doing this, it will effectively maximize your system performance and improve computer system efficiency.</p>
<p>Besides that, it will also enhance your windows operating system, accelerate the launching time of the program and improve the file access speed. This is because hard disk no longer needs such a long time to search for a data file in different location. At the same time, it will also extend our hard disk life span. You can save up the money for other changes or further upgrade on the hard disk.</p>
<p>At last, I strongly recommend for <a rel="nofollow" href="http://86d470ce8n2jp5a5mlo7mil8df.hop.clickbank.net/" target="_blank">Advanced Defrag</a>. It is a user-friendly application. However, the most important is it really does done a good job on defragmentation and efficiently speed up our computer system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/do-you-defrag-your-hard-disk-drive/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Understanding disk quotas in Linux</title>
		<link>http://www.icalvyn.com/understanding-disk-quotas-in-linux/</link>
		<comments>http://www.icalvyn.com/understanding-disk-quotas-in-linux/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 00:35:09 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=1994</guid>
		<description><![CDATA[After talk about special character on linux command last week, now let understand on disk quota here. In Linux, a system of disk quotas enables the system administrator to restrict disk usage by individuals and groups. Quotas can specify the maximum amount of total disk space allotted to a user or group The maximum number [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">After talk about <a title="linux special character command" href="http://www.icalvyn.com/special-characters-on-the-linux-command-line/" target="_blank">special character on linux command</a> last week, now let understand on disk quota here. In Linux, a system of disk quotas enables the system administrator to restrict disk usage by individuals and groups.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img200.imageshack.us/img200/1892/bostonpen01.jpg" alt="linux" width="525" /></p>
<p style="text-align: justify;">Quotas can specify</p>
<ul style="text-align: justify;">
<li>the maximum amount of total disk space allotted to a user or group</li>
<li>The maximum number of files a user or group can create</li>
</ul>
<p style="text-align: justify;">You assign quotas by partition, so an individual or group who creates files on two partitions may have a different quota for each partition, or a quota for only one of the two partitions.</p>
<p style="text-align: justify;"><strong>User and group quotas </strong><br />
User quotas and group quotas are independent of each other – so the value of the group quota is not the sum of the values of the users&#8217; quotas in a group. When a user attempts to create a file, Linux first checks if there is a group quota for the user&#8217;s group. If a group quota for the group to which the user belongs has already been filled, the user can&#8217;t create the file, regardless of the status of the user&#8217;s quota. To create the file, the user must change groups. Every file that an individual user creates counts towards the quota of the user&#8217;s group. If the user isn&#8217;t part of a quota-restricted group, or if group quotas aren&#8217;t switched on for a partition, the user can create files on the partition as long as the user&#8217;s quota isn&#8217;t filled.<span id="more-1994"></span></p>
<p style="text-align: justify;"><strong>Hard and soft limits </strong><br />
When you set quotas, you can specify both a hard and a soft limit. When a user exceeds a soft limit, a warning is issued, but the user can continue to create files for the duration of a grace period. The default grace period is seven days, but the administrator can change this period. At the end of the grace period, the user must reduce their disk usage so that they don&#8217;t exceed the soft limit. The soft limit acts as a warning to the user that they are approaching a hard limit. When the user reaches a hard limit, they can no longer create files at all.</p>
<p style="text-align: justify;"><strong>Viewing quotas</strong><br />
The quota command checks the file system in the /etc/fstab directory for quotas and reports them. As a root user, you can use the quota command to view the quotas of any user or group on a system. Users can check their own quotas and the quotas of any groups to which they belong. The syntax for viewing quotas is</p>
<blockquote style="text-align: justify;"><p>quota option who</p></blockquote>
<p style="text-align: justify;">In the syntax, who can be either a username or a group name.</p>
<p style="text-align: justify;">The following options are used with the quota command:</p>
<ul style="text-align: justify;">
<li>g checks a group quota</li>
<li>u checks a user quota</li>
<li>q checks which quotas have been filled</li>
</ul>
<p style="text-align: justify;">Users can use the -g option and the -u option together, to check both their user and group quotas.</p>
<p style="text-align: justify;">The repquota command reports quotas and provides a summary of disk usage for a specified file system. So you can see how many files a user or group owns in a file system and how much space they occupy. The syntax for using the repquota command is</p>
<blockquote style="text-align: justify;"><p>repquota options file_system</p></blockquote>
<p style="text-align: justify;">The following table shows the repquota command options.</p>
<p style="text-align: justify;"><strong>Options for the repquota command </strong></p>
<p style="text-align: justify;"><img class="aligncenter" src="http://img151.imageshack.us/img151/8858/dq1s.jpg" alt="disk quotas in linux" /></p>
<p style="text-align: justify;">As for the quota command, the root user can use the repquota command to view all quotas in the system, whereas other users can view only their own user and group quotas.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/understanding-disk-quotas-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Special characters on the Linux command line</title>
		<link>http://www.icalvyn.com/special-characters-on-the-linux-command-line/</link>
		<comments>http://www.icalvyn.com/special-characters-on-the-linux-command-line/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 16:04:11 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=1992</guid>
		<description><![CDATA[Specially defined characters are essential for many of the Linux shell&#8217;s powerful features, such as filename completion and command substitution. The shell interprets these characters in a different way from other, regular characters on the command line. However, if you want to disable these characters, you can use a process called quoting. Filename completion characters [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Specially defined characters are essential for many of the Linux shell&#8217;s powerful features, such as filename completion and command substitution. The shell interprets these characters in a different way from other, regular characters on the command line. However, if you want to disable these characters, you can use a process called quoting.</p>
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">Filename completion characters </span></strong></p>
<p style="text-align: justify;">Filename completion characters are metacharacters that enable you to abbreviate filenames or directory names. This saves time and lets you process files selectively, even if you don&#8217;t know their full names or locations.</p>
<p style="text-align: justify;">Commonly used filename completion characters are included in the table below.</p>
<p style="text-align: center;"><strong>Filename completion characters</strong><br />
<img class="aligncenter" src="http://img223.imageshack.us/img223/2914/sc1t.jpg" alt="special characters on linux command line" /></p>
<p style="text-align: justify;">The * character (asterisk) is the most frequently used file completion character. You can use the string b*, for example, to match all the filenames beginning with the letter &#8220;b&#8221;. You can also use multiple asterisks to define a file. For example, *xx*.gif retrieves any filename that contains &#8220;xx&#8221; anywhere in its name and that has the .gif extension.<span id="more-1992"></span></p>
<p style="text-align: justify;">The ? character (question mark) represents any single character, so the string ??? refers to all files with a three-letter name. This special character is more restrictive than the asterisk, because it requires the character to be present. For example, the code file?.txt signifies all files that begin with &#8220;file&#8221;, include one additional character, and have the .txt extension. So the filename &#8220;file1.txt&#8221; matches, but &#8220;file.txt&#8221; and &#8220;file01.txt&#8221; don&#8217;t.</p>
<p style="text-align: justify;">Using [] characters (square brackets) allows for a more selective approach to retrieving files. The string [abc] will find files a, b, and c only. You can include a hyphen between characters inside the brackets to match a continuous range of characters. To specify the characters 0 through 9, for example, it is a lot easier and less time-consuming to type [0-9] rather than [0123456789]. If the brackets precede an asterisk, as in [0-9]*, filenames starting with any numbers between 0 and 9 are found. The pattern *[0-9] will match filenames ending with numbers between 0 and 9. Inserting an exclamation mark inside the brackets, as in [!b], will invert the pattern, matching any characters or ranges not specified in the brackets but ignoring those that are.</p>
<p style="text-align: justify;">The $ (dollar sign) is used to identify shell variables at the command line. Variables are values that have been associated in memory with some kind of identifier. Variables have many uses in Linux. To give a simple example, a variable with the identifier PATH contains the list of directories within which the shell can search for executable files. To view this list, you invoke the following command:</p>
<blockquote style="text-align: justify;"><p>echo $PATH</p></blockquote>
<p style="text-align: justify;">If you entered the command echo PATH, it would print the literal string &#8220;PATH&#8221;, rather than the value of the PATH variable, on your terminal.</p>
<p style="text-align: justify;">The ~ character (tilde) enables you to refer quickly and easily to your home directory, no matter where in the file system you might be. Say that your current working directory is /usr/local/bin and you have a file called &#8220;usernames&#8221; in your own home directory, which you want to edit with vi. Rather than having to type the complete path to the file, you can just issue the command</p>
<blockquote style="text-align: justify;"><p>vi ~/usernames</p></blockquote>
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">Quoting special characters </span></strong></p>
<p style="text-align: justify;">There are occasions when you might want to suppress the special meanings of metacharacters. A special character must be quoted in order to represent its own literal meaning rather than its special meaning to the shell. Quoting causes the shell to overlook the unique capabilities of special characters and negate parameter expansion. This mechanism uses the following quote symbols:</p>
<ul style="text-align: justify;">
<li>\ (backslash)</li>
<li>&#8221; (double quotes)</li>
<li>&#8216; (single quotes)</li>
<li>` (backquote)</li>
</ul>
<p style="text-align: justify;">The backslash is also known as the bash shell escape character. This is because it turns off or &#8220;escapes&#8221; the special meaning of the character that follows it. For example, as we have already seen, the following command returns the value of the PATH environment variable:</p>
<blockquote style="text-align: justify;"><p>echo $PATH</p></blockquote>
<p style="text-align: justify;">However, the following command will return the literal output &#8220;$PATH&#8221;, because the backslash negates the special meaning of the dollar sign:</p>
<blockquote style="text-align: justify;"><p>echo \$PATH</p></blockquote>
<p style="text-align: justify;">If a line itself ends with a backslash, it acts as a continuation character for the line and the newline character is ignored.</p>
<p style="text-align: justify;">Single quotes negate the translation of all special characters. They prevent the substitution of alternative values for the characters. For example, the following command will output a list of single-character filenames:</p>
<blockquote style="text-align: justify;"><p>ls ?</p></blockquote>
<p style="text-align: justify;">However, this command will attempt to list the file with the literal name &#8220;?&#8221;:</p>
<blockquote style="text-align: justify;"><p>ls &#8216;?&#8217;</p></blockquote>
<p style="text-align: justify;">Double quotes cause most metacharacter special meanings to be ignored. The exceptions to this rule are the dollar sign, backquote, and backslash. So double quotes have the effect of canceling the process of filename generation by the shell, but still allow the expansion of shell variables and command substitution. The dollar sign and backquote continue to function as special characters when included between double quotes. The backslash character only does so when it&#8217;s followed by a dollar sign, backquote, double quote, backslash, or a newline character. In these circumstances, the backslash itself is removed and the special meaning of the following character is ignored. This makes it possible to quote a double quote between double quotes if it is preceded by a backslash. For example, the commands echo&#8221;\&#8221;" or echo\&#8221; output a double quote character by suppressing the special meaning of the embedded double quote.</p>
<p style="text-align: justify;">The backquote is still often used for command substitution, although the $() combination (a dollar sign and brackets) is generally preferred. The shell interprets the text between a pair of backquotes as a command before translating the rest of the command line. The output of the command replaces the original backquoted text.<br />
In the following code, the double quotes disable the date command:</p>
<blockquote style="text-align: justify;"><p>&gt; echo &#8220;date&#8221;<br />
date</p></blockquote>
<p style="text-align: justify;">However, the backquotes in this command enable command substitution to occur:</p>
<blockquote style="text-align: justify;">
<p style="text-align: justify;">&gt;echo &#8216;date&#8217;<br />
Thu Jun 10 17:18:56 IST 2004</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/special-characters-on-the-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Why use the Linux shell?</title>
		<link>http://www.icalvyn.com/why-use-the-linux-shell/</link>
		<comments>http://www.icalvyn.com/why-use-the-linux-shell/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 16:01:45 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=1990</guid>
		<description><![CDATA[Most PC users communicate with the operating system on their machines using a graphical user interface (GUI), such as those used in Microsoft Windows 2000 or Mac OS 9. Linux has its own GUIs, most notably GNU Network Object Model Environment (GNOME) and the K Desktop Environment (KDE). GUIs provide buttons, menus, icons, and all [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Most PC users communicate with the operating system on their machines using a graphical user interface (GUI), such as those used in Microsoft Windows 2000 or Mac OS 9. Linux has its own GUIs, most notably GNU Network Object Model Environment (GNOME) and the K Desktop Environment (KDE). GUIs provide buttons, menus, icons, and all the other point-and-click features that have simplified modern computing so greatly. However, it is a mistake to assume that GUIs are always the best way to communicate with an operating system. Although GUIs certainly provide simplicity, they tend to obscure some of a computer&#8217;s capabilities from the user. This is where a shell comes in.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img40.imageshack.us/img40/7628/linuxshell.jpg" alt="linux shell" /></p>
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">Advantages of using a shell </span></strong></p>
<p style="text-align: justify;"><strong>Greater control </strong><br />
A shell is a program that acts as an interface between the user and the operating system, just as a GUI does. However, a shell works without graphics – when you use one, you issue instructions to the operating system by typing in commands. In fact, the shell is often referred to as a command interpreter.</p>
<p style="text-align: justify;">This may seem like a return to basic computing, but a command-line interface lets you exercise a degree of control over the operating system that would otherwise be lacking. There are a number of reasons for this:<span id="more-1990"></span></p>
<ul style="text-align: justify;">
<li>with a GUI, only the options provided by the interface are available to the user</li>
<li>lack of space on a screen can limit the number of options that a GUI displays</li>
<li>no standard methods exist within GUIs for performing standard command-line tasks, such as linking commands in sequences, redirecting output from one destination to another, or collecting commands into scripts</li>
</ul>
<p style="text-align: justify;">A disadvantage of using a command-line interface is that the user needs to learn a wide variety of sometimes cryptic commands and their associated options. However, the commands are more powerful and adaptable than their GUI counterparts, because they can be extended and fine-tuned through the use of options. An expert user of a command-line interface can issue complex commands very quickly. Techniques also exist to link multiple commands together with pipes and redirections, so that the output of one command becomes the input of another. Linux can interpret commands issued using the shell more quickly than GUI commands. This is because shell commands are nothing more than simple ASCII text. Some shells even enable you to define your own commands.</p>
<p style="text-align: justify;"><strong>Automation of common tasks </strong><br />
A shell has another advantage over a GUI in that it keeps a history list of recently issued commands. This enables a user to step back and forth through this list, reusing commands at any point. In addition, a shell enables you to string commands together to form a shell script. These scripts work in a similar way to batch files, issuing multiple commands as one. You can use them to automate common tasks that would otherwise require you to issue several, consecutive commands.</p>
<p style="text-align: justify;"><strong>Speed and efficiency </strong><br />
In hardware terms, a shell is a more attractive proposition than a GUI. Shells are much less resource-intensive than GUIs – they require less memory, for example. This means that a command issued in the shell will run more quickly and efficiently than the same command run in a GUI. It also means that a shell supports Linux&#8217;s multitasking environment, in which multiple tasks run simultaneously, more comfortably than a GUI, in which the GUI itself competes for CPU resources.</p>
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">Shell evolution</span></strong></p>
<p style="text-align: justify;"><strong></strong>Since its creation as a derivative of UNIX, Linux has given rise to a number of shells, which have evolved along with the operating system itself. When a new shell is developed, it doesn&#8217;t spell the end for all previous shells. Many different Linux shells are available, and each has particular strengths. The one you use depends on your own preferences and on the task you wish to undertake.</p>
<p style="text-align: justify;">The default shell in most Linux installations is the Bourne Again shell, or /bin/bash. It is a successor to the Bourne shell, or /bin/sh, which was an early and less powerful Linux shell. The Bourne Again shell was created and is distributed by the Free Software Foundation. It offers features such as command-line editing and filename completion. It is an ideal first shell for Linux newcomers. In addition, bash supports the syntax used by another Linux shell called the C shell, or /bin/csh, which increases its flexibility.</p>
<p style="text-align: justify;">You can find out which shell you&#8217;re running at any time by typing the command echo $SHELL at the shell prompt. The default shell is specified in the /etc/passwd file and can be changed there for each user.</p>
<p style="text-align: justify;">Since we are talking about Linux here, you might want to know how to <a href="http://www.icalvyn.com/mounting-linux-file-systems/">mount linux file system</a> also understand on <a href="http://www.icalvyn.com/linux-files-types/">Linux File Types</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/why-use-the-linux-shell/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Mounting Linux file systems</title>
		<link>http://www.icalvyn.com/mounting-linux-file-systems/</link>
		<comments>http://www.icalvyn.com/mounting-linux-file-systems/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 04:33:43 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=1987</guid>
		<description><![CDATA[After talking on the Linux File Types in the previous entries, is time to learn the basic on mounting linux file systems. For the data contained on hard disks, disk partitions, network drives, and removable media to be accessed under Linux, it is necessary to attach – or mount – the devices containing the data [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">After talking on the <a href="http://www.icalvyn.com/linux-files-types/">Linux File Types</a> in the previous entries, is time to learn the basic on <strong>mounting linux file system</strong>s. For the data contained on hard disks, disk partitions, network drives, and removable media to be accessed under Linux, it is necessary to attach – or mount – the devices containing the data to the Linux directory structure. The reason for this is that Linux treats every device or partition as a separate and independent file system. It also views all data as though it were in a subdirectory of the root (/) directory, regardless of the kind of device on which it is stored – even when it is kept on a separate computer.</p>
<p><img class="aligncenter" src="http://img32.imageshack.us/img32/6471/cdmainfull.jpg" alt="disk drive" width="525" /></p>
<p>It is an important part of the role of the Linux system administrator to ensure that file systems are mounted correctly, whether at boot time or manually, to ensure that all required data is available at the expected locations.</p>
<p><strong>Advantages of mounting Linux file systems and devices </strong></p>
<p>Devices are mounted at predetermined directories below the root file system. These are usually, although not always, special directories created for the purpose. The file systems that belong under the /var, /home, and /usr directories, for example, are kept on separate partitions or devices from the root file system. Network machines are frequently configured so that the /home data for all machines is actually stored on a single Network File System (NFS) server, which is then mounted under the /home directory on each individual machine. This enables users to access their own home directories in the usual locations, regardless of which computers they are actually logged on at.<span id="more-1987"></span></p>
<p>Because all devices and file systems appear below the root directory, the transition from one device or file system to another is entirely seamless. So a user can access a file on an NFS server over a network as though the file were on the local hard drive.</p>
<p>Linux makes it easy to expand the space available to overloaded file systems by mounting new partitions. For example, say the directory /home/project is filling up with so much data that it threatens to take over the hard drive on which it is stored. The system administrator can easily move the data from the existing /home/project to an empty disk partition with more available space, and remount the new partition at /home/project. To users, there won&#8217;t be a difference between the old configuration and the new one – they still access their files under /home/project, even though the files are now stored on a completely different hard drive.</p>
<p>It is important to mount file systems in the correct order. This is sometimes necessary to ensure that the mount point required by a given file system exists and is available when the mount command is issued. Taking the /home/project example again, the project data exists on one disk partition and all the remaining /home data is on another, including the /home/project directory under which the /home/project partition is to be mounted. Clearly, if an attempt is made to mount the /home/project partition before the /home partition, this will result in an error, as the /home/project directory doesn&#8217;t yet exist. The correct order is to mount the /home partition first, followed by the /home/project partition.</p>
<p>It is also important to be aware when mounting devices under a given directory that any files previously available under that directory will be hidden while the device is mounted. So any files that still remain in the /home/project directory of the /home partition will become invisible as soon as the /home/project partition is mounted in that directory. Furthermore, the disk space those files occupy will remain unavailable to the system until the project partition is unmounted. You should therefore check what already exists in a directory before you use it as the mount point for some other file system, to avoid duplicating files or wasting disk space.</p>
<p><strong>File system mounting management </strong></p>
<p>To assist in the management of file system mounting, a special directory called /mnt exists in most Linux distributions. This directory contains dedicated directories for mounting specific devices such as CD-ROM, floppy disk, and zip disk drives. This is a convenient way to ensure that such devices have a suitable mount point available to them at all times.</p>
<p><strong>Removable media</strong></p>
<p>It is impossible to access the data on removable media without mounting them first. To use a floppy disk drive, for example, you need to issue the mount command before the disk contents will be visible to the system.</p>
<p>Similarly, when you have finished using any kind of removable medium, it is very important to unmount the device using the umount command before removing the disk from the drive. This is because Linux improves efficiency by often storing information in memory buffers rather than writing it directly to the disk. If a removable disk is removed without being unmounted first, there is a high probability of data loss, just as there is from a hard drive if you shut down the system by turning off the power without running the proper shutdown procedure.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/mounting-linux-file-systems/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux files types</title>
		<link>http://www.icalvyn.com/linux-files-types/</link>
		<comments>http://www.icalvyn.com/linux-files-types/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 22:36:35 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=1974</guid>
		<description><![CDATA[Recently I come across some linux command during I login to my customer site to retrieve activity log file, and also studies some of the linux file types, and simple command to know what is the file types at Linux Operating System. Linux uses four basic file types: ordinary files directories symbolic links block and [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Recently I come across some linux command during I login to my customer site to retrieve activity log file, and also studies some of the linux file types, and simple command to know what is the file types at Linux Operating System.</p>
<p style="text-align: justify;">Linux uses four basic file types:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img41.imageshack.us/img41/9544/notthelinuxfilesystem.jpg" alt="linux file types" width="525" /></p>
<ul style="text-align: justify;">
<li>ordinary files</li>
<li>directories</li>
<li>symbolic links</li>
<li>block and character device files</li>
</ul>
<p style="text-align: justify;">You determine a file&#8217;s type by issuing the<strong> ls -l</strong> command and reading the first character of each row of the output.<br />
The typical output of the ls command is as follows:</p>
<blockquote style="text-align: justify;"><p>$ ls –l<br />
total 8<br />
-rw-r&#8211;r&#8211;     1 root   root       22 Oct  6 15:33  anormalfile<br />
brw-rw&#8212;-     2 root   disk  41,   0 May  5 1998  blockdev<br />
crw-rw-rw-     2 root   root   5,   0 May  5 1998  characterdev<br />
drwxr-xr-x     2 root   root     4096 Oct  6 15:33  subdir<br />
lrwxrwxrwx     1 root   root       11 Oct  6 15:35 symbolic -&gt;  anormalfile</p></blockquote>
<p style="text-align: justify;"><strong>Ordinary files</strong> begin with a dash (-), <strong>directories </strong>begin with <strong>d</strong>, <strong>symbolic links</strong> begin with the character <strong>l</strong>, <strong>block devices</strong> are prefaced with the character <strong>b</strong>, and <strong>character devices</strong> begin with the letter <strong>c</strong>. <span id="more-1974"></span></p>
<p style="text-align: justify;"><strong>Ordinary files</strong><br />
An ordinary file can consist of any kind of data, including executable programs. Most of the files in the Linux file system are of this type.</p>
<p style="text-align: justify;"><strong>Directories</strong><br />
A directory is a file that contains other files and directories, and provides pointers to them.<br />
It performs a similar function to a folder in a filing cabinet, in that it enables you to group related files in an organized fashion. However, whereas folders can normally contain files only, directories can contain additional directories, often referred to as subdirectories.</p>
<p style="text-align: justify;"><strong>Symbolic links</strong><br />
A symbolic – or soft – link points to the name and location of a completely separate file. So when you open, copy, move or otherwise refer to the link, the operation is in fact performed on the referenced file. This distinction is usually invisible to the user. If the referenced file is removed or renamed, the link is broken and an error occurs if you try to open it.</p>
<p style="text-align: justify;">You can also create hard links. A hard link points to the actual data in a file in exactly the same way as an ordinary file does. Therefore, other than the name, there is no difference between the original file and a hard link that points to the same data, and both can be regarded as ordinary files. You can distinguish a hard link from any other ordinary file only by the number of links that each one has. The number of links is displayed in the second field of an ls -l listing. If this number is greater than one, then you know there are additional hard links to the data.</p>
<p style="text-align: justify;"><strong>Device files</strong><br />
All the physical devices that Linux uses are represented by device files.<br />
Device files can be classified as character special or block special. Character-special files represent devices that interact with Linux on a character-by-character, or serial, basis. Printers and terminals are examples of this type of device. Block-special files represent devices such as hard or floppy disks and CD-ROMs, which interact with Linux using blocks of data.</p>
<p style="text-align: justify;">All the device files are contained in the <strong>/dev</strong> directory – for example, the file associated with the system&#8217;s first floppy drive is <strong>/dev/fd</strong>0.</p>
<p style="text-align: justify;">Device files are extremely powerful because they enable users to access hardware devices such as disk drives, modems, and printers as though they were data files. Therefore, you can move, copy, and transfer data between such devices easily, often without having to use special commands or syntax.</p>
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">Filenames and pathnames</span></strong></p>
<p style="text-align: justify;">Every file is assigned a filename, which can be up to 256 characters long. This name can consist of a mixture of uppercase and lowercase letters, numbers, and certain punctuation marks such as the period, dash, or underscore.</p>
<p style="text-align: justify;">Certain characters cannot be used in filenames. For example, you cannot use characters that represent a field separator – such as a comma – or other special characters that have particular meaning to the shell. The special characters that you cannot use are</p>
<blockquote style="text-align: justify;"><p>! @ # $ % ^ &amp; * ( ) [ ] { } &#8216; &#8221; \ / | ; &lt; &gt; &#8216;</p></blockquote>
<p style="text-align: justify;"><strong>Pathnames</strong><br />
You can navigate between directories on the command line using pathnames. To use pathnames, you must understand the directory structure of the Linux file system. The highest-level directory in the Linux file system is the root directory, which is represented by a forward slash (/). Located under the root directory are the top-level directories, followed by one or more subdirectory levels.</p>
<p style="text-align: justify;"><img class="aligncenter" src="http://img32.imageshack.us/img32/564/rootm.jpg" alt="linux file type" /></p>
<p style="text-align: justify;"><strong>File structure of a Linux file system</strong><br />
You can move between directories using relative or absolute pathnames.</p>
<p style="text-align: justify;">A relative pathname starts with your current directory. For example, if you want to change to the expenses directory from within your home directory, you enter</p>
<blockquote style="text-align: justify;"><p>cd expenses</p></blockquote>
<p style="text-align: justify;">Relative pathnames can begin with the name of a file or directory, or with symbolic references to the current directory (.) or its parent directory (..), but never with a forward slash.</p>
<p style="text-align: justify;"><img class="aligncenter" src="http://img32.imageshack.us/img32/4909/root1.jpg" alt="linux file type" /></p>
<p style="text-align: justify;"><strong>A simple example of a Linux file system </strong><br />
An absolute pathname shows the full pathname from the root directory (/). For example, the following command allows you to move from your current directory directly to the applic subdirectory in the usr directory that&#8217;s located under the root directory:</p>
<blockquote style="text-align: justify;"><p>cd /usr/applic</p></blockquote>
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">Inodes, blocks, and special files </span></strong></p>
<p style="text-align: justify;"><strong>Inodes </strong><br />
Every file is assigned a unique inode number. An inode is a structure that defines the file&#8217;s location and attributes. You can check for a file&#8217;s inode number using the -i option with the ls command. You can view the information that a file&#8217;s inode contains using the stat filename syntax. This command output (the stat results) displays the information related to the &#8220;results&#8221; file&#8217;s inode.</p>
<blockquote style="text-align: justify;"><p>$ stat results<br />
File: &#8221;results&#8221;<br />
Size: 8<br />
Filetype:  Regular  file<br />
Mode: (0644/-rw-r&#8211;r&#8211;)<br />
Uid: (     0/     root)<br />
Gid: (     0/     root)<br />
Device: 3,7    Inode: 123256    Links:  1<br />
Access: Tue Jul 25 16:45:00 2000 (00072.18:31:07)<br />
Modify: Thu Jul 20  12:35:20 2000 (00077.22:40:47)<br />
Change: Thu Jul 20 12:35:20 2000  (00077.22:40:47)</p></blockquote>
<p style="text-align: justify;">In this example, some of the attributes that are displayed include the file type, file size, the owner&#8217;s User ID (UID), the number of hard links associated with it, and the file&#8217;s creation, access, and modification times.</p>
<p style="text-align: justify;">An inode does not store a file&#8217;s name. Filenames are stored in directories with their associated inode numbers. In the example of the stat command, the name of the file is obtained from the filename parameter that you entered.</p>
<p style="text-align: justify;"><strong>Blocks </strong><br />
In the Linux file system, files are stored in blocks, which are identically sized segments of disk space. Generally, the size of a block varies from 512 bytes to 32 KB, depending on the Linux installation. The maximum size of a file depends on the block size used in the file system. For example, the maximum file size for an ext2 file system is 2 GB if it uses 512-byte blocks.</p>
<p style="text-align: justify;">Disk systems retrieve data in block-sized chunks, so the larger the block size the more efficient the access. The problem with creating large blocks is that it can waste disk space. For example, if the block size is 4 KB and most files contain only a few bytes of data, most of the 4096 bytes of disk space is wasted for each file. But if you make the block sizes small, disk access will be relatively less efficient.</p>
<p style="text-align: justify;">Some commands, such as df, output disk information in 1 KB blocks, even if the installation stores files in a different block size. A simple way to check your system&#8217;s block size is to use the du command to display the disk usage. In this example, the disk usage for all files beginning with &#8220;m&#8221; is displayed.</p>
<blockquote style="text-align: justify;"><p>$ du -h m*<br />
36k mail<br />
4.0k mail.rc<br />
12k mailcap<br />
12k mailcap.vga<br />
4.0k  man.config<br />
4.0k mc.global<br />
148k midi<br />
40k mime-magic<br />
104k  mime-magic.dat<br />
8.0k mime.types<br />
4.0k minicom.users<br />
0 motd<br />
4.0k mtab</p></blockquote>
<p style="text-align: justify;">In this example, the du command output displays the file sizes on the disk in increments of the block size, which is 4.0 KB in this case. One exception to this rule is when zero is displayed, which indicates that the file is completely empty.</p>
<p style="text-align: justify;"><strong>Special files </strong><br />
In addition to other file types, Linux makes use of special files, which are system-defined files that perform unique functions when accessed.</p>
<p style="text-align: justify;"><strong>Special files and their functions </strong></p>
<p style="text-align: center;"><img class="aligncenter" src="http://img197.imageshack.us/img197/8346/root2.jpg" alt="linux file types" /></p>
<p style="text-align: justify;">For example, if you need to get rid of unwanted output from a command, you can redirect the output to the /dev/null file. In this example, any errors generated by the find command are redirected from stderr to /dev/null.</p>
<blockquote style="text-align: justify;">
<p style="text-align: justify;">$ find / -n myfile 2&gt; /dev/null</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/linux-files-types/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

