neysx 05/07/03 09:18:33 Modified: xml/htdocs/doc/en/articles lpi-101-fundamentals-p1.xml Log: Removed hexadecimal entities
Revision Changes Path 1.3 +129 -129 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.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-fundamentals-p1.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-fundamentals-p1.xml.diff?r1=1.2&r2=1.3&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.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- lpi-101-fundamentals-p1.xml 2 Jul 2005 15:10:33 -0000 1.2 +++ lpi-101-fundamentals-p1.xml 3 Jul 2005 09:18:33 -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-fundamentals-p1.xml,v 1.2 2005/07/02 15:10:33 smithj Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/lpi-101-fundamentals-p1.xml,v 1.3 2005/07/03 09:18:33 neysx Exp $ --> <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> <guide link="/doc/en/articles/lpi-101-fundamentals-p1.xml"> @@ -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.0</version> -<date>2005-06-14</date> +<version>1.1</version> +<date>2005-07-03</date> <chapter> <title>Before You Start</title> @@ -105,14 +105,14 @@ </p> <pre caption="The prompt"> -$ +$ </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 "shell," and it's +program that printed that prompt is called a "shell," and it's very likely that your particular shell is a program called <c>bash</c>. </p> @@ -127,7 +127,7 @@ </p> <pre caption="The SHELL variable"> -$ <i>echo $SHELL</i> +$ <i>echo $SHELL</i> /bin/bash </pre> @@ -147,7 +147,7 @@ <body> <p> -Bash, an acronym for "Bourne-again shell," is the default shell on +Bash, an acronym for "Bourne-again shell," 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 @@ -161,24 +161,24 @@ </body> </section> <section> -<title>Using "cd"</title> +<title>Using "cd"</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>$</c>): +system. At the prompt, type the following (without the <c>$</c>): </p> <pre caption="Changing directories"> -$ <i>cd /</i> +$ <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 "current working directory." +working, also known as the "current working directory." </p> </body> @@ -192,7 +192,7 @@ </p> <pre caption="Present Working Directory"> -$ <i>pwd</i> +$ <i>pwd</i> / </pre> @@ -240,7 +240,7 @@ </p> <pre caption="Changing directories with absolute paths"> -$ <i>cd /usr</i> +$ <i>cd /usr</i> </pre> <p> @@ -248,8 +248,8 @@ </p> <pre caption="Changing directories with relative paths"> -$ <i>cd local/bin</i> -$ <i>pwd</i> +$ <i>cd local/bin</i> +$ <i>pwd</i> /usr/local/bin </pre> @@ -266,16 +266,16 @@ </p> <pre caption="Using the 'parent directory' notation"> -$ <i>pwd</i> +$ <i>pwd</i> /usr/local/bin -$ <i>cd ..</i> -$ <i>pwd</i> +$ <i>cd ..</i> +$ <i>pwd</i> /usr/local </pre> <p> As you can see, our current directory is now /usr/local. We were able to go -"backwards" one directory, relative to the current directory that +"backwards" one directory, relative to the current directory that we were in. </p> @@ -285,10 +285,10 @@ </p> <pre caption="Using the parent directory notation in relative paths"> -$ <i>pwd</i> +$ <i>pwd</i> /usr/local -$ <i>cd ../share</i> -$ <i>pwd</i> +$ <i>cd ../share</i> +$ <i>pwd</i> /usr/share </pre> @@ -305,16 +305,16 @@ </p> <pre caption="Relative path examples"> -$ <i>cd /bin</i> -$ <i>cd ../usr/share/zoneinfo</i> +$ <i>cd /bin</i> +$ <i>cd ../usr/share/zoneinfo</i> -$ <i>cd /usr/X11R6/bin</i> -$ <i>cd ../lib/X11</i> +$ <i>cd /usr/X11R6/bin</i> +$ <i>cd ../lib/X11</i> -$ <i>cd /usr/bin</i> -$ <i>cd ../bin/../bin</i> +$ <i>cd /usr/bin</i> +$ <i>cd ../bin/../bin</i> </pre> <p> @@ -330,13 +330,13 @@ <p> Before we finish our coverage of cd, there are a few more things I need to mention. First, there is another special directory called ., which means -"the current directory". While this directory isn't used with the +"the current directory". While this directory isn't used with the cd command, it's often used to execute some program in the current directory, as follows: </p> <pre caption="Running a program from the current location"> -$ <i>./myprog</i> +$ <i>./myprog</i> </pre> <p> @@ -355,7 +355,7 @@ </p> <pre caption="Go to the HOME directory"> -$ <i>cd</i> +$ <i>cd</i> -- [email protected] mailing list
