swift       05/07/02 11:45:12

  Added:       xml/htdocs/doc/en/articles lpi-101-fundamentals-p1.xml
  Log:
  #96131 - Adding LPI 101 Fundamentals Part 1

Revision  Changes    Path
1.1                  xml/htdocs/doc/en/articles/lpi-101-fundamentals-p1.xml

file : 
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/lpi-101-fundamentals-p1.xml?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=gentoo
plain: 
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/lpi-101-fundamentals-p1.xml?rev=1.1&content-type=text/plain&cvsroot=gentoo

Index: lpi-101-fundamentals-p1.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Header: 
/var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-fundamentals-p1.xml,v 
1.1 2005/07/02 11:45:12 swift Exp $ -->
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">

<guide link="/doc/en/articles/lpi-101-fundamentals-p1.xml">
<title>LPI certification 101 (release 2) exam prep, Part 1</title>

<author title="Author">
  <mail link="[EMAIL PROTECTED]">Daniel Robbins</mail>
</author>
<author title="Editor">
  <mail link="[EMAIL PROTECTED]">M Curtis Napier</mail>
</author>

<abstract>
In this tutorial, we'll introduce you to bash (the standard Linux shell), show 
you how to take full advantage of standard Linux commands like ls, cp, and mv,
explain inodes and hard and symbolic links, and much more. By the end of this
tutorial, you'll have a solid grounding in Linux fundamentals and will even be
ready to begin learning some basic Linux system administration tasks.
</abstract>

<!-- The original version of this article was first published on IBM 
developerWorks, and is property of Westtech Information Services. This 
document is an updated version of the original article, and contains
various improvements made by the Gentoo Linux Documentation team -->

<version>1.0</version>
<date>2005-06-14</date>

<chapter>
<title>Before You Start</title>
<section>
<title>About this tutorial</title>
<body>

<note>
The original version of this article was first published on IBM 
developerWorks, and is property of Westtech Information Services. This 
document is an updated version of the original article, and contains
various improvements made by the Gentoo Linux Documentation team.
</note>

<p>
Welcome to "Linux fundamentals," the first of four tutorials designed to prepare
you for the Linux Professional Institute's 101 exam. In this tutorial, we'll
introduce you to bash (the standard Linux shell), show you how to take full
advantage of standard Linux commands like ls, cp, and mv, explain inodes and
hard and symbolic links, and much more. By the end of this tutorial, you'll have
a solid grounding in Linux fundamentals and will even be ready to begin learning
some basic Linux system administration tasks. By the end of this series of
tutorials (eight in all), you'll have the knowledge you need to become a Linux
Systems Administrator and will be ready to attain an LPIC Level 1 certification
from the Linux Professional Institute if you so choose.
</p>

<p>
This particular tutorial (Part 1) is ideal for those who are new to Linux, or
those who want to review or improve their understanding of fundamental Linux
concepts like copying and moving files, creating symbolic and hard links, and
using Linux' standard text-processing commands along with pipelines and
redirection. Along the way, we'll share plenty of hints, tips, and tricks to
keep the tutorial meaty and practical, even for those with a good amount of
previous Linux experience. For beginners, much of this material will be new, but
more experienced Linux users may find this tutorial to be a great way of
rounding out their fundamental Linux skills.
</p>

<p>
For those who have taken the release 1 version of this tutorial for reasons
other than LPI exam preparation, you probably don't need to take this one.
However, if you do plan to take the exams, you should strongly consider reading
this revised tutorial.
</p>

</body>
</section>
<section>
<title>About the author</title>
<body>

<p>
Residing in Albuquerque, New Mexico, Daniel Robbins is the Chief Architect of
Gentoo Linux an advanced ports-based Linux meta distribution. He also writes
articles, tutorials, and tips for the IBM developerWorks Linux zone and Intel
Developer Services and has also served as a contributing author for several
books, including Samba Unleashed and SuSE Linux Unleashed. Daniel enjoys
spending time with his wife, Mary, and his daughter, Hadassah. You can contact
Daniel at [EMAIL PROTECTED]
</p>

</body>
</section>
</chapter>

<chapter>
<title>Introducing bash</title>
<section>
<title>The shell</title>
<body>

<p>
If you've used a Linux system, you know that when you log in, you are greeted by
a prompt that looks something like this:
</p>

<pre caption="The prompt">
&#x0024;
</pre>

<p>
The particular prompt that you see may look quite different. It may contain your
systems host name, the name of the current working directory, or both. But
regardless of what your prompt looks like, there's one thing that's certain. The
program that printed that prompt is called a &#x0022;shell,&#x0022; and it's
very likely that your particular shell is a program called <c>bash</c>.
</p>

</body>
</section>
<section>
<title>Are you running bash?</title>
<body>

<p>
You can check to see if you're running <c>bash</c> by typing:
</p>

<pre caption="The SHELL variable">
&#x0024; <i>echo &#x0024;SHELL</i>
&#x0024; /bin/bash
</pre>

<p>
If the above line gave you an error or didn't respond similarly to our example,
then you may be running a shell other than bash. In that case, most of this
tutorial should still apply, but it would be advantageous for you to switch to
<c>bash</c> for the sake of preparing for the 101 exam. <!-- (The next tutorial
in this series, on basic administration, covers changing your shell using the
<c>chsh</c> command.) -->
</p>

</body>
</section>
<section>
<title>About bash</title>
<body>

<p>
Bash, an acronym for &#x0022;Bourne-again shell,&#x0022; is the default shell on
most Linux systems. The shell's job is to obey your commands so that you can
interact with your Linux system. When you're finished entering commands, you may
instruct the shell to exit or logout, at which point you'll be returned to a
login prompt.
</p>

<p>
By the way, you can also log out by pressing control-D at the bash prompt.
</p>

</body>
</section>
<section>
<title>Using &#x0022;cd&#x0022;</title>
<body>

<p>
As you've probably found, staring at your bash prompt isn't the most exciting
thing in the world. So, let's start using bash to navigate around our file 
system. At the prompt, type the following (without the <c>&#x0024;</c>):
</p>

<pre caption="Changing directories">
&#x0024; <i>cd /</i>
</pre>

<p>
We've just told bash that you want to work in /, also known as the root
directory; all the directories on the system form a tree, and / is considered
the top of this tree, or the root. cd sets the directory where you are currently
working, also known as the &#x0022;current working directory.&#x0022;
</p>

</body>
</section>
<section>
<title>Paths</title>
<body>

<p>
To see bash's current working directory, you can type:
</p>

<pre caption="Present Working Directory">
&#x0024; <i>pwd</i>
/
</pre>

<p>



-- 
[email protected] mailing list

Reply via email to