<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4462400795333408114</atom:id><lastBuildDate>Fri, 08 Nov 2024 16:49:21 +0000</lastBuildDate><category>linux</category><category>CLI</category><category>command line</category><category>File permissions</category><category>bash linux</category><category>fstab</category><category>mounting</category><category>su</category><category>-a</category><category>-l</category><category>BSD</category><category>Change directory</category><category>Command Line Interface</category><category>Editing text files</category><category>Environment</category><category>Managing</category><category>PATH</category><category>Understand command line</category><category>Unix</category><category>Using command line</category><category>cat</category><category>cd</category><category>chmod</category><category>chown</category><category>cp</category><category>echno</category><category>editing</category><category>filesystem</category><category>gedit</category><category>group</category><category>groupadd</category><category>groupdel</category><category>history</category><category>kate</category><category>list</category><category>logging root</category><category>login</category><category>ls</category><category>mv</category><category>permission</category><category>permissions</category><category>print working directory</category><category>pwd</category><category>rm</category><category>root</category><category>sell</category><category>shell script</category><category>sudo</category><category>switch user</category><category>symlink</category><category>tab completion</category><category>useradd</category><category>userdel</category><category>users</category><category>where you are in the command line</category><title>Ray´s Guide to Linux web Server</title><description>Guide to Linux web Server - Dive in to the world of Linux and power of your own web server</description><link>http://raysguidetolinuxwebserver.blogspot.com/</link><managingEditor>noreply@blogger.com (Andrée ray)</managingEditor><generator>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-4455066741366314505</guid><pubDate>Tue, 12 Jul 2011 09:33:00 +0000</pubDate><atom:updated>2011-07-13T16:46:43.820-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">fstab</category><category domain="http://www.blogger.com/atom/ns#">mounting</category><title>Making a Mount Point</title><description>Until now, we&#39;ve only talked about Fedora Cores convention for mount points Other Linux systems use different conventions, in order to make mount points name slightly more recognizable SuSE uses just /floppy as opposed to /media/floppy on Fedora. As you just figured out, naming convention is not standard. Remember, a mount point is merely another directory on the system. Why not use your own convention?&lt;br /&gt;
&lt;br /&gt;
For example, you can use the SuSE convention as mentioned above on your Fedora system;&lt;br /&gt;
&lt;code&gt;$ su&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;# mkdir /floppy&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;# mounr -t vfat /dev/fd0 /floppy&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
You could edit the fstab file to make it permanent.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://cache.gawkerassets.com/assets/images/17/2010/11/13-fstab.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;222&quot; src=&quot;http://cache.gawkerassets.com/assets/images/17/2010/11/13-fstab.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.builderau.com.au/i/s/unix_backup_james_3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/07/making-mount-point.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-5510812233770973514</guid><pubDate>Tue, 12 Jul 2011 00:35:00 +0000</pubDate><atom:updated>2011-07-11T17:35:44.369-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">fstab</category><title>The Filesystem Table (fstab) File</title><description>Many of the configuration options for your servers filesystem are contained in a single text file, /etc/fstab&lt;br /&gt;
&lt;br /&gt;
fstab, which is an abbreviation of &quot;filesystem table&quot;, provides instruction to the operating system as to where devices should me mounted.&lt;br /&gt;
&lt;br /&gt;
Each line of the fstab file contains five fields which, together, specify the configuration of a single device. Lets have a look;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Specifies the device&lt;/li&gt;
&lt;li&gt; The mount point&lt;/li&gt;
&lt;li&gt;What filesystem Linux should expect&lt;/li&gt;
&lt;li&gt;Mounting options&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;auto&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;mounted automatically&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt; noauto&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;not mounted automatically&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;owner&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;may only be mounted by owner&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;kudzu&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;will be checked for changes by Redhat kudzu system&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;rw&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;The filesystem will provide read and write access&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;ro&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;The filesystem will provide read only access&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;There are many more options but these are the one that we are interested in. In Fedora Default is equivalent to auto, owner, kudzu, rw.&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;The fifth colum is used by the dump backup utility to determine if this filesystem should be included in its backups the 0 value tells dump to ignore this filesystem for backup purposes&lt;/li&gt;
&lt;li&gt;The final column indicates whether the filesystem should be checked with the fsck (filesystem check) utility ex3 filesystems very rarely benifit from such a check if you want to perform such a check you should number the filesystems in the order which you´d like them checked, 1 for first, 2 for second, and so on.&lt;/li&gt;
&lt;/ol&gt;With a correctly formatted fstab file, using the mount command becomes much easier;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;$ su&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;# mount /media/flobby&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Here we&#39;ve specified only the mount point mount is able to look in fstab to identify the device to which this mount point relates</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/07/filesystem-table-fstab-file.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-4310075282108084519</guid><pubDate>Mon, 11 Jul 2011 23:48:00 +0000</pubDate><atom:updated>2011-07-11T16:48:31.166-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">filesystem</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">mounting</category><title>Mounting and Filesystem</title><description>The concept of devices - mount point and filesystem.&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;Mounting a Filesystem with the mount Command&lt;/h1&gt;Lets look at the process of mounting a floppy disk from the command line:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
$ su&lt;br /&gt;
# mount -t vfat /dev/fd0 /media/floppy &lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
The mount command loads a device´s filesystem into our servers filesystem. &lt;br /&gt;
The floppy device at /dev/fd0, and the devices filesystem is loaded in to /media/floppy mount point. We also need to tell Linux what kind of filesystem it needs to expect, in this case its a FAT32 filesystem (vfat).&lt;br /&gt;
&lt;br /&gt;
Before removing a floppy we could unmount it, thereby removing it from the filesystem We can do so using the unmount command.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
$ unmount /media/floppy&lt;/code&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/07/mounting-and-filesystem.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-1897461507109047796</guid><pubDate>Fri, 08 Jul 2011 02:10:00 +0000</pubDate><atom:updated>2011-07-07T19:10:19.983-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">group</category><category domain="http://www.blogger.com/atom/ns#">groupadd</category><category domain="http://www.blogger.com/atom/ns#">groupdel</category><category domain="http://www.blogger.com/atom/ns#">Managing</category><category domain="http://www.blogger.com/atom/ns#">useradd</category><category domain="http://www.blogger.com/atom/ns#">userdel</category><category domain="http://www.blogger.com/atom/ns#">users</category><title>Managing Users from the command line</title><description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Adding groups and accounts:&lt;/span&gt;&lt;br /&gt;
Adding accounts from the command line is not as easy as using the ls command. Because the commands used, useradd and groupadd, is not part of the default PATH variable. To use the command you can; first use the, export PATH=$PATH: /usr/sbin. This will ad the PATH for the active session. Or you could add the export command to .bashrc, a hidden file that is automatic run every time you run the bash sell.&amp;nbsp;I will use the second option in this tutorial.&lt;br /&gt;
&lt;br /&gt;
$ su&lt;br /&gt;
$ nano .bashrc&lt;br /&gt;
add the, export PATH=$PATH:/usr/sbin, at the bottom of the file and save/exit&lt;br /&gt;
$ groupadd testgroup&lt;br /&gt;
$ useradd -G testgroup -c &quot;test user&quot; \&lt;br /&gt;
&amp;gt;testuser&lt;br /&gt;
$ passwd testuser&lt;br /&gt;
&lt;br /&gt;
-G flag adds testuser to testgroup, -c gives full name. When we create new users the passwords are locked so you use the passwd and user to assign a password for that user.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Deleting accounts and groups:&lt;/span&gt;&lt;br /&gt;
Its basically the same format as creating groups and users. You use the commands, userdel and groupdel. One must love the simplicity of Linux =) Note however that the users home directory is intact; you might want to delete this directory as root.&lt;br /&gt;
&lt;br /&gt;
$ su&lt;br /&gt;
$ groupdel testgroup&lt;br /&gt;
$ userdel testuser&lt;br /&gt;
$ rm -rf /home/testuser/</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/07/managing-users-from-command-line.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-5752100574263954495</guid><pubDate>Thu, 07 Jul 2011 01:02:00 +0000</pubDate><atom:updated>2011-07-06T18:04:27.496-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Environment</category><category domain="http://www.blogger.com/atom/ns#">PATH</category><title>The PATH Environment Variable</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://images2.layoutsparks.com/1/232361/path-black-trees-sun.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;http://images2.layoutsparks.com/1/232361/path-black-trees-sun.jpg&quot; width=&quot;100%&quot; /&gt;&lt;/a&gt;&lt;/div&gt;All of the command line tools are binary files located in the filesystem. ls command, for example, actually lives in the directory /bin. But how does the shell know to find /bin/ls when you type in at the prompt?&lt;br /&gt;
&lt;br /&gt;
The shell looks in all the directories listed in its built in PATH variable, in search for file that has the same name as the command you&#39;r after. The PATH environment variable for default Ubuntu installation will look something like this:&lt;br /&gt;
&lt;br /&gt;
$ echo $PATH&lt;br /&gt;
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin&lt;br /&gt;
&lt;br /&gt;
So when you type a command the shell will first look at /opt/local/bin, is it there, no. Is it in /opt/local/sbin, no. and so forth untill it finds the binary file that matches the command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the article prior to this one, we made the script counter.sh. When we wanted to execute it we had to ./counter.sh. If that file would be in one of the PATH directories could just write counter.sh to run the script.&lt;br /&gt;
&lt;br /&gt;
Built-in variables such as PATH are known as environment variables. These are the variables that describe the environment in which a processs is running. Examples of other environment variables HOME, which contains the path of the user&#39;s home dir, and MAIL, which is the name of the file that stores the user&#39;s email. Environment variables work just like normal shell variables, exepr they can be accessed by programs that are launched from the shell too.&lt;br /&gt;
&lt;br /&gt;
To modify an environment variable, you use the export command:&lt;br /&gt;
&lt;br /&gt;
$ export PATH=$PATH:/home/user_name&lt;br /&gt;
$ echo $PATH&lt;br /&gt;
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/home/user_name&lt;br /&gt;
&lt;br /&gt;
We should now be able to run our scripts that we save in our home dir for the current session. However once you exit the shell its lost. Later in our guide we will have a look at how to save its default PATH variable whenever a shell is launched.</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/07/path-environment-variable.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-6137220174071094985</guid><pubDate>Wed, 06 Jul 2011 23:57:00 +0000</pubDate><atom:updated>2011-07-07T19:30:09.306-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">shell script</category><title>Programming the Shell</title><description>The Shell itself can be quite a powerful little programmng language. It supports looping, branching, variableseverything that constitutes a worthwhile programming environment. These shell programs, called shell scripts, are just text files on which executes permissions are set. The text files contain commands just like those you&#39;d type on the command line.&lt;br /&gt;
&lt;br /&gt;
Lets look at an example,&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ counter=0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ echo counter&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Once the variable counter is created, it&#39;s there until you close the terminal window. The value may change but the variable will be there untill declared shell variable.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;You can increment it with the operator (++)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ let counter++&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ echo counter&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Lets build a simple script, called counter_test.sh, that will keep on counting until we tell it to stop by pressing Ctrl+C (note- Ctrl+C aborts any process on the command line (sending interrupt signal)).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;The first line of any chell script is what&#39;s commonly called a shebang: a pound sign, followed by an exclamation point, followed by the path to the shell.&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;/bin/sh is a standard shortcut to the shell program on Linux systems. Usually, this file is just a link to the actual shell program )e.g. /bin/bash) but using the standard name ensures that you r script till stull work on a system that uses a different shell.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$nano counter.sh&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;And then write the program&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#!/bin/sh&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Every shell script must begin with this. The next line of our script will set a value fo the counter vartiable:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;counter=0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;In other words we are starting at zero. Next we&#39;ll add a loop to the program. We&#39;ll make it an infinite loop, so the user will have to send an interrupt signal to quit the program.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;while true;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;do&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; # &lt;i&gt;content of loop &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;done&lt;i&gt; &lt;/i&gt;&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Now all we have to do is the content. Printing the varianle counter and incrementing it with the let command&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;while true;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; echo $counter&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; let counter++&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;sleep 1;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Save the file&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The last thing we must do is change its permissions.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$ chmod u+x counter.sh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Execute it&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;./counter.sh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;This will tell the shell to execute a file named counter.sh within the current working directory. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/07/programming-shell.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-8075484209286366961</guid><pubDate>Wed, 06 Jul 2011 23:01:00 +0000</pubDate><atom:updated>2011-07-06T16:17:17.859-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CLI</category><category domain="http://www.blogger.com/atom/ns#">command line</category><category domain="http://www.blogger.com/atom/ns#">history</category><title>Command History</title><description>The bash shell records a limited history of recently issued commands (up to 1000 default). You can scroll through the command history.&lt;br /&gt;
&lt;br /&gt;
To se the fill history,&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ &lt;b&gt;history&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Will give you the recent command in chronological order.&lt;br /&gt;
&lt;br /&gt;
The history is also searchable. Hitting Ctrl+R will change the prompt to reverse-i-search; now,&amp;nbsp; the Shell&amp;nbsp; will find within the history the most recent command that contains that entered string.&amp;nbsp; Enter to execute, esc to return to normal mode.&lt;br /&gt;
&lt;br /&gt;
!! executes the last command in the history file.&lt;br /&gt;
&lt;br /&gt;
!partial - command will execute the last command beginning with partial -command. !ech would re-run the last echo command.</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/07/command-history.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-1318303394506130667</guid><pubDate>Wed, 06 Jul 2011 22:56:00 +0000</pubDate><atom:updated>2011-07-06T15:56:08.527-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">bash linux</category><category domain="http://www.blogger.com/atom/ns#">command line</category><category domain="http://www.blogger.com/atom/ns#">tab completion</category><title>Tab Completion</title><description>One of the most useful features of many shells is tab completion. When a partial command or filename is entered on the command line, and the user presses the Tab key, the command or filename will be completed for you. Ex, typing cat hello, followed by tab, will result in cat Hello\ World.txt if such a file exist in the directory.&lt;br /&gt;
&lt;br /&gt;
If you double click tab while typing you get the full command, or if there is more options you get sugestions on them.</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/07/tab-completion.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-5534527728505791616</guid><pubDate>Thu, 30 Jun 2011 21:11:00 +0000</pubDate><atom:updated>2011-06-30T14:11:26.536-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">bash linux</category><category domain="http://www.blogger.com/atom/ns#">sell</category><title>Introducing the Shell</title><description>Both in a GUI interface and a CLI we interact with the system. In this chapter we take a insight look at the advanced features of the command line.&lt;br /&gt;
&lt;br /&gt;
The default shell is often Bash (Bourne Again Shell). Bash is a modern rewrite of the original Bourne shell, sh, witch was written 1977. Even tho there are many shells available, like tcsh, csh and ksh, bash is increasingly popular due to its useful featureset. We will look in detail of some of those features here.</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/introducing-shell.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-6527410067031940781</guid><pubDate>Thu, 30 Jun 2011 20:29:00 +0000</pubDate><atom:updated>2011-06-30T13:29:47.006-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CLI</category><category domain="http://www.blogger.com/atom/ns#">command line</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">rm</category><title>Deleting files with rm command</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://t0.gstatic.com/images?q=tbn:ANd9GcQ4y0t_4ZIYBlRQcCmNFpBktVatEyu19faypWIVZtLeGXf4Mfu-&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://t0.gstatic.com/images?q=tbn:ANd9GcQ4y0t_4ZIYBlRQcCmNFpBktVatEyu19faypWIVZtLeGXf4Mfu-&quot; /&gt;&lt;/a&gt;&lt;/div&gt;You remove files at the prompt by using the &lt;i&gt;pm &lt;/i&gt;command, like so&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ &lt;b&gt;rm my_copy.txt&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
In order to remove a directory and everything in it, we must ass the &quot;recursive&quot; flag (&lt;i&gt;-r)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ &lt;b&gt;rm -r my_dir&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Normally we must have write permission in order to delete it; however, if you have write permissions on the directory containing the file, we can if we confirm the action!&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;If you attempt to delete a file you don´t have read permissions, you´ll be asked if you really want to deleter it.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;To force a deletion without further cocnfirmation, add th -f flag to the comand, like so:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ &lt;b&gt;rm -rf _my_dir/my_copy.txt&lt;/b&gt;&lt;/span&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/deleting-files-with-rm-command.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-1076280948440545879</guid><pubDate>Tue, 28 Jun 2011 14:09:00 +0000</pubDate><atom:updated>2011-06-30T13:37:50.165-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">File permissions</category><category domain="http://www.blogger.com/atom/ns#">linux</category><title>Changing file permissions with chmod</title><description>To change the permissions on a file, follow:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ chmod o+w a_file&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
Here we grant the other users the write access. The o character stands for other, &amp;nbsp;w stands for write.&lt;br /&gt;
&lt;br /&gt;
list of flags:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;u = user&lt;/li&gt;
&lt;li&gt;g = group&lt;/li&gt;
&lt;li&gt;o = other&amp;nbsp;&lt;/li&gt;
&lt;li&gt;r &amp;nbsp;= read&lt;/li&gt;
&lt;li&gt;w = write&lt;/li&gt;
&lt;li&gt;x = execute&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;Note that this is just one way we can change permissions to files and directories. Another way is to a numerical syntax, however my goal is not to learn you every single way we can make operations on our system. If you like to read up on other ways to do it, pleas do as my old teacher you to say &quot;Google it!&quot;&lt;/div&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/changing-file-permissions-with-chmod.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-6876940883735706772</guid><pubDate>Tue, 28 Jun 2011 14:00:00 +0000</pubDate><atom:updated>2011-06-28T07:00:08.156-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CLI</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">su</category><category domain="http://www.blogger.com/atom/ns#">switch user</category><title>Switching user woth the su and exit command</title><description>You can switch to root user, follow:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ su&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;password:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;note the changes at the prompt as you change user. You exit back to the original user by, follow:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ exit&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Switch to a user of choice, follow&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ su user&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Where user is the name of the account you want to use.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/switching-user-woth-su-and-exit-command.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-5929533574599383284</guid><pubDate>Tue, 28 Jun 2011 13:54:00 +0000</pubDate><atom:updated>2011-06-28T06:54:04.953-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CLI</category><category domain="http://www.blogger.com/atom/ns#">cp</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">mv</category><title>Copying and moving Files with cp &amp; mv</title><description>To copy a file, follow the syntax:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ cp my_file a_dir/file_name&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Where my_file is the name of the file you want to copy and a_dir/file_name is the name and direcoty you want to use.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;To copy an entire directory, follow:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ cp -r a_dir&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;a_dir/file_name&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;To move a file use the mv command, follow:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mv a_file a_dir/file_name&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;If you just want to rename the file just place it in the same directory. &amp;nbsp;Effectively you can also rename the file as you move it.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/copying-and-moving-files-with-cp-mv.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-3191851802588746186</guid><pubDate>Tue, 21 Jun 2011 23:23:00 +0000</pubDate><atom:updated>2011-06-21T16:23:01.813-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cat</category><category domain="http://www.blogger.com/atom/ns#">echno</category><category domain="http://www.blogger.com/atom/ns#">linux</category><title>Printing - echo and cat</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht9yCkFjvYzdxuHOj6EFliJGfelVNZD5PQFDceofoe7WvG9hebP2TpcPFTH01LYfL90oRSNmMA2n50aXvMhOdfSoVt0vZEfe-EdT2O2EC3tYSQUHlLh-lGZDsG6G5TrU38DcPCWRgdLmhp/s1600/hello+world.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht9yCkFjvYzdxuHOj6EFliJGfelVNZD5PQFDceofoe7WvG9hebP2TpcPFTH01LYfL90oRSNmMA2n50aXvMhOdfSoVt0vZEfe-EdT2O2EC3tYSQUHlLh-lGZDsG6G5TrU38DcPCWRgdLmhp/s1600/hello+world.jpeg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;The echo command simply sends output to the screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;code&gt;[ray@domain ~]$&amp;nbsp;echo&lt;/code&gt;&lt;code&gt;&lt;b&gt;&amp;nbsp;&quot;Hello, World!&quot;&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace;&quot;&gt;Hello, wold!&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
The cat command opens a file and writes its content to the screen. Keep in mind that&amp;nbsp;certain characters are reserved for special use on the command line. You´ll often want to use these characters in command options or in filenames. To use theses characters, you must&amp;nbsp;&lt;i&gt;escape&amp;nbsp;&lt;/i&gt;them, prefix them with a backslash caracter, like so&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;[ray@domain ~]$ &lt;b&gt;cat Hello\ World.txt&lt;/b&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;Hello, wold!&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/printing-echo-and-cat.html</link><author>noreply@blogger.com (Andrée ray)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht9yCkFjvYzdxuHOj6EFliJGfelVNZD5PQFDceofoe7WvG9hebP2TpcPFTH01LYfL90oRSNmMA2n50aXvMhOdfSoVt0vZEfe-EdT2O2EC3tYSQUHlLh-lGZDsG6G5TrU38DcPCWRgdLmhp/s72-c/hello+world.jpeg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-640025987956190733</guid><pubDate>Mon, 20 Jun 2011 15:10:00 +0000</pubDate><atom:updated>2011-06-20T08:10:27.507-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cd</category><category domain="http://www.blogger.com/atom/ns#">Change directory</category><category domain="http://www.blogger.com/atom/ns#">linux</category><title>Change directory</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwP0NIa6p46GxFOfQfFKdAScn1onGS7rufRtJAOsUm9LyHMWoowUNaZ_yeVs4Iql91RzTNiCKRovXiCEVxibxvegG8llmkZDP2LpUZzsc2Bn5ztULvE-I6DxgnwqXz8BuKAw_xwUuZseQk/s1600/unix.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwP0NIa6p46GxFOfQfFKdAScn1onGS7rufRtJAOsUm9LyHMWoowUNaZ_yeVs4Iql91RzTNiCKRovXiCEVxibxvegG8llmkZDP2LpUZzsc2Bn5ztULvE-I6DxgnwqXz8BuKAw_xwUuZseQk/s1600/unix.jpeg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;The &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;cd &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;(Change Directory)&amp;nbsp;c&lt;/span&gt;ommand, changes the current working directory to the one specified immediately after the command, ex&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@domain ~]$ &lt;b&gt;cd /home/ray/Movies&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@domain Movies]$&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Used with ~ or by itself it returns you to your home directory.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@domain Movies]$ cd ~/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@domain ~]$&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;You can move to the directory´s parent by using cd .. command&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@domain ~]$cd .. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@domain home]$ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/change-directory.html</link><author>noreply@blogger.com (Andrée ray)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwP0NIa6p46GxFOfQfFKdAScn1onGS7rufRtJAOsUm9LyHMWoowUNaZ_yeVs4Iql91RzTNiCKRovXiCEVxibxvegG8llmkZDP2LpUZzsc2Bn5ztULvE-I6DxgnwqXz8BuKAw_xwUuZseQk/s72-c/unix.jpeg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-6652746788515481820</guid><pubDate>Mon, 20 Jun 2011 14:45:00 +0000</pubDate><atom:updated>2011-06-20T07:45:01.714-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">-a</category><category domain="http://www.blogger.com/atom/ns#">-l</category><category domain="http://www.blogger.com/atom/ns#">CLI</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">list</category><category domain="http://www.blogger.com/atom/ns#">ls</category><title>Listing Files</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVqJJEv-HrQz-EIBwq-Kw9IEZ-NdUkMTyLBUUIV2Lx_7jYc0P9eM-D996K1QyIhBcz6gw6bh1TJdVfshCJ2GNYTR7K1_yI-WCFvKidzMSFxMBLqLVF8Wl9Jiec00U7BfBa-6jPprNLfDRj/s1600/search.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVqJJEv-HrQz-EIBwq-Kw9IEZ-NdUkMTyLBUUIV2Lx_7jYc0P9eM-D996K1QyIhBcz6gw6bh1TJdVfshCJ2GNYTR7K1_yI-WCFvKidzMSFxMBLqLVF8Wl9Jiec00U7BfBa-6jPprNLfDRj/s1600/search.jpeg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;The &lt;i&gt;ls (list) &lt;/i&gt;command, used by itself, lists the content of the working directory.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@domain ~]$ &lt;b&gt;ls&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Desktop helloworld.txt&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;You can also retrieve a list of the files in another directory by adding the directory name, ex&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@domain ~]$ &lt;b&gt;ls /home/ray&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;movies pictures documents music public desktop&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Using ls by itself will show you the names of tiles in the directory, if you want &amp;nbsp;all &amp;nbsp;details you can add the &lt;i&gt;-l &lt;/i&gt;flag to the command, ex.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@domain ~]$&amp;nbsp;&lt;b&gt;ls -l&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;total 16 files&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;drwxr-xr-x 2 ray staff 4096 5 Sep 15:21 Desktop&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;-rw-rw-r-- 1 ray staff 13 8 Sep 07:30 Hello World.txt&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;The data found above:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;The first column represents the file permissions in the format&amp;nbsp;discussed&amp;nbsp;in section 1.2 &lt;a href=&quot;http://raysguidetolinuxwebserver.blogspot.com/2011/06/file-permissions.html&quot;&gt;File Persmissions&lt;/a&gt;. The first character tells us if the file is a directory or other (d equals a directory). The next nine characters show the permissions to (in order) Owner, Group, and Others.&lt;/li&gt;
&lt;li&gt;The next column only useful for directories, as it tells you the number of files within it.&lt;/li&gt;
&lt;li&gt;The next two columns identifies the owner and group&lt;/li&gt;
&lt;li&gt;Next column is the size of the files in bytes&lt;/li&gt;
&lt;li&gt;Next is the date and time of last modified, Hello World.txt above is modified September 8 at 07:30&lt;/li&gt;
&lt;li&gt;Finally, the name of file&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;Hidden files in Linux start with a period. If you want to hide the Hello World.txt file you would change the name to .Hello World.txt (mind the dot in front of the filename!). Programs store user-specific configuration files by hidden using the period in front of the file. To see hidden files you use the flag -a, which can be used in conjunction with -l flag, ex.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@domain ~]$ &lt;b&gt;ls -la&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;total 16 files&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;drwx------ 13 ray &amp;nbsp;staff 714 19 Jun 20:24 &amp;nbsp;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;drwxr-xr-x &amp;nbsp;5 root admin 306 17 June 14:44 ..&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;-re------- &amp;nbsp;1 ray &amp;nbsp;staff &amp;nbsp;14 08 June 15:55 .trash&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;drwxr-xr-x 2 ray staff 4096 5 Sep 15:21 Desktop&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;-rw-rw-r-- 1 ray staff 13 8 Sep 07:30 Hello World.txt&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;At the top of the listing are two directories, &quot;.&quot; and &quot;..&quot;, These are shortcuts to the current directory and the parent directory, respectively we will have a look at theses later on.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/listing-files.html</link><author>noreply@blogger.com (Andrée ray)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVqJJEv-HrQz-EIBwq-Kw9IEZ-NdUkMTyLBUUIV2Lx_7jYc0P9eM-D996K1QyIhBcz6gw6bh1TJdVfshCJ2GNYTR7K1_yI-WCFvKidzMSFxMBLqLVF8Wl9Jiec00U7BfBa-6jPprNLfDRj/s72-c/search.jpeg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-4702224152845735265</guid><pubDate>Mon, 20 Jun 2011 13:38:00 +0000</pubDate><atom:updated>2011-06-20T06:38:04.135-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CLI</category><category domain="http://www.blogger.com/atom/ns#">command line</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">print working directory</category><category domain="http://www.blogger.com/atom/ns#">pwd</category><category domain="http://www.blogger.com/atom/ns#">where you are in the command line</category><title>Orienting in the CLI</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYjFNuA1dzLqkLHs4JhqQuYrs8_F7e887bpl-ZmuRbFBCKCNmslhQCVsek4DMvmCpMtyq02_HGW1Q116Lbho0IrEa0jNweB1BATVyDnPzVN6loyZFrWjYdHHMCOWapzwNWV_Vxb1Ia-JkT/s1600/images.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYjFNuA1dzLqkLHs4JhqQuYrs8_F7e887bpl-ZmuRbFBCKCNmslhQCVsek4DMvmCpMtyq02_HGW1Q116Lbho0IrEa0jNweB1BATVyDnPzVN6loyZFrWjYdHHMCOWapzwNWV_Vxb1Ia-JkT/s1600/images.jpeg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;With a GUI you can have several directories open at once. However, when using the command line, we can only work within one directory at a time. The active directory is called the &lt;i&gt;working directory. &lt;/i&gt;Use the &lt;i&gt;pwd (Print Working Directory) &lt;/i&gt;to find out which directory you are currently in.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@my.domain ~]$ &lt;b&gt;pwd&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/home/ray&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Tip &lt;/b&gt;- Your home directory, /home/your_account, is referred to as ~. If you look at the syntax above, you can se the ~ at the prompt. If you move around in the filesystem, you will see the command prompt change to reflect the directory that you are in, so you don´t have to constantly use the &lt;i&gt;pwd &lt;/i&gt;command to find out where you are.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/orienting-in-cli.html</link><author>noreply@blogger.com (Andrée ray)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYjFNuA1dzLqkLHs4JhqQuYrs8_F7e887bpl-ZmuRbFBCKCNmslhQCVsek4DMvmCpMtyq02_HGW1Q116Lbho0IrEa0jNweB1BATVyDnPzVN6loyZFrWjYdHHMCOWapzwNWV_Vxb1Ia-JkT/s72-c/images.jpeg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-4093300838175177915</guid><pubDate>Thu, 16 Jun 2011 06:59:00 +0000</pubDate><atom:updated>2011-06-15T23:59:47.913-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">logging root</category><category domain="http://www.blogger.com/atom/ns#">login</category><category domain="http://www.blogger.com/atom/ns#">root</category><category domain="http://www.blogger.com/atom/ns#">su</category><category domain="http://www.blogger.com/atom/ns#">sudo</category><title>--- LOGGING IN AS ROOT ---</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://t2.gstatic.com/images?q=tbn:ANd9GcQypT6q5GMasIuZJgVhnBZOYgvhZzy6GwjfSFFw0H4JPEgmyUox7Q&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://t2.gstatic.com/images?q=tbn:ANd9GcQypT6q5GMasIuZJgVhnBZOYgvhZzy6GwjfSFFw0H4JPEgmyUox7Q&quot; /&gt;&lt;/a&gt;&lt;/div&gt;To login as root you need to enter the command &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;su &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;(switch user).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@my_system ~]$ &lt;b&gt;su&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;password:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;------------------------------------------&lt;/span&gt;&lt;br /&gt;
You are&amp;nbsp;prompted&amp;nbsp;for the password to the root account. It maybe that you need to do &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo su &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;I will explain why later on. Don´t stay logged in as root no more than you need. If you only need to do one command as root its a better practice to simply use the command &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;in front of the command you want executed. Sudo is an escape to root just for that command, after which you are returned to you normal user mode. If you have administrative tasks to do and switch to root using &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;su &lt;/span&gt;you simply go back to a account by executing the command&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;su user&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;. &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;You could also simply issue &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;exit &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;to return to your account.&lt;/span&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/logging-in-as-root.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-6044179844271462463</guid><pubDate>Thu, 16 Jun 2011 06:44:00 +0000</pubDate><atom:updated>2011-06-15T23:44:40.682-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CLI</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">Using command line</category><title>--- USING THE COMMAND LINE ---</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://t3.gstatic.com/images?q=tbn:ANd9GcT9B-ury9WXyb-LSPVcDXu64rU5zSUVVUdUq7BZcVR9Z73yVvsj&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://t3.gstatic.com/images?q=tbn:ANd9GcT9B-ury9WXyb-LSPVcDXu64rU5zSUVVUdUq7BZcVR9Z73yVvsj&quot; /&gt;&lt;/a&gt;&lt;/div&gt;The command line can be views as an alternative to the window view (GUI). The Command line is known as CLI Command Line Interface. In the command line gives you access to a much more powerful, low level operating system functions. The GUI Graphic User Interface, is a high-lever abstraction environment don´t give you this power. Icons and menues limits the access to what the people who made it has given you. When you click a icon, underneath actual commands are run. The GUI is a limited additional layer between the operator and operating system, in which a restricted range of functions are represented by pretty pictures. By using the CLI you operate in the same lever as your system.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Tip: &lt;/b&gt;Low-level and high-level, implies a hierarchy och functionality. Functions of the lowest level communicate with the kernel (system core) directly. High-level tools do more work themselves, offering more functionality and increase safety. Imagen you use the &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;rm &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;command, its fast end effective, but you there is no easy way to recover that file. Using a GUI to remove files insist that you move the file to trash instead of actually removing the file from the filesystem. This gives you a chans to recover it with ease. Of course you could (and I do) simply move files to a directory you name trash&amp;nbsp;&lt;/span&gt;before you remove it from you system.&amp;nbsp;&amp;nbsp;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/using-command-line.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-2135997541788850386</guid><pubDate>Wed, 15 Jun 2011 19:56:00 +0000</pubDate><atom:updated>2011-06-15T12:59:10.545-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CLI</category><category domain="http://www.blogger.com/atom/ns#">command line</category><category domain="http://www.blogger.com/atom/ns#">Command Line Interface</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">Understand command line</category><title>--- UNDERSTANDING THE COMMAND LINE ---</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://t2.gstatic.com/images?q=tbn:ANd9GcRIp_8Nq1B7xme9fGkqhGCHRYxyUb2tUXlaQ9onY4WLg8Klm8fo&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://t2.gstatic.com/images?q=tbn:ANd9GcRIp_8Nq1B7xme9fGkqhGCHRYxyUb2tUXlaQ9onY4WLg8Klm8fo&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Unlike windows, the GUI is completely optional in Linux. You can, if you like, run your Linux systen with no graphical environment at all. As Linux&amp;nbsp;evolved different GUIs have been built on top of it. The command line will be your best friend and weapon, it allows you to perform actions that are not easy to administrate from the desktop (or GUI&amp;nbsp;Graphic&amp;nbsp;User Interface).&lt;br /&gt;
&lt;br /&gt;
We will use Terminal to gain access to the command line. Now lets look at a real-life example that uses the command line to meet specific need. Once you understand the components of the command line and the complexity of the GUI, you will start to love the practical utility of the command line.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[ray@mycomputer ~]$ &lt;b&gt;find /var/backup/* -ctime +5 -exec rm {} \;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;This command removes my system backups that are more than 5 days old. The command uses the &lt;i&gt;find &lt;/i&gt;command to search for files in the /var/backup directory. For each file that the the find tools locates, it runs the &lt;i&gt;rm&lt;/i&gt;&amp;nbsp;command, wich stand for and executes remove.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
This looks complicated, however would you do the same in the GUI you would have to complete up to 9 steps to have the same result.&lt;br /&gt;
&lt;br /&gt;
In real life you would not actually run this command three times a week, no the&amp;nbsp;beauty of the command line is that you can automate it with scripts</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/understanding-command-line.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-2680961496729248131</guid><pubDate>Wed, 15 Jun 2011 19:08:00 +0000</pubDate><atom:updated>2011-06-15T12:58:53.975-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">editing</category><category domain="http://www.blogger.com/atom/ns#">Editing text files</category><category domain="http://www.blogger.com/atom/ns#">gedit</category><category domain="http://www.blogger.com/atom/ns#">kate</category><category domain="http://www.blogger.com/atom/ns#">linux</category><title>--- EDITING TEXT FILES ---</title><description>A reasonable command of a Linux-compatible&amp;nbsp;text editor is&amp;nbsp;crucial for you as a administrator. Most of the configuration is done via text-files. Linux is replete with text editors.&lt;br /&gt;
&lt;br /&gt;
In fedora you have two robust GUI text editors: gedit and Kate. gedit is hte default for Gnome desktop environment, and Kate is for KDE (On linux machines you can choose witch desktop environment you want to use).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://t1.gstatic.com/images?q=tbn:ANd9GcQaeiPxskD6lGfydzLO6Ba-mitIaKTUhwigDTYE0PUpi2fqQJl-&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://t1.gstatic.com/images?q=tbn:ANd9GcQaeiPxskD6lGfydzLO6Ba-mitIaKTUhwigDTYE0PUpi2fqQJl-&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;gedit&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Gnomes default text editor, it offers full range of features, including:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Full support for internationalized text, including the important UTF-8&lt;/li&gt;
&lt;li&gt;Tabbed multi-document interface&lt;/li&gt;
&lt;li&gt;Syntax highlighting&lt;/li&gt;
&lt;li&gt;Plugins and a plugin manger&lt;/li&gt;
&lt;li&gt;A complete&amp;nbsp;preference&amp;nbsp;interface&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;In addition to these standard features, plugins can be added to give gedit the following functions&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Spell checker&lt;/li&gt;
&lt;li&gt;Insert date and time&lt;/li&gt;
&lt;li&gt;Word count&lt;/li&gt;
&lt;li&gt;Change case of selected text&lt;/li&gt;
&lt;li&gt;Indent or unident blocks of text&lt;/li&gt;
&lt;li&gt;Ascertain the difference between two documents or files&lt;/li&gt;
&lt;li&gt;Insert output from the command line&lt;/li&gt;
&lt;li&gt;Markup language tag list for common markup languages such as HTML, LaTeX, and more.&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;b&gt;Tip&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Most GUI applications are written for one desktop environment or another. They ofter follow a naming convention for consistency.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://t1.gstatic.com/images?q=tbn:ANd9GcTlqDLW3prPpQc2AHjjosTpX61QoeNSLc2waYb6fl_vwduSt1D4sw&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://t1.gstatic.com/images?q=tbn:ANd9GcTlqDLW3prPpQc2AHjjosTpX61QoeNSLc2waYb6fl_vwduSt1D4sw&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Kate&lt;/span&gt;&lt;/div&gt;&lt;div&gt;The KDE counterpart, KDE Advanced Text Editor.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Like gedit, Kate is a multi-view editor: it allows you to open and edit multiple documents in the same window. Kate offers a full range of other capabilities that make it a very powerful text editor&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Edit all kind of text files&lt;/li&gt;
&lt;li&gt;Powerful syntax highlighting engine is extensible via XML files&lt;/li&gt;
&lt;li&gt;Offers code folding capabilities for many programming languages&lt;/li&gt;
&lt;li&gt;Split window view&lt;/li&gt;
&lt;li&gt;Choose the encoding you want to use&lt;/li&gt;
&lt;li&gt;Boasts built-in terminal emulation.&lt;/li&gt;
&lt;li&gt;Sidebar display a list of open documents, a filesystem browser and more&lt;/li&gt;
&lt;li&gt;Handy plugin interface for third-party plugins&lt;/li&gt;
&lt;li&gt;Projekt handling capabilities&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;Kate is a bit more friendly, and offer greater&amp;nbsp;flexibility&amp;nbsp;for&amp;nbsp;editing&amp;nbsp;configuration files and writing shell scripts, than many other editors. The syntax highlighting are unsurpassed, as Kate makes available a full range of languages and styles. Kate provide such features as a open document listing&lt;/div&gt;&lt;/div&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/editing-text-files.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-5430839800103604942</guid><pubDate>Wed, 15 Jun 2011 13:15:00 +0000</pubDate><atom:updated>2011-06-15T12:59:36.624-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">BSD</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">symlink</category><category domain="http://www.blogger.com/atom/ns#">Unix</category><title>--- SYMLINK ---</title><description>Most People understand the concept of shortcuts. A shortcut is really a pointer from one location in to a file in another area of the system. Shortcut in Windows and Linux are about the same thing. They are mere abstract representation of the original file. &lt;br /&gt;
&lt;br /&gt;
One important difference between Win and Linux is that Linux creates a symbolic link (symlink) that can be treated exactly as if it were the file for most purposes. Symlinks are powerful peace of abstraction because it seams as if a file is in multiple places at once.&lt;br /&gt;
&lt;br /&gt;
You create it in GUI by right-clicking on the file or directory, and select Make Link. You can then drag drop and even rename it if you like. In a shell use ln with attribute -s&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://t3.gstatic.com/images?q=tbn:ANd9GcQ9JNuDhcVb7eNQHhe772r2cLX35qnhXaGCsCYyBx9mAA1GQOpW&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://t3.gstatic.com/images?q=tbn:ANd9GcQ9JNuDhcVb7eNQHhe772r2cLX35qnhXaGCsCYyBx9mAA1GQOpW&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/symlink.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-6507095069558642270</guid><pubDate>Wed, 15 Jun 2011 12:44:00 +0000</pubDate><atom:updated>2011-06-15T13:00:21.257-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">chmod</category><category domain="http://www.blogger.com/atom/ns#">chown</category><category domain="http://www.blogger.com/atom/ns#">File permissions</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">permission</category><category domain="http://www.blogger.com/atom/ns#">permissions</category><title>--- FILE PERMISSIONS ---</title><description>Linux uses the most granular file permissions of any system today. As we &lt;br /&gt;
have seen the granular is due, in part, to the fact that everything gin &lt;br /&gt;
Linux is a file. Everything is editable, depending on who is editing and &lt;br /&gt;
how the permissions are set. &lt;br /&gt;
&lt;br /&gt;
In the most basic Linux permissions is broken down to three sets of &lt;br /&gt;
Permissions:&lt;br /&gt;
&lt;br /&gt;
Owner (or user)&lt;br /&gt;
&lt;br /&gt;
The permissions granted to the user who owns the file&lt;br /&gt;
&lt;br /&gt;
Group&lt;br /&gt;
&lt;br /&gt;
The permissions granted to specific group of users. Users can be &lt;br /&gt;
Added to any number of available groups.&lt;br /&gt;
&lt;br /&gt;
Other&lt;br /&gt;
&lt;br /&gt;
The permissions granted to anyone who is not the owner, ot &lt;br /&gt;
member of available groups. &lt;br /&gt;
&lt;br /&gt;
Each of these sets can grant any combination of the following &lt;br /&gt;
permissions:&lt;br /&gt;
&lt;br /&gt;
Read&lt;br /&gt;
Write&lt;br /&gt;
Execute&lt;br /&gt;
&lt;br /&gt;
What’s especially interesting in the Linux permission structure is how &lt;br /&gt;
these sets of three permissions interact. A particular user may belong &lt;br /&gt;
to a group that can only read, however the user might be the owner and &lt;br /&gt;
can then write.&lt;br /&gt;
&lt;br /&gt;
-- Text view and Number view&lt;br /&gt;
&lt;br /&gt;
I will only go in to text and number view, if you want to se permissions &lt;br /&gt;
in the graphical view simply right click it. To view permissions in a &lt;br /&gt;
shell use the command ls with the attribute -l &lt;br /&gt;
&lt;br /&gt;
The text view is made up of ten characters. First indicates the file &lt;br /&gt;
type: if the file is a directory, this character till be d; if its a &lt;br /&gt;
regular file, it will be -. The remaining nice characters indicate the &lt;br /&gt;
read, write, and execute permissions for the owner, group, and other.&lt;br /&gt;
For example, -rw-rw-r-- represent a regular file with read and write &lt;br /&gt;
permissions to owner and group. And only read for other.&lt;br /&gt;
&lt;br /&gt;
The numbers are more compact then text view. The numbers represent, from &lt;br /&gt;
left to right, the permissions given to the owner, the group, and other.&lt;br /&gt;
&lt;br /&gt;
-- Last change&lt;br /&gt;
&lt;br /&gt;
This field identifies the date and time at which the file was last &lt;br /&gt;
changed</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/file-permissions.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4462400795333408114.post-2748987102067261181</guid><pubDate>Tue, 14 Jun 2011 21:48:00 +0000</pubDate><atom:updated>2011-06-14T15:09:21.747-07:00</atom:updated><title>---- THE LINUX FILESYSEM ----</title><description>&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.5px Courier}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.5px Courier; min-height: 13.0px}
span.Apple-tab-span {white-space:pre}
&lt;/style&gt;   &lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;My first post at this blog will be about the linux filesystem. Its important for you to understand, and should be the first thing you learn wen undertaking the art of administrating a Linux Server. I hope to be a good resource for you and that you will enjoy your stay at this site!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is no drives, only partitions under Linux. To muddy the&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Waters a Little more, the partitions actual locations on the hard drive&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;are not identified clearly.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Linux hides the unnecessary details from you. The operating kernel is&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;sorted in a directory called /boot/, Firefox is in /us/lib/, your&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;personal data like photos and stuff is stored in /home/username/photos&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;and temporary files are stored in /tamp/. There are no signs of where&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;these files actually reside on different hard drives.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Linux filesystem assigns each partition a different mount point: a&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;directory through which we can access the partitions. The / is the top&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;of the hierarchy&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;--- The ext3 Filesystem&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Ext3 is the default Filesystem under Fedora, Ubuntu and many others&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Distributions. Ext3 is a journaling Filesystem. Journaling Filesystem&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Facilitates quick system recovery, and ensures a high level of data&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Integrity. It constant updates with notes of file actions that are&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Pending, and those that have been completed.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Journaling protects against corruption with speed and ease. All pending&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;And completed operations are logged to the journal. The system checks&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;the journal when rebooting, and completes those operations that was&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;pending at the time of a system failure or dirty shutdown. This protects&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;the consistency of the data that was buffered at the time of failure.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Recovery is also decreased by the use of journaling layer. Rather than&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;checking each file, bit for bit, the system merely completes any&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Pending writes noted in the journal. This reduces a recovery from 20 to&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;30 minutes to seconds.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;- note&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Other distributions may use different filesystems, like Suse uses&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;ReiserFS.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;You can find a complete list at www.linuxjournal.com&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;--- A Quick Tour of the filesystem&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;Lets look at a outline of the filesystem structure, and explore its&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;various functions and elements.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;/ (the root directory&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;This is the top level of any Linux system, known as the root&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;directory, unfortunately, there is also a directory named root.&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;Don’t worry about this: I will explain this to you in a minute&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;/boot&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;This directory contains all the files necessary to boot the&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;operation system, including the Linux kernel.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;/bin and /sbin&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;These directories’ are similar in their consistency both contain&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;executable binary files but differs in purpose. /bin contains&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;executables that you are likely to use from the command line.&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;Command such as ls, cp mkdir and so on. /sbin contains commands&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;and processes that are used by the operation system, so stay&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;away from this directory when you are starting out!&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;/dev&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;These are the device files abstractions of all the devices that&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;are on the system, as well ass all the devices that could be added&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;to the system. These files provide the operation system with a&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;description of, and instructions for handling each device.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;/etc&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;This directory contains system-specific configuration files.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;As an administrator.you are likely to spend quite some time in&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;the /etc directory, because it contains configuration&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;Instructions for most of the applications on the system.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;/home&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;This directory contains the home directories for each user of&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;the system.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;/root&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;This is the home directory of the root user.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;/lib&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;The lib directory contains all the shares libraries that will be&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;accessed by various applications in the system. It also contains&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;libraries that will be used by the kernel&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;/media /mnt&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;These directories serve as mount point for temporary mounted&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;filesystem. For example, the cd-rom drive will be mounted in&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;/media/cdrom&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;/opt&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;This directory offers storage for packages that have been added&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;to the system&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;/var&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;Contains variable data files: Files that may change during the&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;operation of an application with which they are associated,&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;including log files and mailbox files.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;- note&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;The concept of mount point might be confusing. You can think of them as&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;containers in which the content of a device is emptied.&lt;/div&gt;</description><link>http://raysguidetolinuxwebserver.blogspot.com/2011/06/linux-filesystem-there-is-no-drives-as.html</link><author>noreply@blogger.com (Andrée ray)</author><thr:total>0</thr:total></item></channel></rss>