From 1f851de37cd104cb9f62517047965cd104154fdf Mon Sep 17 00:00:00 2001 From: tille <> Date: Tue, 1 Mar 2005 21:54:42 +0000 Subject: [PATCH] lots of little updates, added info about new apps, deleted tracers --- LDP/guide/docbook/Intro-Linux/abook.xml | 9 +- LDP/guide/docbook/Intro-Linux/chap1.xml | 74 +++------------ LDP/guide/docbook/Intro-Linux/chap10.xml | 46 +--------- LDP/guide/docbook/Intro-Linux/chap2.xml | 41 +-------- LDP/guide/docbook/Intro-Linux/chap3.xml | 111 ++++++----------------- LDP/guide/docbook/Intro-Linux/chap4.xml | 42 --------- LDP/guide/docbook/Intro-Linux/chap5.xml | 21 ----- LDP/guide/docbook/Intro-Linux/chap6.xml | 35 ------- LDP/guide/docbook/Intro-Linux/chap7.xml | 56 ------------ LDP/guide/docbook/Intro-Linux/chap8.xml | 35 ------- LDP/guide/docbook/Intro-Linux/chap9.xml | 28 ------ 11 files changed, 58 insertions(+), 440 deletions(-) diff --git a/LDP/guide/docbook/Intro-Linux/abook.xml b/LDP/guide/docbook/Intro-Linux/abook.xml index 73e85143..e59cdfc4 100644 --- a/LDP/guide/docbook/Intro-Linux/abook.xml +++ b/LDP/guide/docbook/Intro-Linux/abook.xml @@ -35,12 +35,13 @@ - Version 1.16 20041206 + Version 1.17 20050301 First published December 2002 2002 2003 2004 + 2005 Machtelt Garrels ISBN 90-808529-1-0 @@ -140,6 +141,12 @@ Revision History + + 1.17 + 2005-03-01 + MG + Lots of little details that were outdated, added several notes, removed tracer image, added info about new apps. + 1.16 2004-12-06 diff --git a/LDP/guide/docbook/Intro-Linux/chap1.xml b/LDP/guide/docbook/Intro-Linux/chap1.xml index 40ddb910..1d1489cc 100644 --- a/LDP/guide/docbook/Intro-Linux/chap1.xml +++ b/LDP/guide/docbook/Intro-Linux/chap1.xml @@ -183,13 +183,6 @@ wristwatches. This makes Linux the only operating system in the world covering such a wide range of hardware. - - - - - - - @@ -254,22 +247,16 @@ examples; these sites have a lot of screenshots that will give you a glimpse of what Linux on the desktop can be like: - + - + + - - - - - - - Does Linux have a future? @@ -359,13 +346,6 @@ home: - - - - - - - Properties of Linux @@ -433,11 +413,11 @@ just recycling your old 486, Linux will do that as well. - The Linux OS and Linux applications have very short debug-times: + The Linux OS and quite some Linux applications have very short debug-times: Because Linux has been developed and tested by thousands of people, both -errors and people to fix them are found very quickly. It often happens that -there are only a couple of hours between discovery and fixing of a bug. +errors and people to fix them are usually found rather quickly. It sometimes happens that +there are only a couple of hours between discovery and fixing of a bug. @@ -462,10 +442,10 @@ making, for example, TurboLinux more suitable for the small and medium enterprise, RedHat for servers and SuSE for workstations. However, the differences are likely to be very superficial. The best strategy is to test a couple of distributions; unfortunately not everybody has the time for this. -Luckily, there is plenty of advice on the subject of choosing your Linux. One -place is -LinuxJournal, which discusses hardware and support, among many other -subjects. The +Luckily, there is plenty of advice on the subject of choosing your Linux. +A quick search on Google, using the keywords choosing your distribution brings up tens of +links to good advise. +The Installation HOWTO also discusses choosing your distribution. @@ -473,6 +453,7 @@ Installation HOWTO also discusses choosing your distribution. Linux is not very user friendly and confusing for beginners: +It must be said that Linux, at least the core system, is less userfriendly to use than MS Windows and certainly more difficult than MacOS, but... In light of its popularity, considerable effort has been made to make Linux even easier to use, especially for new users. More information is being released daily, such as this guide, to help fill the gap for documentation available to @@ -497,13 +478,6 @@ project that continues to strive for perfection. - - - - - - - Linux Flavors @@ -524,7 +498,7 @@ interfaces are built, remain the same. The Linux system is based on GNU tools (Gnu's Not UNIX), which provide a set of standard ways to handle and use the system. All GNU tools are open source, so they can be installed on any system. Most distributions offer pre-compiled packages of most common tools, such as RPM -packages on RedHat and dpkg packages on Debian, so you needn't be a programmer +packages on RedHat and Debian packages (also called deb or dpkg) on Debian, so you needn't be a programmer to install a package on your system. However, if you are and like doing things yourself, you will enjoy Linux all the better, since most distributions come with a complete set of development tools, allowing installation of new software @@ -539,6 +513,7 @@ it does not exist in a pre-packaged form suitable for your system. GDB: The GNU Debugger +coreutils: a set of basic UNIX-style utilities, such as ls, cat and chmod Findutils: to search and find files Fontutils: to convert fonts from one format to another or make @@ -637,7 +612,7 @@ mainstream distribution, supporting all common hardware and applications by default. The following are very good choices for novices: -Fedora Linux +Fedora Core SuSE Linux @@ -651,13 +626,6 @@ operating system that runs from your CD-ROM, you don't need to install anything. - - - - - - - Summary @@ -676,13 +644,6 @@ for handling the operating system. - - - - - - - Exercises @@ -762,12 +723,5 @@ http://www.ibiblio.org/mdw/HOWTO/Installation-HOWTO/index.html. successful. - - - - - - - diff --git a/LDP/guide/docbook/Intro-Linux/chap10.xml b/LDP/guide/docbook/Intro-Linux/chap10.xml index cd3b9fa6..560b3eac 100644 --- a/LDP/guide/docbook/Intro-Linux/chap10.xml +++ b/LDP/guide/docbook/Intro-Linux/chap10.xml @@ -283,13 +283,6 @@ Turner Broadcasting (CNN-DOM) - - - - - - - Internet/Intranet applications The Linux system is a great platform for offering networking services. In this section, we will try to give an overview of most common network servers and applications. @@ -455,6 +448,7 @@ bookmarks get lookup mkdir quit show Konversation, KVIrc and many other K-tools from the KDE suite. gnomemeeting: videoconferencing program for UNIX. jabber: Open Source Instant Messenging platform, compatible with ICQ, AIM, Yahoo, MSN, IRC, SMTP and much more. +psi: jabber client, see the PSI Jabber Client Homepage. @@ -532,13 +526,6 @@ On the negative side, if you want to use LDAP, you will need LDAP-enabled applic - - - - - - - Remote execution of applications Introduction @@ -704,6 +691,9 @@ Fetching /var/tmp/Schedule.sdc.gz to Schedule.sdc.gz lenny /var/tmp> +Secure copy or FTP GUIs +Don't feel comfortable with the command line yet? Try Konqueror's capabilities for secure remote copy, or install Putty. + Authentication keys The ssh-keygen command generates, manages and converts authentication keys for ssh. It can create RSA keys for use by SSH protocol version 1 and RSA or DSA keys for use by SSH protocol version 2. @@ -729,13 +719,6 @@ Fetching /var/tmp/Schedule.sdc.gz to Schedule.sdc.gz Surprise your friends (or management) with the fullscreen mode, multiple types of keyboard layouts and single application mode, just like the real thing. The man rdesktop manual provides more information. The project's homepage is at . - - - - - - - Security Introduction @@ -867,13 +850,6 @@ tcp 0 0 ::1:x11-ssh-offset *:* LISTEN - - - - - - - Summary Linux and networking go hand in hand. The Linux kernel has support for all common and most uncommon network protocols. The standard UNIX networking tools are provided in each distribution. Next to those, most distributions offer tools for easy network installation and management. @@ -881,13 +857,6 @@ tcp 0 0 ::1:x11-ssh-offset *:* LISTEN We briefly touched the subject of security. Linux is an ideal firewall system, light and cheap, but can be used in several other network functions such as routers and proxy servers. Increasing network security is mainly done by applying frequent updates and common sense. - - - - - - - Exercises @@ -922,12 +891,5 @@ tcp 0 0 ::1:x11-ssh-offset *:* LISTEN - - - - - - - diff --git a/LDP/guide/docbook/Intro-Linux/chap2.xml b/LDP/guide/docbook/Intro-Linux/chap2.xml index 4b971382..def6023a 100644 --- a/LDP/guide/docbook/Intro-Linux/chap2.xml +++ b/LDP/guide/docbook/Intro-Linux/chap2.xml @@ -36,7 +36,7 @@ user name and password. You always need to authenticate to the system. As we already mentioned in the exercise from , most PC-based Linux systems have two basic modes for a system to run in: either quick and sober in text console mode, which looks like DOS with mouse, multitasking and -multi-user features, or in graphical console mode, which looks better but eats +multi-user features, or in graphical mode, which looks better but eats more system resources. @@ -98,13 +98,6 @@ blast login: _ Now that we know how to connect to and disconnect from the system, we're ready for our first commands. - - - - - - - Absolute basics @@ -227,13 +220,6 @@ lsb_release lsof lspnp lsusb - - - - - - - Getting help Be warned @@ -275,7 +261,7 @@ OPTIONS -C config_file lines 1-27 -Browse to the next page using the space bar. You can go back to the previous page using the b-key. When you reach the end, man will quit and you get the prompt back, or type q if you want to leave the man page before reaching the end. +Browse to the next page using the space bar. You can go back to the previous page using the b-key. When you reach the end, man will usually quit and you get the prompt back. Type q if you want to leave the man page before reaching the end, or if the viewer does not quit automatically at the end of the page. Each man page usually contains a couple of standard sections, as we can see from the man example: The first line contains the name of the command you are reading about, and the id of the section in which this man page is located. The man pages are ordered in chapters. Commands are likely to have multiple man pages, for example the man page from the user section, the man page from the system admin section, and the man page from the programmer section. @@ -351,7 +337,7 @@ viewres (1x) - graphical class browser for Xt After pressing Enter you will see that a lot of browser related stuff is on your machine: not only web browsers, but also file and FTP browsers, and browsers for documentation. If you have development packages installed, you may also have the accompanying man pages dealing with writing programs having to do with browsers. Generally, a command with a man page in section one, so one marked with (1), is suitable for trying out as a user. The user who issued the above apropos might consequently try to start the commands galeon, lynx or opera, since these clearly have to do with browsing the world wide web. The --help option -Most GNU commands support the , which gives a short explanation about how to use the command and a list of available options. Below is the output of this option with the cat: +Most GNU commands support the , which gives a short explanation about how to use the command and a list of available options. Below is the output of this option with the cat command: userprompt@host: cat --help Usage: cat [OPTION] [FILE]... @@ -402,25 +388,11 @@ Report bugs to <bug-textutils@gnu.org>. - - - - - - - Summary Linux traditionally operates in text mode or in graphical mode. Since CPU power and RAM are not the cost anymore these days, every Linux user can afford to work in graphical mode and will usually do so. This does not mean that you don't have to know about text mode: we will work in the text environment throughout this course, using a terminal window. Linux encourages its users to acquire knowledge and to become independent. Inevitably, you will have to read a lot of documentation to achieve that goal; that is why, as you will notice, we refer to extra documentation for almost every command, tool and problem listed in this book. The more docs you read, the easier it will become and the faster you will leaf through manuals. Make reading documentation a habit as soon as possible. When you don't know the answer to a problem, refering to the documentation should become a second nature. - - - - - - - Exercises Most of what we learn is by making mistakes and by seeing how things can go wrong. These exercises are made to get you to read some error messages. The order in which you do these exercises is important. @@ -529,12 +501,5 @@ Report bugs to <bug-textutils@gnu.org>. - - - - - - - diff --git a/LDP/guide/docbook/Intro-Linux/chap3.xml b/LDP/guide/docbook/Intro-Linux/chap3.xml index f18dfb22..1e438597 100644 --- a/LDP/guide/docbook/Intro-Linux/chap3.xml +++ b/LDP/guide/docbook/Intro-Linux/chap3.xml @@ -279,13 +279,6 @@ Filesystem Size Used Avail Use% Mounted on - - - - - - - Orientation in the file system The path @@ -367,8 +360,8 @@ oriental/ pop/ sixties/ The shell What is a shell? When I was looking for an appropriate explanation on the concept of a shell, it gave me more trouble than I expected. All kinds of definitions are available, ranging from the simple comparison that the shell is the steering wheel of the car, to the vague definition in the Bash manual which says that bash is an sh-compatible command language interpreter, or an even more obscure expression, a shell manages the interaction between the system and its users. A shell is much more than that. -A shell can best be compared with a way of talking to the computer, a language. Most users do know that other language, the click-and-point language of the desktop. But in that language the user is treated as a baby, asked to pick from what is presented to him. -The shell, on the other hand, is an advanced way of communicating with the system, because it allows for conversation and taking initiative. Both partners in the communication are equal, so new ideas can be tested. The shell allows the user to handle a system in a flexible way, and is also a means of stress reduction. Who does not appreciate being treated like an adult? +A shell can best be compared with a way of talking to the computer, a language. Most users do know that other language, the click-and-point language of the desktop. But in that language the computer is leading the conversation, while the user has the passive role of picking tasks from the ones presented. It is very difficult for a programmer to include all options and possible uses of a command in the GUI-format. Thus, GUIs are almost always less capable than the command or commands that form the backend. +The shell, on the other hand, is an advanced way of communicating with the system, because it allows for two-way conversation and taking initiative. Both partners in the communication are equal, so new ideas can be tested. The shell allows the user to handle a system in a very flexible way. An additional asset is that the shell allows for task automation. Shell types Just like people know different languages and dialects, the computer knows different shell types: @@ -420,6 +413,9 @@ mia:L2NOfqdlPrHwE:504:504:Mia Maya:/home/mia:/bin/bash Diskquotas for user pierre (uid 501): none In case quotas have been set, you get a list of the limited partitions and their specific limitations. Exceeding the limits may be tolerated during a grace period with fewer or no restrictions at all. Detailed information can be found using the info quota or man quota commands. +No Quota? +If your system can not find the quota, then no limitation of file system usage is being applied. + Your home directory is indicated by a tilde (~), shorthand for /path_to_home/user_name. This same path is stored in the HOME variable, so you don't have to do anything to activate it. A simple application: switch from /var/music/albums/arno/2001 to images in your home directory using one elegant command: rom:/var/music/albums/arno/2001> cd ~/images @@ -433,7 +429,7 @@ Diskquotas for user pierre (uid 501): none The most important configuration files As we mentioned before, most configuration files are stored in the /etc directory. Content can be viewed using the cat command, which sends text files to the standard output (usually your monitor). The syntax is straight forward: cat file1 file2 ... fileN -In this section we try to give an overview of the most common configuration files. This is certainly not a complete list. Adding extra packages may also add extra configuration files in /etc. When reading the configuration files, you will find that they are usually quite well commented and self-explanatory. Some files also have man pages which contain extra documentation, such as man aliases. +In this section we try to give an overview of the most common configuration files. This is certainly not a complete list. Adding extra packages may also add extra configuration files in /etc. When reading the configuration files, you will find that they are usually quite well commented and self-explanatory. Some files also have man pages which contain extra documentation, such as man group. Most common configuration files @@ -448,9 +444,14 @@ Diskquotas for user pierre (uid 501): none aliases - Mail aliases file for use with the Sendmail mail server. Running a mail server on each and every system has long been common use in the UNIX world, and almost every Linux distribution still comes with a Sendmail package. In this file local user names are matched with real names as they occur in E-mail addresses, or with other local addresses. + Mail aliases file for use with the Sendmail and Postfix mail server. Running a mail server on each and every system has long been common use in the UNIX world, and almost every Linux distribution still comes with a Sendmail package. In this file local user names are matched with real names as they occur in E-mail addresses, or with other local addresses. + + apache + Config files for the Apache web server. + + bashrc The system-wide configuration file for the Bourne Again SHell. Defines functions and aliases for all users. Other shells may have their own system-wide config files, like cshrc. @@ -493,24 +494,12 @@ Diskquotas for user pierre (uid 501): none - - grub.conf - Boot information. - - - hosts A list of machines that can be contacted using the network, but without the need for a domain name service. This has nothing to do with the system's network configuration, which is done in /etc/sysconfig. - - httpd - Config files for the Apache web server. - - - inittab Information for booting: mode, number of text consoles etc. @@ -531,7 +520,7 @@ Diskquotas for user pierre (uid 501): none lilo.conf, silo.conf, aboot.conf etc. - Boot information for the LInux LOader, the system for booting that was in use before Lilo changed to GRUB. + Boot information for the LInux LOader, the system for booting that is now gradually being replaced with GRUB. @@ -620,7 +609,7 @@ Diskquotas for user pierre (uid 501): none - sndconfig and sound + sndconfig or sound Configuration of the sound card and sound events. @@ -644,7 +633,7 @@ Diskquotas for user pierre (uid 501): none - xinetd.* + xinetd.* or inetd.conf Configuration files for Internet services that are run from the system's (extended) Internet services daemon (servers that don't run an independent daemon). @@ -671,7 +660,7 @@ Diskquotas for user pierre (uid 501): none consoleSpecial entry for the currently used console.cua*Serial portsdsp*Devices for sampling and recording - fd*Entries for most kinds of floppy drives, the default is /dev/fd0H1440, a floppy drive for 1.44 MB floppies. + fd*Entries for most kinds of floppy drives, the default is /dev/fd0, a floppy drive for 1.44 MB floppies.hd[a-t][1-16]Standard support for IDE drives with maximum amount of partitions each.ir*Infrared devicesisdn*Management of ISDN connections @@ -681,7 +670,7 @@ Diskquotas for user pierre (uid 501): none midi*midi playermixer* and musicIdealized model of a mixer (combines or adds signals)modemModem - mouse (also msmouse, logimouse, psmouseAll kinds of mouses + mouse (also msmouse, logimouse, psmouse, input/mice, psaux)All kinds of mousesnullBottomless garbage canpar*Entries for parallel port supportpty*Pseudo terminals @@ -713,13 +702,6 @@ Diskquotas for user pierre (uid 501): none The /var/lib/rpm directory is specific to RPM-based (RedHat Package Manager) distributions; it is where RPM package information is stored. - - - - - - -Manipulating files @@ -992,15 +974,7 @@ rm: remove directory `archive'? y gerrit:~> which -a ls ls is aliased to `ls -F --color=auto' ls is /bin/ls - -gerrit:~> which -a which -which is aliased to `type' -which is /usr/bin/which - -gerrit:~> which type -type is a shell builtin -This actually means that which is built-in in the shell, but that there is also a which stand alone version. The shell built-in version precedes the which in /usr/bin, which is still there for compatibility with UNIX. Find and locate These are the real tools, used when searching other paths beside those listed in the search path. The find tool, known from UNIX, is very powerful, which may be the cause of a somewhat more difficult syntax. GNU find, however, deals with the syntax problems. This command not only allows you to search file names, it can also accept file size, date of last change and other file properties as criteria for a search. The most common use is for finding file names: @@ -1021,7 +995,7 @@ psychotic_chaos.mp3 This command will call on rm as many times as a file answering the requirements is found. In the worst case, this might be thousands or millions of times. This is quite a load on your system. A more realistic way of working would be the use of a pipe (|) and the xargs tool with rm as an argument. This way, the rm command is only called when the command line is full, instead of for every file. See for more on using I/O redirection to ease everyday tasks. -Later on (in 1999 according to the man pages, after 20 years of find), locate was developed. This program is easier to use, but more restricted than find, since its output is based on a file index database that is updated only once every day. On the other hand, a search in the locate database is less time- and CPU-consuming than a search with find. +Later on (in 1999 according to the man pages, after 20 years of find), locate was developed. This program is easier to use, but more restricted than find, since its output is based on a file index database that is updated only once every day. On the other hand, a search in the locate database uses less resources than find and therefor shows the results nearly instantly. Most Linux distributions use slocate these days, security enhanced locate, the modern version of locate that prevents users from getting output they have no right to read. The files in root's home directory are such an example, these are not normally accessible to the public. A user who wants to find someone who knows about the C-shell may issue the command locate .cshrc, to display all users who have a customized configuration file for the C shell. Supposing the users root and jenny are running C shell, then only the file /home/jenny/.cshrc will be displayed, and not the one in root's home directory. On most systems, locate is a symbolic link to the slocate program: billy:~> ls -l /usr/bin/locate @@ -1095,11 +1069,11 @@ sent-mail: On Mon, 24 Dec 2001, Arno.Hintjens@celeb.com wrote: find and locate are often used in combination with grep to define some serious queries. For more information, see on I/O redirection. Special characters -Characters that have a special meaning to the shell have to be escaped. The escape character in Bash is backslash, as in most shells; this takes away the special meaning of the following character. The shell knows about quite some special characters, among the most common /, ., ? and *. A full list can be found in the Info pages and documentation for your shell. For instance, say that you want to display the lines containing searchstring* (where * matches the asterisk character) instead of any lines containing the string searchstring* (where * matches any amount of any character), you issue the command -grep "searchstring\*" file(s) -Finding the string e.g. in a file will report all lines containing any character in the second and forth position of the search string. If you escape the dots, you will find the occurrences of the string representing the abbreviation for example given: -grep "e\.g\." file -More in the grep Info pages. +Characters that have a special meaning to the shell have to be escaped. The escape character in Bash is backslash, as in most shells; this takes away the special meaning of the following character. The shell knows about quite some special characters, among the most common /, ., ? and *. A full list can be found in the Info pages and documentation for your shell. +For instance, say that you want to display the file * instead of all the files in a directory, you would have to use +less \* +The same goes for filenames containing a space: +cat This\ File @@ -1107,7 +1081,7 @@ sent-mail: On Mon, 24 Dec 2001, Arno.Hintjens@celeb.com wrote: More ways to view file content General Apart from cat, which really doesn't do much more than sending files to the standard output, there are other tools to view file content. -The easiest way of course would be to use graphical tools instead of command line tools. In the introduction we already saw a glimpse of an office application, OpenOffice. Other examples are the GIMP (start up with gimp from the command line), the GNU Image Manipulation Program; xpdf to view Portable Document Format files (PDF); GhostView (gv) for viewing PostScript files; the Mozilla Project, links (a text mode browser), Konqueror, Opera and many others for web content; XMMS, CDplay and others for multi-media file content; AbiWord, Gnumeric, KOffice etc. for all kinds of office applications and so on. There are thousands of Linux applications; to list them all would take days. +The easiest way of course would be to use graphical tools instead of command line tools. In the introduction we already saw a glimpse of an office application, OpenOffice. Other examples are the GIMP (start up with gimp from the command line), the GNU Image Manipulation Program; xpdf to view Portable Document Format files (PDF); GhostView (gv) for viewing PostScript files; Mozilla/FireFox, links (a text mode browser), Konqueror, Opera and many others for web content; XMMS, CDplay and others for multimedia file content; AbiWord, Gnumeric, KOffice etc. for all kinds of office applications and so on. There are thousands of Linux applications; to list them all would take days. Instead we keep concentrating on shell- or text-mode applications, which form the basics for all other applications. These commands work best in a text environment on files containing text. When in doubt, check first using the file command. So let's see what text tools we have that are useful to look inside files. Font problems @@ -1171,7 +1145,7 @@ frm Note that removing the target file for a symbolic link makes the link useless. -Each regular file is principally a hardlink. Hardlinks can not span across partitions, since they refer to inodes, and inode numbers are only unique within a given partition. +Each regular file is in principal a hardlink. Hardlinks can not span across partitions, since they refer to inodes, and inode numbers are only unique within a given partition. It may be argued that there is a third kind of link, the user-space link, which is similar to a shortcut in MS Windows. These are files containing meta-data which can only be interpreted by the graphical file manager. To the kernel and the shell these are just normal files. They may end in a .desktop or .lnk suffix; an example can be found in ~/.gnome-desktop: [dupont@boulot .gnome-desktop]$ cat La\ Maison\ Dupont @@ -1212,17 +1186,10 @@ lrwxrwxrwx 1 freddy freddy 17 Jan 22 11:07 Queen -> /opt/mp3/Queen - - - - - - - File security Access rights: Linux's first line of defense -The Linux security model is based on the one used on UNIX systems, and is as rigid, and in some cases even more, as the UNIX security model, which is already quite robust. On a Linux system, every file is owned by a user and a group user. There is also a third category of users, those that are not the user owner and don't belong to the group owning the file. For each category of users, read, write and execute permissions can be granted or denied. +The Linux security model is based on the one used on UNIX systems, and is as rigid as the UNIX security model (and sometimes even more), which is already quite robust. On a Linux system, every file is owned by a user and a group user. There is also a third category of users, those that are not the user owner and don't belong to the group owning the file. For each category of users, read, write and execute permissions can be granted or denied. We already used the long option to list files using the ls command, though for other reasons. This command also displays file permissions for these three user categories; they are indicated by the nine characters that follow the first character, which is the file type indicator at the beginning of the file properties line. As seen in the examples below, the first three characters in this series of nine display access rights for the actual user that owns the file. The next three are for the group owner of the file, the last three for other users. The permissions are always in the same order: read, write, execute for the user, the group and the others. Some examples: marise:~> ls -l To_Do @@ -1342,7 +1309,7 @@ Hello, World chmod 644 fileA publicly readable file that can only be changed by the issuing user. -chmod 660 fileUsers belonging to your group can change this files, others don't have any access to it at all. +chmod 660 fileUsers belonging to your group can change this file, others don't have any access to it at all. chmod 700 fileProtects a file against any access from other users, while the issuing user still has full access. @@ -1465,7 +1432,7 @@ uid=1304(jacky) gid=(1304) groups=1304(jacky),2034(pproject) Special modes For the system admin to not be bothered solving permission problems all the time, special access rights can be given to entire directories, or to separate programs. There are three special modes: -Sticky bit mode: After execution of a job, the command is kept in the system memory. Originally this was a feature used a lot to save memory, but these days memory is inexpensive, so it is not used anymore for its optimizing capabilities on single files. When applied to an entire directory, however, the sticky bit has a different meaning. In that case, a user can only change files in this directory when she is the user owner of the file or when the file has appropriate permissions. This feature is used on directories like /var/tmp, that have to be accessible for everyone, but where it is not appropriate for users to change or delete each other's data. The sticky bit is indicated by a t at the end of the file permission field: +Sticky bit mode: After execution of a job, the command is kept in the system memory. Originally this was a feature used a lot to save memory: big jobs are loaded into memory only once. But these days memory is inexpensive and there are better techniques to manage it, so it is not used anymore for its optimizing capabilities on single files. When applied to an entire directory, however, the sticky bit has a different meaning. In that case, a user can only change files in this directory when she is the user owner of the file or when the file has appropriate permissions. This feature is used on directories like /var/tmp, that have to be accessible for everyone, but where it is not appropriate for users to change or delete each other's data. The sticky bit is indicated by a t at the end of the file permission field: mark:~> ls -ld /var/tmp drwxrwxrwt 19 root root 8192 Jan 16 10:37 /var/tmp/ @@ -1491,13 +1458,6 @@ drwxrws--- 4 root users 4096 Jul 25 2001 docs/ - - - - - - - Summary On UNIX, as on Linux, all entities are in some way or another presented to the system as files with the appropriate file properties. Use of (predefined) paths allows the users and the system admin to find, read and manipulate files. @@ -1609,13 +1569,6 @@ drwxrws--- 4 root users 4096 Jul 25 2001 docs/
We also stressed the fact that you should READ THE MAN PAGES. This documentation is your first-aid kit and contains the answers to many questions. The above list contains the basic commands that you will use on a daily basis, but they can do much more than the tasks we've discussed here. Reading the documentation will give you the control you need. - - - - - - -
Exercises @@ -1647,6 +1600,7 @@ drwxrws--- 4 root users 4096 Jul 25 2001 docs/ How much swap space do you have? What drivers are loaded? How many hours has the system been running? +Which filesystems are known by your system? Change to /etc/rc.d and choose the directory appropriate for your run level. What services should be running in this level? Which services run in graphical mode that don't run in text mode? @@ -1691,13 +1645,6 @@ drwxrws--- 4 root users 4096 Jul 25 2001 docs/ - - - - - - - diff --git a/LDP/guide/docbook/Intro-Linux/chap4.xml b/LDP/guide/docbook/Intro-Linux/chap4.xml index faa54277..e0b47f96 100644 --- a/LDP/guide/docbook/Intro-Linux/chap4.xml +++ b/LDP/guide/docbook/Intro-Linux/chap4.xml @@ -342,13 +342,6 @@ EOF - - - - - - - Boot process, Init and shutdown Introduction @@ -454,13 +447,6 @@ All of these utilities must be run as root. The system administrator may also m - - - - - - - Managing processes Work for the system admin @@ -642,13 +628,6 @@ joe 2634 32273 0 18:09 pts/4 00:00:00 grep 25915 - - - - - - - Scheduling processes Use that idle time! @@ -760,13 +739,6 @@ crontab: installing new crontab - - - - - - - Summary Linux is a multi-user, multi-tasking operating system that has a UNIX-like way of handling processes. Execution speed of commands can depend on a thousand tiny things. Among others, we learned a lot of new commands to visualize and handle processes. Here's a list: @@ -861,13 +833,6 @@ crontab: installing new crontab - - - - - - - Exercises These are some exercises that will help you get the feel for processes running on your system. @@ -909,12 +874,5 @@ crontab: installing new crontab - - - - - - - diff --git a/LDP/guide/docbook/Intro-Linux/chap5.xml b/LDP/guide/docbook/Intro-Linux/chap5.xml index 412654cf..e77837ba 100644 --- a/LDP/guide/docbook/Intro-Linux/chap5.xml +++ b/LDP/guide/docbook/Intro-Linux/chap5.xml @@ -223,25 +223,11 @@ My boss - - - - - - - Summary In this chapter we learned how commands can be linked to each other, and how input from one command can be used as output for another command. Input/output redirection is a common task on UNIX and Linux machines. This powerful mechanism allows flexible use of the building blocks UNIX is made of. - - - - - - - Exercises These exercises give more examples on how to combine commands. The main goal is to try and use the Enter key as little as possible. @@ -267,13 +253,6 @@ system: root - - - - - - - diff --git a/LDP/guide/docbook/Intro-Linux/chap6.xml b/LDP/guide/docbook/Intro-Linux/chap6.xml index 97947b2c..b314837a 100644 --- a/LDP/guide/docbook/Intro-Linux/chap6.xml +++ b/LDP/guide/docbook/Intro-Linux/chap6.xml @@ -44,13 +44,6 @@ - - - - - - - Using the Vim editor @@ -108,13 +101,6 @@ Commands that switch the editor to insert mode In UNIX and MS Windows, if Vim has been properly installed, you can start this program from the shell or command line, entering the vimtutor command. This will make a copy of the tutor file, so that you can edit it without the risk of damaging the original. There are a few translated versions of the tutor. To find out if yours is available, use the two-letter language code. For French this would be vimtutor fr (if installed on the system). - - - - - - - Linux in the office History @@ -149,38 +135,17 @@ Commands that switch the editor to insert mode - - - - - - - Summary In this chapter we learned to use an editor. While it depends on your own individual preference which one you use, it is necessary to at least know how to use one editor. The vi editor is available on every UNIX system. Most Linux distributions include an office suite and a graphical text editor. - - - - - - - Exercises This chapter has only one exercise: start the Vim tutor by entering vimtutor in a terminal session, and get started. You may alternatively start emacs and type Ctrl+H and then T to invoke the self-paced Emacs tutorial. Practice is the only way! - - - - - - - diff --git a/LDP/guide/docbook/Intro-Linux/chap7.xml b/LDP/guide/docbook/Intro-Linux/chap7.xml index a614340e..e307db5c 100644 --- a/LDP/guide/docbook/Intro-Linux/chap7.xml +++ b/LDP/guide/docbook/Intro-Linux/chap7.xml @@ -108,13 +108,6 @@ virtual memory (kbytes) unlimited - - - - - - - Your text environment Environment variables @@ -480,13 +473,6 @@ This script is a fine example of using functions, which make the script easier t - - - - - - - The graphical environment Introduction @@ -557,13 +543,6 @@ This script is a fine example of using functions, which make the script easier t Should you need to change graphical server settings, however, you can run the configuration tools or edit the configuration files that set up the infrastructure to use the XFree86 server. See the man pages for more information; your distribution might have its own tools. Since misconfiguration may result in unreadable garbage in graphical mode, you may want to make a backup copy of the XF86Config file before attempting to change it, just to be on the safe side. - - - - - - - Sound and video Sound card configuration @@ -669,13 +648,6 @@ If your soundcard is not supported by default, you will need to apply other tech - - - - - - - Region specific settings Keyboard setup @@ -736,13 +708,6 @@ LANG=en_US.UTF-8 The list of HOWTOs contains references to Bangla, Belarusian, Chinese, Esperanto, Finnish, Hebrew, Hellenic, Latvian, Polish, Portugese, Serbian, Slovak, Slovenian, Spanish, Thai and Turkish localization instructions. - - - - - - - Installing new software General @@ -910,13 +875,6 @@ title old-kernel - - - - - - - Summary When everything has its place, that means already half the work is done. @@ -924,13 +882,6 @@ title old-kernel Regional settings such as keyboard setup, installing appropriate fonts and language support are best done at installation time. Software is managed either automatically or manually using a package system. - - - - - - - Exercises Shell environment @@ -964,12 +915,5 @@ title old-kernel - - - - - - - diff --git a/LDP/guide/docbook/Intro-Linux/chap8.xml b/LDP/guide/docbook/Intro-Linux/chap8.xml index cab09717..734a6861 100644 --- a/LDP/guide/docbook/Intro-Linux/chap8.xml +++ b/LDP/guide/docbook/Intro-Linux/chap8.xml @@ -78,13 +78,6 @@ Printer: lp@blob - - - - - - - The server side General @@ -108,13 +101,6 @@ More information can be found at the CUPS homep Your best choice would be a printer with native PostScript support in the firmware, since nearly all UNIX or Linux software producing printable output, produces it in PostScript, the publishing industry's printer control language of choice. PostScript printers are usually a bit more expensive, but it is a device-independent, open programming language. - - - - - - - Print problems In this section, we will discuss what you can do as a user when something goes wrong. We won't discuss any problems that have to do with the daemon-part of the printing service, as that is a task for system administrators. @@ -158,13 +144,6 @@ Printer: lp@blob The GNU/Linux Printing site contains more tips and tricks. - - - - - - - Summary The Linux print service comes with a set of printing tools based on the standard UNIX LPD tools. Below is a list of print-related commands. @@ -210,13 +189,6 @@ Printer: lp@blob - - - - - - - Exercises Configuring and testing printers involves being in the possession of one, and having access to the root account. If so, you may try: @@ -238,12 +210,5 @@ Printer: lp@blob Use a2ps to print the /etc/profile file to an output file. Test again with gv. What happens if you don't specify an output file? - - - - - - - diff --git a/LDP/guide/docbook/Intro-Linux/chap9.xml b/LDP/guide/docbook/Intro-Linux/chap9.xml index d90e2ebf..32477295 100644 --- a/LDP/guide/docbook/Intro-Linux/chap9.xml +++ b/LDP/guide/docbook/Intro-Linux/chap9.xml @@ -173,13 +173,6 @@ Data, including tarballs, can be compressed using zip tools. The gzip< - - - - - - - Moving your data to a backup device @@ -313,13 +306,6 @@ Track 01: Total bytes read/written: 341540864/341540864 - - - - - - - Summary Here's a list of the commands involving file backup: @@ -345,13 +331,6 @@ Track 01: Total bytes read/written: 341540864/341540864 - - - - - - - Exercises @@ -361,12 +340,5 @@ Track 01: Total bytes read/written: 341540864/341540864 What happens to an unformatted floppy when you want to mount it into the file system? - - - - - - -