* [gentoo-doc-cvs] cvs commit: lpi-101-administration-p2.xml
@ 2005-07-11 22:42 Jonathan Smith
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Smith @ 2005-07-11 22:42 UTC (permalink / raw
To: gentoo-doc-cvs
smithj 05/07/11 22:42:33
Added: xml/htdocs/doc/en/articles lpi-101-administration-p2.xml
Log:
#97718: added LPI certification 101 Part 2 to articles
Revision Changes Path
1.1 xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml
file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/lpi-101-administration-p2.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-administration-p2.xml?rev=1.1&content-type=text/plain&cvsroot=gentoo
Index: lpi-101-administration-p2.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml,v 1.1 2005/07/11 22:42:33 smithj Exp $ -->
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
<guide link="/doc/en/articles/lpi-101-administration-p2.xml">
<title>LPI certification 101 (release 2) exam prep, Part 2</title>
<author title="Author">
<mail link="drobbins@gentoo.org">Daniel Robbins</mail>
</author>
<author title="Author">
<mail link="chouser@gentoo.org">Chris Houser</mail>
</author>
<author title="Author">
Aron Griffis
</author>
<author title="Editor">
<mail link="smithj@gentoo.org">Jonathan Smith</mail>
</author>
<abstract>
In this tutorial, you will learn how to use regular expressions to search files
for text patterns, how to locate files on your system, and how to take full
control of Linux processes. You'll even get a whirlwind introduction to shell
pipelines, redirection, and text processing commands. By the end of this
tutorial, you'll have a solid grounding in basic Linux administration and will
be ready to begin learning more advanced Linux system administration skills in
the follow-on tutorial.
</abstract>
<!-- The original version of this article was 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-07-11</date>
<chapter>
<title>Before You Start</title>
<section>
<title>About this tutorial</title>
<body>
<note>
The original version of this article was 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 "Basic administration," the second of four tutorials designed to
prepare you for the Linux Professional Institute's 101 exam. In this tutorial,
we'll show you how to use regular expressions to search files for text
patterns. Next, we'll introduce you to the Filesystem Hierarchy Standard (FSH),
and then show you how to locate files on your system. Then, we'll show you how
to take full control of Linux processes by running them in the background,
listing processes, detaching processes from the terminal, and more. Next, we'll
give you a whirlwind introduction to shell pipelines, redirection, and text
processing commands. Finally, we'll introduce you to Linux kernel modules.
</p>
<p>
This particular tutorial (Part 2) is ideal for those who have a good basic
knowledge of bash and want to receive a solid introduction to basic Linux
administration tasks. If you are new to Linux, we recommend that you complete
Part 1 of this tutorial series first before continuing. For some, 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 basic Linux administration 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 drobbins@gentoo.org.
</p>
<p>
Chris Houser, known to his friends as "Chouser," has been a UNIX proponent
since 1994 when he joined the administration team for the computer science
network at Taylor University in Indiana, where he earned his Bachelor's degree
in Computer Science and Mathematics. Since then, he has gone on to work in Web
application programming, user interface design, professional video software
support, and now Tru64 UNIX device driver programming at Compaq. He has also
contributed to various free software projects, most recently to Gentoo Linux).
He lives with his wife and two cats in New Hampshire. You can contact Chris at
chouser@gentoo.org.
</p>
<p>
Aron Griffis graduated from Taylor University with a degree in Computer Science
and an award that proclaimed, "Future Founder of a Utopian UNIX Commune."
Working towards that goal, Aron is employed by Compaq writing network drivers
for Tru64 UNIX, and spending his spare time plunking out tunes on the piano or
developing Gentoo Linux. He lives with his wife Amy (also a UNIX engineer) in
Nashua, New Hampshire.
</p>
</body>
</section>
</chapter>
<chapter>
<title>Regular Expressions</title>
<section>
<title>What is a regular expression?</title>
<body>
<p>
A regular expression (also called a "regex" or "regexp") is a special syntax
used to describe text patterns. On Linux systems, regular expressions are
commonly used to find patterns of text, as well as to perform
search-and-replace operations on text streams.
</p>
</body>
</section>
<section>
<title>Glob comparison</title>
<body>
<p>
As we take a look at regular expressions, you may find that regular expression
syntax looks similar to the filename "globbing" syntax that we looked at in
Part 1. However, don't let this fool you; their similarity is only skin deep.
Both regular expressions and filename globbing patterns, while they may look
similar, are fundamentally different beasts.
</p>
</body>
</section>
<section>
<title>The simple substring</title>
<body>
<p>
With that caution, let's take a look at the most basic of regular expressions,
the simple substring. To do this, we're going to use <c>grep</c>, a command
that scans the contents of a file for a particular regular expression. grep
prints every line that matches the regular expression, and ignores every line
that doesn't:
</p>
<pre caption="grep in action">
$ <i>grep bash /etc/passwd</i>
operator:x:11:0:operator:/root:/bin/bash
root:x:0:0::/root:/bin/bash
ftp:x:40:1::/home/ftp:/bin/bash
</pre>
<p>
Above, the first parameter to <c>grep</c> is a regex; the second is a filename.
<c>grep</c> read each line in /etc/passwd and applied the simple substring
regex bash to it, looking for a match. If a match was found, <c>grep</c>
printed out the entire line; otherwise, the line was ignored.
</p>
</body>
</section>
<section>
<title>Understanding the simple substring</title>
<body>
<p>
In general, if you are searching for a substring, you can just specify the text
verbatim without supplying any "special" characters. The only time you'd need
to do anything special would be if your substring contained a +, ., *, [, ], or
\, in which case these characters would need to be enclosed in quotes and
preceded by a backslash. Here are a few more examples of simple substring
regular expressions:
</p>
<ul>
<li>/tmp (scans for the literal string /tmp)</li>
<li>"\[box\]" (scans for the literal string [box])</li>
<li>"\*funny\*" (scans for the literal string *funny*)</li>
<li>"ld\.so" (scans for the literal string ld.so)</li>
</ul>
</body>
</section>
--
gentoo-doc-cvs@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-doc-cvs] cvs commit: lpi-101-administration-p2.xml
@ 2005-10-12 17:45 Lukasz Damentko
0 siblings, 0 replies; 3+ messages in thread
From: Lukasz Damentko @ 2005-10-12 17:45 UTC (permalink / raw
To: gentoo-doc-cvs
rane 05/10/12 17:45:29
Modified: xml/htdocs/doc/en/articles lpi-101-administration-p2.xml
lpi-101-fundamentals-p1.xml
Log:
fixing links to lead to xmlified articles at gentoo.org
Revision Changes Path
1.3 +14 -38 xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml
file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml?rev=1.3&content-type=text/x-cvsweb-markup&cvsroot=gentoo
plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml?rev=1.3&content-type=text/plain&cvsroot=gentoo
diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml.diff?r1=1.2&r2=1.3&cvsroot=gentoo
Index: lpi-101-administration-p2.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- lpi-101-administration-p2.xml 9 Oct 2005 17:13:23 -0000 1.2
+++ lpi-101-administration-p2.xml 12 Oct 2005 17:45:29 -0000 1.3
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml,v 1.2 2005/10/09 17:13:23 rane Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml,v 1.3 2005/10/12 17:45:29 rane Exp $ -->
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
<guide link="/doc/en/articles/lpi-101-administration-p2.xml" disclaimer="articles">
@@ -33,8 +33,8 @@
version of the original article, and contains various improvements made by the
Gentoo Linux Documentation team -->
-<version>1.1</version>
-<date>2005-10-09</date>
+<version>1.2</version>
+<date>2005-10-12</date>
<chapter>
<title>Before You Start</title>
@@ -83,7 +83,7 @@
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 drobbins@gentoo.org.
+Daniel at <mail>drobbins@gentoo.org</mail>.
</p>
<p>
@@ -1580,21 +1580,9 @@
</p>
<ul>
- <li>
- <uri
- link="http://www-106.ibm.com/developerworks/linux/library/l-sed1.html">Sed
- by example, Part 1</uri>
- </li>
- <li>
- <uri
- link="http://www-106.ibm.com/developerworks/linux/library/l-sed2.html">Sed
- by example, Part 2</uri>
- </li>
- <li>
- <uri
- link="http://www-106.ibm.com/developerworks/linux/library/l-sed3.html">Sed
- by example, Part 3</uri>
- </li>
+ <li><uri link="/doc/en/articles/l-sed1.xml">Sed by example, Part 1</uri></li>
+ <li><uri link="/doc/en/articles/l-sed2.xml">Sed by example, Part 2</uri></li>
+ <li><uri link="/doc/en/articles/l-sed3.xml">Sed by example, Part 3</uri></li>
</ul>
<p>
@@ -1608,20 +1596,9 @@
</p>
<ul>
- <li>
- <uri
- link="http://www-106.ibm.com/developerworks/linux/library/l-awk1.html">Awk
- by example, Part 1</uri>
- </li>
- <li>
- <uri
- link="http://www-106.ibm.com/developerworks/linux/library/l-awk2.html">Awk
- by example, Part 2</uri>
- </li>
- <li>
- <uri
- link="http://www-106.ibm.com/developerworks/linux/library/l-awk3.html">Awk
- by example, Part 3</uri>
+ <li><uri link="/doc/en/articles/l-awk1.xml">Awk by example, Part 1</uri></li>
+ <li><uri link="/doc/en/articles/l-awk2.xml">Awk by example, Part 2</uri></li>
+ <li><uri link="/doc/en/articles/l-awk3.xml">Awk by example, Part 3</uri>
</li>
</ul>
@@ -2155,11 +2132,10 @@
</p>
<p>
-In the <uri
-link="http://www-106.ibm.com/developerworks/library/l-bash.html">Bash by
-example article series</uri>, I show you how to use bash programming constructs
-to write your own bash scripts. This series (particularly parts one and two)
-will be good preparation for the LPIC Level 1 exam:
+In the <uri link="/doc/en/articles/bash-by-example-p1.xml">Bash by example
+article series</uri>, I show you how to use bash programming constructs to
+write your own bash scripts. This series (particularly parts one and two) will
+be good preparation for the LPIC Level 1 exam:
</p>
<p>
1.6 +16 -11 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.6&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.6&content-type=text/plain&cvsroot=gentoo
diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/lpi-101-fundamentals-p1.xml.diff?r1=1.5&r2=1.6&cvsroot=gentoo
Index: lpi-101-fundamentals-p1.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-fundamentals-p1.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- lpi-101-fundamentals-p1.xml 9 Oct 2005 17:13:23 -0000 1.5
+++ lpi-101-fundamentals-p1.xml 12 Oct 2005 17:45:29 -0000 1.6
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-fundamentals-p1.xml,v 1.5 2005/10/09 17:13:23 rane Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-fundamentals-p1.xml,v 1.6 2005/10/12 17:45:29 rane Exp $ -->
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
<guide link="/doc/en/articles/lpi-101-fundamentals-p1.xml" disclaimer="articles">
@@ -25,8 +25,8 @@
document is an updated version of the original article, and contains
various improvements made by the Gentoo Linux Documentation team -->
-<version>1.3</version>
-<date>2005-10-09</date>
+<version>1.4</version>
+<date>2005-10-12</date>
<chapter>
<title>Before You Start</title>
@@ -1328,7 +1328,7 @@
</body>
</section>
</chapter>
-<!--
+
<chapter>
<title>Summary and Resources</title>
<section>
@@ -1365,12 +1365,18 @@
</p>
<ul>
- <li><uri link="http://www-106.ibm.com/developerworks/linux/library/l-bash.html">
- Bash by example, Part 1: Fundamental programming in the Bourne-again shell</li>
- <li><uri link="http://www-106.ibm.com/developerworks/linux/library/l-bash2.html">
- Bash by example, Part 2: More bash programming fundamentals</li>
- <li><uri link="http://www-106.ibm.com/developerworks/linux/library/l-bash3.html">
- Bash by example, Part 3: Exploring the ebuild system</li>
+ <li>
+ <uri link="/doc/en/articles/bash-by-example-p1.xml">Bash by example, Part
+ 1: Fundamental programming in the Bourne-again shell</uri>
+ </li>
+ <li>
+ <uri link="/doc/en/articles/bash-by-example-p2.xml">Bash by example, Part
+ 2: More bash programming fundamentals</uri>
+ </li>
+ <li>
+ <uri link="/doc/en/articles/bash-by-example-p3.xml">Bash by example, Part
+ 3: Exploring the ebuild system</uri>
+ </li>
</ul>
<p>
@@ -1390,5 +1396,4 @@
</body>
</section>
</chapter>
--->
</guide>
--
gentoo-doc-cvs@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-doc-cvs] cvs commit: lpi-101-administration-p2.xml
@ 2007-06-19 22:14 Lukasz Damentko
0 siblings, 0 replies; 3+ messages in thread
From: Lukasz Damentko @ 2007-06-19 22:14 UTC (permalink / raw
To: gentoo-doc-cvs
rane 07/06/19 22:14:53
Modified: lpi-101-administration-p2.xml
Log:
#182509, fixing a typo in a regex
Revision Changes Path
1.5 xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml?r1=1.4&r2=1.5
Index: lpi-101-administration-p2.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- lpi-101-administration-p2.xml 1 Jan 2006 11:25:54 -0000 1.4
+++ lpi-101-administration-p2.xml 19 Jun 2007 22:14:53 -0000 1.5
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml,v 1.4 2006/01/01 11:25:54 rane Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-administration-p2.xml,v 1.5 2007/06/19 22:14:53 rane Exp $ -->
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
<guide link="/doc/en/articles/lpi-101-administration-p2.xml" disclaimer="articles">
@@ -33,8 +33,8 @@
version of the original article, and contains various improvements made by the
Gentoo Linux Documentation team -->
-<version>1.2</version>
-<date>2005-10-12</date>
+<version>1.3</version>
+<date>2007-06-20</date>
<chapter>
<title>Before You Start</title>
@@ -349,7 +349,7 @@
<p>
Now, for a quick brain-twisting review: the line ac matches the regex ab*c
-because the asterisk also allows the preceding expression (c) to appear
+because the asterisk also allows the preceding expression (b) to appear
<e>zero</e> times. Again, it's critical to note that the * regex metacharacter
is interpreted in a fundamentally different way than the * glob character.
</p>
--
gentoo-doc-cvs@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-06-19 22:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-11 22:42 [gentoo-doc-cvs] cvs commit: lpi-101-administration-p2.xml Jonathan Smith
-- strict thread matches above, loose matches on Subject: below --
2005-10-12 17:45 Lukasz Damentko
2007-06-19 22:14 Lukasz Damentko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox