<?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>Linux Explore &#187; Linux Explore Tips &amp; Tricks</title>
	<atom:link href="https://blog.linuxexplore.com/category/linux-explore-tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.linuxexplore.com</link>
	<description>Exploring Linux</description>
	<lastBuildDate>Mon, 07 Apr 2014 00:30:50 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>3 Easy Tricks for Beginners to Learn Linux Commands</title>
		<link>https://blog.linuxexplore.com/2014/04/07/3-simple-tricks-for-beginners-to-learn-linux-commands/</link>
		<comments>https://blog.linuxexplore.com/2014/04/07/3-simple-tricks-for-beginners-to-learn-linux-commands/#comments</comments>
		<pubDate>Mon, 07 Apr 2014 00:30:50 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[apropos]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[Linux command]]></category>
		<category><![CDATA[Linux help]]></category>
		<category><![CDATA[Linux terminal]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[man]]></category>
		<category><![CDATA[man page]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=865</guid>
		<description><![CDATA[If you are a Beginner in Linux, this post will help you to learn Linux commands in just 3 simple steps. Nowadays most of the Linux flavored desktop like Ubuntu, Mint, Fedora, Suse etc. are coming with very interactive user friendly graphical user interface (GUI). Using Linux GUI is similar to use other graphical user&#8230;]]></description>
				<content:encoded><![CDATA[<p>If you are a Beginner in Linux, this post will help you to learn Linux commands in just 3 simple steps.</p>
<p>Nowadays most of the Linux flavored desktop like Ubuntu, Mint, Fedora, Suse etc. are coming with very interactive user friendly graphical user interface (GUI). Using Linux GUI is similar to use other graphical user interface OS like Windows XP/7/8, Mac OS, Android or iOS etc.</p>
<p>Although Linux is coming with user friendly GUI but it is also providing a very strong command interface called command line interface (CLI) terminal similar to dos command interface in Windows. Similar to dos, this CLI is also not user friendly. But Linux terminal commands are important to learn as it is the base of this OS and if you learn this you can do almost anything in your system using terminal application (don’t take it so seriously, it will not cook food for you ;-) but definitely it will do).</p>
<p>So here is my first trick.</p>
<h2>Use <em>“apropos”</em> to find your command</h2>
<p>Any newbie when first open the Linux terminal, they can get confused because they don’t know what to do. But actually they know what to do but don’t know how to do that. So here is my first trick when you open Linux terminal. Don’t think too much, your first command is “apropos”. Using apropos command you can find all the command to do anything. For example, if you want to download a file using command, give command</p>
<p><code>apropos “download”</code></p>
<p>It will show you the list of all the commands, with their initial help, to download a file.</p>
<p><a href="http://linuxexplore.com/?attachment_id=871#main"><img class="aligncenter wp-image-871 size-large" src="http://linuxexplore.files.wordpress.com/2014/04/apropos1-900x600.png?w=700" alt="apropos" width="700" height="466" /></a>Now you try finding your command to download a file which is “wget”. wget command can be used as follows:</p>
<p><code>wget </code></p>
<p>But how will you know that <em>&#8220;wget&#8221;</em> or any other command can be used like this.</p>
<p>So here is my second tip.</p>
<h2>Use <a title="Linux Manual Pages" href="http://man.linuxexplore.com" target="_blank"><em>“man”</em> command</a> for command manual page</h2>
<p>It is very important to know about that <a title="Linux Manual Pages" href="http://man.linuxexplore.com" target="_blank">how can you get the help of any Linux command</a>. You can use any Linux command with care, if you will find its help. So after you know, which command can be used to do your task, check its manual page by <em>“man”</em> command. <a title="Linux Manual Pages" href="http://man.linuxexplore.com" target="_blank">Linux Manual pages</a> show the syntax and the detail description of the options of the command.</p>
<p><code>man &lt;command&gt;</code></p>
<p><a href="http://man.linuxexplore.com"><img class="aligncenter size-large wp-image-873" src="http://linuxexplore.files.wordpress.com/2014/04/man1-900x600.png?w=700" alt="man" width="700" height="466" /></a>Other than manual page of any Linux commands, a simple help is also there. So my third tip is about that.</p>
<h2>Use <em>“-h”</em> or <em>&#8220;&#8211;help&#8221;</em> argument for command help</h2>
<p>Most of the Linux commands have its help. Other than manual page, this help is also useful to learn the command syntax and options. Sometimes only this help is enough to execute a command but better look for its manual page to get detailed help.</p>
<p><code>wget -h</code></p>
<p>or</p>
<p><code>wget --help</code></p>
<h2><a href="http://man.linuxexplore.com"><img class="aligncenter size-large wp-image-872" src="http://linuxexplore.files.wordpress.com/2014/04/help1-900x600.png?w=700" alt="help" width="700" height="466" /></a>Conclusion</h2>
<p>After learning above three tips, you can find any required command and its manual or help. So, start finding and using Linux command line terminal.</p>
<p>Please feel free to contact me if you still need any help in using Linux.</p>
<h3>Related Page:</h3>
<p><a title="Linux Manual Pages" href="http://man.linuxexplore.com" target="_blank">Linux Commands Man Pages</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2014/04/07/3-simple-tricks-for-beginners-to-learn-linux-commands/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Use of subsystem lock files in init script</title>
		<link>https://blog.linuxexplore.com/2014/03/19/use-of-subsystem-lock-files-in-init-script/</link>
		<comments>https://blog.linuxexplore.com/2014/03/19/use-of-subsystem-lock-files-in-init-script/#comments</comments>
		<pubDate>Wed, 19 Mar 2014 17:51:43 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[/var/lock/subsys]]></category>
		<category><![CDATA[init script]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[shutdown process]]></category>
		<category><![CDATA[startup process]]></category>
		<category><![CDATA[subsys]]></category>
		<category><![CDATA[subsystem]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=843</guid>
		<description><![CDATA[In /var/lock/subsys/ directory, there are various files like network, iptables, ip6tables, sshd, rsyslog etc. all these files are the lock files created by their init scripts. Most of these files may be empty. These files play the important role in Linux startup and shutdown process. When a service is started through an init script, a&#8230;]]></description>
				<content:encoded><![CDATA[<p>In <strong>/var/lock/subsys/</strong> directory, there are various files like network, iptables, ip6tables, sshd, rsyslog etc. all these files are the <strong>lock files </strong>created by their <strong>init scripts</strong>. Most of these files may be empty.</p>
<p><a href="http://linuxexplore.files.wordpress.com/2014/03/screenshot-subsys.png"><img class="aligncenter size-large wp-image-845" alt="subsys" src="http://linuxexplore.files.wordpress.com/2014/03/screenshot-subsys.png?w=700" width="700" height="294" /></a>These files play the important role in <strong>Linux startup and shutdown process</strong>. When a <strong>service</strong> is started through an init script, a file is touched in the <strong>/var/lock/subsys/</strong> directory with the same name as the init script. This lock file helps in various manners like:</p>
<ul>
<li>This file represents that the service should be running or <strong>subsystem locked</strong>.</li>
<li>It helps to avoid another instance of a service, if it accidentally started again.</li>
<li>It is mandatory to create, if service need to be stopped in shutdown.</li>
</ul>
<p>When the service is stopped, this file is removed.</p>
<p>However only lock file is not enough to know that the service is running or not. Status of a running service can be captured by using <strong><em>status</em> function</strong> defined in <strong>/etc/rc.d/init.d/functions</strong>. Following command in an init script show the status of the service (if status case created in init script):</p>
<pre><strong>service &lt;servicename&gt; status</strong></pre>
<p>It <strong>checks both PID and the lock file</strong> of the service. If PID is not found but the lock file exists, you will get following message:</p>
<pre><strong> dead but subsys locked</strong></pre>
<p>It is not always mandatory to create lock file, the services can be started and stopped without it. But it can create problem during shutdown and <strong>RUNLEVEL switch</strong>. So follow the recommended steps (recommended by me) to write a <strong>good init script </strong>(also drafting a tutorial for writing init script):</p>
<ul>
<li>In start section of init script <strong>touch the lock file</strong> after starting the service. You can use touch at the end of start case.</li>
</ul>
<pre style="padding-left:60px;"><strong>touch /var/lock/subsys/</strong></pre>
<ul>
<li>Don’t forget to check the lock file before starting the service in start case to <strong>avoid the multiple session of same service</strong>.</li>
</ul>
<pre style="padding-left:60px;"><strong>if [ ! -f /var/lock/subsys/ ]; then
     start # start service here
fi</strong></pre>
<ul>
<li>Don’t forget to <strong>remove the lock in stop case</strong>, it can also be added at the end of stop case.</li>
</ul>
<pre style="padding-left:60px;"><strong>rm -f /var/lock/subsys/<strong>&lt;servicename&gt;</strong></strong></pre>
<p>In case system goes power down, lock files remain exist in the system due to non-execution of stop case. It does not tend it to failure as we added a check of existence of lock file in start case. , But the PID of those services will not found that means service is <strong>staled</strong>. During startup process, init checks if PID of a service exist or not. It realize a <strong>stale lock file</strong>, and clean itself up, which allow the init script to start the service successfully.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2014/03/19/use-of-subsystem-lock-files-in-init-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 6 CD/DVD/ISO to USB Installation</title>
		<link>https://blog.linuxexplore.com/2014/03/17/centos-6-cd-dvd-iso-to-usb-installation/</link>
		<comments>https://blog.linuxexplore.com/2014/03/17/centos-6-cd-dvd-iso-to-usb-installation/#comments</comments>
		<pubDate>Mon, 17 Mar 2014 18:01:41 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[Bootable USB]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[centos 6]]></category>
		<category><![CDATA[iso2usb]]></category>
		<category><![CDATA[isotousb]]></category>
		<category><![CDATA[liveusb-creater]]></category>
		<category><![CDATA[pendrive Linux]]></category>
		<category><![CDATA[UNetbootin]]></category>
		<category><![CDATA[Universal-USB-Installer]]></category>
		<category><![CDATA[USB software]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=828</guid>
		<description><![CDATA[I tried various Linux ISO to USB software like UNetbootin, liveusb-creator, Universal-USB-Installer etc to create CentOS 6 (take a look at new look of CentOS website) bootable USB/pendrive. But all have some problems or limitations which force me to use ISO2USB software, which help me to meet my need. Requirement Create a CentOS 6 bootable&#8230;]]></description>
				<content:encoded><![CDATA[<p>I tried various Linux ISO to USB software like <a title="UNebootin" href="http://unetbootin.sourceforge.net/" target="_blank"><strong>UNetbootin</strong></a>, <a title="liveusb-creator" href="https://fedorahosted.org/liveusb-creator/" target="_blank"><strong>liveusb-creator</strong></a>, <a title="Universal-USB-Installer" href="http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/" target="_blank"><strong>Universal-USB-Installer</strong></a> etc to create CentOS 6 (take a look at new look of <a title="CentOS" href="http://www.centos.org/" target="_blank">CentOS website</a>) bootable <strong>USB</strong>/<strong>pendrive</strong>. But all have some problems or limitations which force me to use <a title="ISO2USB" href="http://iso2usb.sourceforge.net/" target="_blank"><strong>ISO2USB</strong></a> software, which help me to meet my need.</p>
<h3>Requirement</h3>
<p>Create a CentOS 6 bootable USB which will support customized installation (by using kickstart configuration file).</p>
<h3>Limitations with other software</h3>
<p><strong>UNetbootin</strong>: Bootable USB of CentOS 6 created by UNetbootin is not even booting the system using USB and not support kickstart configuration file.</p>
<p><strong>liveusb-creator</strong>: It support live Linux Fedora OS only like fedora-live and not support kickstart configuration file.</p>
<p><strong>Universal-USB-Installer</strong>: It successfully boot the CentOS 6 from USB but failed to install by kickstart configuration file.</p>
<h3>Prerequisites of ISO2USB software</h3>
<p>This is the minimum requirement for all ISO to USB software. It need followings:</p>
<ul>
<li>ISO file or CD/DVD of CentOS 6 (Custom Installation disk of CentOS 6).</li>
<li>A USB drive to boot the system.</li>
</ul>
<h3>Prepare CentOS 6 bootable from ISO file or CD/DVD</h3>
<p>After <strong><a title="Download ISO2USB Software" href="https://sourceforge.net/projects/iso2usb/files/latest/download" target="_blank">downloading ISO2USB software</a></strong> for Windows, follow the steps given below:</p>
<ul>
<li>Plug the USB drive to Windows XP/Vista/7 machine.</li>
<li>Execute the ISO2USB software.</li>
</ul>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-829" alt="ISO2USB Software" src="http://linuxexplore.files.wordpress.com/2014/03/iso2usb-1.png" width="540" height="448" /><em>ISO2USB Software</em></p>
<ul>
<li>Browse CentOS 6 ISO (with custom installation) file by using the highlighted browse button.</li>
</ul>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-830" alt="Browse Custom CentOS-6 ISO file" src="http://linuxexplore.files.wordpress.com/2014/03/iso2usb-2.png" width="540" height="448" /><em>Browse Custom CentOS-6 ISO file</em></p>
<ul>
<li>Click on OK button but before clicking on OK button; just make sure that correct USB drive should be selected.</li>
</ul>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-831" alt="Select USB drive" src="http://linuxexplore.files.wordpress.com/2014/03/iso2usb-3.png" width="540" height="448" /><em>Select USB drive</em></p>
<ul>
<li>Click Exit button, when finished.</li>
</ul>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-832" alt="Exit ISO2USB" src="http://linuxexplore.files.wordpress.com/2014/03/iso2usb-4.png" width="540" height="448" /><em>Exit ISO2USB</em></p>
<ul>
<li>Safely remove USB drive from Windows XP/Vista/7 system.</li>
</ul>
<p>USB drive is now ready to install CentOS 6 (with custom configuration file) on your system.</p>
<p><!--[if gte mso 9]&gt;--></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2014/03/17/centos-6-cd-dvd-iso-to-usb-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to find USB device in Linux</title>
		<link>https://blog.linuxexplore.com/2013/01/01/how-to-find-usb-device-in-linux/</link>
		<comments>https://blog.linuxexplore.com/2013/01/01/how-to-find-usb-device-in-linux/#comments</comments>
		<pubDate>Tue, 01 Jan 2013 11:52:18 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[/var/log/messages]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[log messages]]></category>
		<category><![CDATA[messages]]></category>
		<category><![CDATA[script shell]]></category>
		<category><![CDATA[scsi device]]></category>
		<category><![CDATA[shell command]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[shellscript]]></category>
		<category><![CDATA[sysfs]]></category>
		<category><![CDATA[UDEV]]></category>
		<category><![CDATA[udevadm]]></category>
		<category><![CDATA[udevinfo]]></category>
		<category><![CDATA[USB device]]></category>
		<category><![CDATA[usb storage]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=670</guid>
		<description><![CDATA[I wondered when I had to find the USB device name in Linux using shell script (shell command), it was little tricky, specially in case of UDEV. You can use different methods to get this like using udevinfo command, from sysfs, from /var/log/messages. Using udevinfo: for DEV in /dev/sd*; do udevinfo -q env -n $DEV&#8230;]]></description>
				<content:encoded><![CDATA[<p>I wondered when I had to find the <b>USB device</b> name in <b>Linux</b> using <b>shell script</b> (<b>shell command</b>), it was little tricky, specially in case of UDEV.</p>
<p style="text-align:justify;"><a href="http://linuxexplore.files.wordpress.com/2013/12/sushiusb.jpg"><img class="size-large wp-image-673" alt="KONICA MINOLTA DIGITAL CAMERA" src="http://linuxexplore.files.wordpress.com/2013/12/sushiusb.jpg?w=610" width="459" height="384" /></a></p>
<p>You can use different methods to get this like using <b>udevinfo</b> <b>command</b>, from <b>sysfs</b>, from <b>/var/log/messages</b>.</p>
<p><span style="text-decoration:underline;">Using <b>udevinfo</b>:</span></p>
<p><code><strong>for DEV in /dev/sd*; do<br />
udevinfo -q env -n $DEV 2&gt;/dev/null | grep "ID_BUS=usb";<br />
done</strong></code></p>
<p><span style="text-decoration:underline;">Using <b>sysfs</b>:</span></p>
<p>Change this according to your need.</p>
<p><code><strong>find /sys/bus/usb/drivers/usb-storage/[1-9]-[0-1]:1.0/|grep -wo sd[a-z]|head -1</strong></code></p>
<p><span style="text-decoration:underline;">Using <b>/var/log/messages</b>:</span></p>
<p>Grep the usb device in /var/log/messages file, when usb device is connected.</p>
<p>I hope USB device can be detected easily now.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2013/01/01/how-to-find-usb-device-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux File System and Windows File System, Difference</title>
		<link>https://blog.linuxexplore.com/2012/10/01/linux-file-system-and-windows-file-system-difference/</link>
		<comments>https://blog.linuxexplore.com/2012/10/01/linux-file-system-and-windows-file-system-difference/#comments</comments>
		<pubDate>Sun, 30 Sep 2012 19:52:46 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[ext2]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[Intel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux file systems]]></category>
		<category><![CDATA[Linux filesystem]]></category>
		<category><![CDATA[Linux partitions]]></category>
		<category><![CDATA[Linux VS Windows]]></category>
		<category><![CDATA[master boot record]]></category>
		<category><![CDATA[Nigel McFarlane]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Windows filesystem]]></category>
		<category><![CDATA[Windows partitions]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=648</guid>
		<description><![CDATA[Windows vs Linux Windows uses FAT and NTFS as file systems, while Linux uses a variety of file systems. Unlike Windows, Linux is bootable from a network drive. In contrast to Windows, everything is either a file or a process in Linux. Please see one of my earlier post What “Everything Is a File” Means on Linux.&#8230;]]></description>
				<content:encoded><![CDATA[<p style="text-align:center;"><a href="http://linuxexplore.files.wordpress.com/2012/10/ubuntu-910-vs-windows-7.jpg"><img class="size-full wp-image-649 aligncenter" title="ubuntu-910-vs-windows-7" src="http://linuxexplore.files.wordpress.com/2012/10/ubuntu-910-vs-windows-7.jpg" alt="Linux vs Windows" width="640" height="390" /></a>Windows vs Linux</p>
<p>Windows uses FAT and NTFS as file systems, while Linux uses a variety of file systems.</p>
<p>Unlike Windows, Linux is bootable from a network drive.</p>
<p>In contrast to Windows, everything is either a file or a process in Linux. Please see one of my earlier post <a title="What “Everything Is a File” Means on Linux" href="http://linuxexplore.com/2012/07/28/intowire-what-everything-is-a-file-means-on-linux/" target="_blank">What “Everything Is a File” Means on Linux</a>.</p>
<p>Linux has two kinds of major partitions called data partitions and swap partitions. Because of the existence of swap partitions, you never run out of memory in Linux (like in windows).</p>
<p>In terms of recovery tools, only a limited number of tools can be used on Windows, while there is a large number of UNIX based recovery tools available for Linux file systems.</p>
<p><a href="http://linuxexplore.files.wordpress.com/2012/10/primary-extended-logical-linux-windows-file-system.png"><img class=" wp-image-650 aligncenter" title="primary extended logical Linux windows file system" src="http://linuxexplore.files.wordpress.com/2012/10/primary-extended-logical-linux-windows-file-system.png" alt="Linux Windows filesystem" width="362" height="349" /></a></p>
<p><strong> From the author </strong><strong>Nigel McFarlane:</strong></p>
<p>Both <strong>Windows</strong> and <strong>Linux</strong> organize disk-based files into a hierarchy of directories. Such directories are usually called &#8220;<strong>folders</strong>&#8221; when viewed in a GUI. One whole hierarchy is called a &#8220;<strong>file system</strong>&#8221; on both platforms. The architecture of Windows and Linux file systems is similar in some points, but diverges greatly when tools are considered. Here&#8217;s a quick comparison.</p>
<p>On hardware derived from <strong>Intel</strong> or <strong>IBM</strong> PCs, both <strong>Windows</strong> and <strong>Linux</strong> use the Master Block Record/ Master Boot Record (<strong>MBR</strong>). That is the bit of disk used to boot the operating system and to state whether the disk is partitioned or not. On both <strong>Windows</strong> and <strong>Linux</strong>, it is common to have at most one file system per partition. That is about the end of the similarity.</p>
<p>Each <strong>Windows</strong> file system gets a drive letter, like &#8220;C:&#8221;. On <strong>Linux</strong>, each file system gets a device, like /dev/hda1 (&#8220;hard disk A part 1&#8243;), which is represented as a file. Such a file is a device file (since a disk is a device), hence the &#8220;dev&#8221; part of the path name. Also, the device file is not an ordinary text file, it is a &#8220;<strong>special file</strong>.&#8221; Since disks are block devices (unlike a serial mouse), such a file is fully described as a &#8220;<strong>block special device file</strong>.&#8221; The numbered part of the path can be a little weird to get right; it&#8217;s best to be guided by documentation there or extract the right name from a report.</p>
<p>On <strong>Windows</strong>, file systems can be <strong>FAT16</strong>, <strong>FAT32</strong> or <strong>NTFS</strong>, to name a few. Recall <strong>FAT16</strong> is the ancient standard responsible for <strong>Windows</strong> file names with the &#8220;<strong>8.3</strong>&#8221; file name length restriction. On <strong>Linux</strong>, filesystems can be &#8220;<strong>minix</strong>,&#8221; &#8220;<strong>ext</strong>,&#8221; or &#8220;<strong>ext2</strong>,&#8221; to name a few. Also, &#8220;<strong>minix</strong>&#8221; is an example of the ancient standard responsible for <strong>UNIX</strong> file names once being limited to 14 characters. Linux also has &#8220;<strong>msdos</strong>&#8221; and &#8220;<strong>vfat</strong>&#8221; file systems for compatibility with <strong>Windows</strong> and <strong>DOS</strong>, plus more.</p>
<p>Windows uses <strong>FORMAT.EXE</strong> to format a disk. Linux uses &#8220;<strong>mkfs</strong>&#8221; (&#8220;make file system&#8221;) in various specialist forms.</p>
<p>Each Windows file system has a File Allocation Table (<strong>FAT</strong>, <strong>VFAT</strong>, or similar) that states which disk blocks hold the topmost directory. On <strong>Linux</strong>, the equivalent on most filesystems is the <strong>superblock</strong>. A <strong>Linux</strong> file system has multiple copies of the <strong>superblock</strong> physically saved on the disk. This provides redundancy in case of a partial disk corruption. The <strong>superblock</strong> is just about always in memory on <strong>Linux</strong>; that is not the case for ancient <strong>DOS</strong>-like file systems. There are no special restrictions on files placed in the topmost directory on <strong>Linux</strong>, either.</p>
<p>On <strong>Windows</strong>, there is one drive letter per mounted file system: for example, C: for C: and D: for D:. On <strong>Linux</strong> there are no drive letters, so one file system is mounted on &#8220;/&#8221; and all other file systems are mounted on subdirectories of &#8220;/.&#8221; This arrangement is like the little-used <strong>MS-DOS</strong> command <strong>SUBST</strong>, or the <strong>NET USE</strong> command that supports <strong>Novell</strong>&#8216;s <strong>NetWare</strong>. The equivalent <strong>Linux</strong> command is &#8220;<strong>mount</strong>.&#8221;</p>
<p>You can see all this at work on <strong>Linux</strong>, but for some of it you need to be logged in as <strong>root</strong>. Type &#8220;<strong>cat /etc/fstab</strong>&#8221; to see all the mountable devices, including floppy disks and CD players. Type &#8220;<strong>df</strong>&#8221; to see the devices currently mounted, and their free space. In the usual case you can even see the <strong>superblock</strong>: try &#8220;<strong>/sbin/dumpe2fs /dev/hda1</strong>&#8221; where <strong>hda1</strong> comes from the output of &#8220;<strong>df</strong>.&#8221; The name &#8220;<strong>dumpe2fs</strong>&#8221; is a casualty of history; it replaces the older &#8220;<strong>dumpfs</strong>.&#8221; The information produced is really just for diagnostic purposes.</p>
<p>Mostly file systems work for you silently. If you want to dig into Linux further, then there are plenty of tools that can be used as inspection points.</p>
<p><strong>About the author</strong><br />
<strong>Nigel McFarlane</strong> is an open source software analyst and technologist with a broad background in technology and software engineering. He has an extensive programming background and degrees in computer science and physics. His latest book is &#8220;<strong>Rapid Application Development with Mozilla</strong>&#8221; from Prentice Hall PTR.</p>
<p><strong>Source:</strong><br />
<a href="http://searchopensource.techtarget.com/tip/1,289483,sid39_gci990200,00.html" rel="nofollow" target="_blank">http://searchopensource.techtarget.c&#8230;990200,00.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/10/01/linux-file-system-and-windows-file-system-difference/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>More Helpful Commands in Linux</title>
		<link>https://blog.linuxexplore.com/2012/08/24/more-helpful-commands-in-linux/</link>
		<comments>https://blog.linuxexplore.com/2012/08/24/more-helpful-commands-in-linux/#comments</comments>
		<pubDate>Thu, 23 Aug 2012 19:26:36 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[backdrop image]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[command line tools]]></category>
		<category><![CDATA[cut]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[enterprise-it]]></category>
		<category><![CDATA[inkscape]]></category>
		<category><![CDATA[intowire]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[KStars]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Administrator]]></category>
		<category><![CDATA[Linux hacks]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[macros]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[SVG file]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=609</guid>
		<description><![CDATA[A backdrop of stars Difficulty: Easy Application: KStars You may already have played with KStars, but how about creating a KStars backdrop image that&#8217;s updated every time you start up? KStars can be run with the &#8211;dump switch, which dumps out an image from your startup settings, but doesn&#8217;t load the GUI at all. You&#8230;]]></description>
				<content:encoded><![CDATA[<h2>A backdrop of stars</h2>
<ul>
<li>Difficulty: Easy</li>
<li>Application: KStars</li>
</ul>
<p>You may already have played with KStars, but how about creating a KStars backdrop image that&#8217;s updated every time you start up?</p>
<p>KStars can be run with the &#8211;dump switch, which dumps out an image from your startup settings, but doesn&#8217;t load the GUI at all. You can create a script to run this and generate a desktop image, which will change every day (or you can just use this method to generate images).</p>
<p>Run KStars like this:</p>
<pre>kstars --dump --width 1024 --height 768 --filename = ~/kstarsback.png</pre>
<p>You can add this to a script in your ~/.kde/Autostart folder to be run at startup. Find the file in Konqueror, drag it to the desktop and select &#8216;Set as wallpaper&#8217; to use it as a randomly generated backdrop.</p>
<h2>Open an SVG directly</h2>
<ul>
<li>Difficulty: Easy</li>
<li>Application: Inkscape</li>
</ul>
<p>You can run Inkscape from a shell and immediately edit a graphic directly from a URL. Just type:</p>
<pre>inkscape <a href="http://www.somehost.com/graphic.svg" rel="nofollow">http://www.somehost.com/graphic.svg</a></pre>
<p>Remember to save it as something else though!</p>
<h2>Editing without an editor</h2>
<ul>
<li>Difficulty: Intermediate</li>
<li>Application: Various</li>
</ul>
<p>Very long files are often hard to manipulate with a text editor. If you need to do it regularly, chances are you&#8217;ll find it much faster to use some handy command-line tools instead, like in the following examples.</p>
<p>To print columns eg 1 and 3 from a file file1 into file2, we can use awk:</p>
<pre>awk '{print $1, $3}' file1 &gt; file2</pre>
<p>To output only characters from column 8 to column 15 of file1, we can use cut:</p>
<pre>cut -c 8-15 file1 &gt; file2</pre>
<p>To replace the word word1 with the word word2 in the file file1, we can use the sed command:</p>
<pre>sed "s/word1/word2/g" file1 &gt; file2</pre>
<p>This is often a quicker way to get results than even opening a text editor.</p>
<h2>Backup selected files only</h2>
<ul>
<li>Difficulty: Intermediate</li>
<li>Application: tar</li>
</ul>
<p>Want to use tar to backup only certain files in a directory? Then you&#8217;ll want to use the -T flag as follows. First, create a file with the file you want to backup:</p>
<pre>cat &gt;&gt; /etc/backup.conf
# /etc/passwd
# /etc/shadow
# /etc/yp.conf
# /etc/sysctl.conf
EOF</pre>
<p>Then run tar with the -T flag pointing to the file just created:</p>
<pre>tar -cjf bck-etc-`date +%Y-%m-%d`.tar.bz2 -T /etc/backup.conf</pre>
<p>Now you have your backup.</p>
<p><a href="http://www.intowire.com/iWiRE/blog/view/57463/more-helpful-commands-in-linux#.UDZyp9Pzxw4.wordpress">Read more&#8230;&#8230;</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/08/24/more-helpful-commands-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Selinux disable temporarily or permanently</title>
		<link>https://blog.linuxexplore.com/2012/08/04/selinux-disable-temporarily-or-permanently/</link>
		<comments>https://blog.linuxexplore.com/2012/08/04/selinux-disable-temporarily-or-permanently/#comments</comments>
		<pubDate>Sat, 04 Aug 2012 08:06:12 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[/etc/selinux/config]]></category>
		<category><![CDATA[/selinux/enforce]]></category>
		<category><![CDATA[command cat]]></category>
		<category><![CDATA[disable selinux]]></category>
		<category><![CDATA[good security]]></category>
		<category><![CDATA[intowire]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Administrator]]></category>
		<category><![CDATA[Linux hacks]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[selinux]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=539</guid>
		<description><![CDATA[Sometime when you run an application in Linux, it starts and suddenly stops or just doesn&#8217;t work. Then you find that its selinux which is stopping you to run your application. Selinux is good security feature of Linux stop you to execute malicious applications. But it need to disable when you need to run your&#8230;]]></description>
				<content:encoded><![CDATA[<p>Sometime when you run an application in Linux, it starts and suddenly stops or just doesn&#8217;t work. Then you find that its <strong><em>selinux</em></strong> which is stopping you to run your application.</p>
<p><strong><em>Selinux</em></strong> is good security feature of Linux stop you to execute malicious applications. But it need to disable when you need to run your self developed application. You can check the selinux status by using following command:</p>
<blockquote><p># cat /selinux/enforce</p>
<p>1</p></blockquote>
<p>If it will show 1, that means selinux enforcing is enabled.</p>
<p>You can disable that selinux temporarily or permanently. Use following methods to disable it.</p>
<p><strong>Disable Temporarily:</strong></p>
<p>To disable selinux temporarily set the 0 to <em><strong>/selinux/enforce</strong></em> file.</p>
<blockquote><p># echo 0 &gt; /selinux/enforce</p></blockquote>
<p><a href="http://www.intowire.com/iWiRE/blog/view/49248/selinux-disable-temporarily-or-permanently#.UBzW4Tj3vpQ.wordpress">Read more</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/08/04/selinux-disable-temporarily-or-permanently/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Can Linux crashes in just one command?</title>
		<link>https://blog.linuxexplore.com/2012/07/29/can-linux-crashes-in-just-one-command/</link>
		<comments>https://blog.linuxexplore.com/2012/07/29/can-linux-crashes-in-just-one-command/#comments</comments>
		<pubDate>Sun, 29 Jul 2012 10:30:02 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[fork bomb]]></category>
		<category><![CDATA[intowire]]></category>
		<category><![CDATA[limits.conf]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux crash]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[ulimit]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=503</guid>
		<description><![CDATA[After a very nice discussion over Linux vs Windows between the group members, all the Linux &#38; Windows supporter was trying to prove their OS better. One of the Windows supporter write a text string (can say a command) to execute in a Linux terminal, which can crash it in just one enter. WARNING!!!: DON&#8217;T&#8230;]]></description>
				<content:encoded><![CDATA[<p>After a very nice discussion over Linux vs Windows between the group members, all the Linux &amp; Windows supporter was trying to prove their OS better.</p>
<p>One of the Windows supporter write a text string (can say a command) to execute in a Linux terminal, which can crash it in just one enter.</p>
<p><span style="color:#ff0000;"><strong>WARNING!!!:</strong> DON&#8217;T USE THIS IN YOUR RUNNING SYSTEM, YOU CAN CRASH IT WITH JUST ONE ENTER. IF YOU DO THAT ONLY YOU WILL BE RESPONSIBLE FOR THE CONSEQUENCES.</span></p>
<pre style="padding-left:30px;"># :(){ :|:&amp; };:</pre>
<p>And truly this command was doing the same, CRASHING THE LINUX IN JUST ONE ENTER.</p>
<p>Solution must be there, off course it is.</p>
<p style="text-align:center;"><a href="http://linuxexplore.files.wordpress.com/2012/07/300px-fork_bomb-svg.png"><img class="aligncenter size-full wp-image-505" title="300px-Fork_bomb.svg" src="http://linuxexplore.files.wordpress.com/2012/07/300px-fork_bomb-svg.png" alt="Fork bomb" width="300" height="185" /></a></p>
<p><a href="http://www.intowire.com/iWiRE/blog/view/45603/can-linux-crashes-in-just-one-command#.UBUNCHWhWoE.wordpress">Read full story</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/07/29/can-linux-crashes-in-just-one-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>All about Fuser in LINUX</title>
		<link>https://blog.linuxexplore.com/2012/07/28/all-about-fuser-in-linux/</link>
		<comments>https://blog.linuxexplore.com/2012/07/28/all-about-fuser-in-linux/#comments</comments>
		<pubDate>Fri, 27 Jul 2012 19:24:24 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[fuser]]></category>
		<category><![CDATA[intowire]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[ps]]></category>
		<category><![CDATA[socket]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=499</guid>
		<description><![CDATA[The fuser utility in Linux is a powerful tool. As the name suggests it gives information about file user or the process that is currently using the file or directory. But fuser functionality is not just limited to giving information about the process. The article explains how to use fuser utility with 5 practical examples.&#8230;]]></description>
				<content:encoded><![CDATA[<p>The fuser utility in Linux is a powerful tool. As the name suggests it gives information about file user or the process that is currently using the file or directory.</p>
<p>But fuser functionality is not just limited to giving information about the process. The article explains how to use fuser utility with 5 practical examples.</p>
<h3>1. Who is Using a File or Directory?</h3>
<p>This is the basic use of fuser command. i.e to Identify which processes are using a particular file or directory.</p>
<pre>$ fuser  .
./:                   3965c  4175c  4281c  4334c  4337c</pre>
<p><a href="http://www.intowire.com/iWiRE/blog/view/38608/all-about-fuser-in-linux#.UBLppEQG8vU.wordpress" target="_blank">Read full story</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/07/28/all-about-fuser-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is Network Address Translation?</title>
		<link>https://blog.linuxexplore.com/2012/07/28/what-is-network-address-translation/</link>
		<comments>https://blog.linuxexplore.com/2012/07/28/what-is-network-address-translation/#comments</comments>
		<pubDate>Fri, 27 Jul 2012 19:18:13 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[intowire]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[NAT]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[TCP/IP]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=496</guid>
		<description><![CDATA[Network Address Translation (NAT) is the process where a network device, usually a firewall, assigns a public address to a computer (or group of computers) inside a private network. The main use of NAT is to limit the number of public IP addresses an organization or company must use, for both economy and security purposes.&#8230;]]></description>
				<content:encoded><![CDATA[<p>Network Address Translation (NAT) is the process where a network device, usually a firewall, assigns a public address to a computer (or group of computers) inside a private network. The main use of NAT is to limit the number of public IP addresses an organization or company must use, for both economy and security purposes.</p>
<p><a href="http://www.intowire.com/iWiRE/blog/view/17637/what-is-network-address-translation#.UBLn-QRHJGQ.wordpress" target="_blank">Read complete story</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/07/28/what-is-network-address-translation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
