Andrew Hudson - Fedora™ Unleashed, 2008 edition

Здесь есть возможность читать онлайн «Andrew Hudson - Fedora™ Unleashed, 2008 edition» весь текст электронной книги совершенно бесплатно (целиком полную версию без сокращений). В некоторых случаях можно слушать аудио, скачать через торрент в формате fb2 и присутствует краткое содержание. Город: Indianapolis, Год выпуска: 2008, ISBN: 2008, Издательство: Sams Publishing, Жанр: ОС и Сети, на английском языке. Описание произведения, (предисловие) а так же отзывы посетителей доступны на портале библиотеки ЛибКат.

Fedora™ Unleashed, 2008 edition: краткое содержание, описание и аннотация

Предлагаем к чтению аннотацию, описание, краткое содержание или предисловие (зависит от того, что написал сам автор книги «Fedora™ Unleashed, 2008 edition»). Если вы не нашли необходимую информацию о книге — напишите в комментариях, мы постараемся отыскать её.

Quick Glance Guide
Finding information you need is not always easy. This short index provides a list of common tasks discussed inside this book. Browse the table of contents or index for detailed listings and consult the specified chapter for in-depth discussions about each subject.
left How Do I…?
See…
How Do I…?
See…
left Back up my system?
Chapter 13
Partition a hard drive?
Appendix B, Chapters 1, 35
left Build a new Linux kernel?
Chapter 36
Play MP3s and other music?
Chapter 7
left Burn a CD?
Chapter 7
Print a file?
Chapter 8
left Change a password?
Chapter 4
Read a text file?
Chapter 4
left Change the date and time?
Chapter 32
Read or send email?
Chapter 21
left Compress a file?
Chapter 13
Read or post to newsgroups?
Chapter 5
left Configure a modem?
Chapter 2
Reboot Fedora?
Chapter 1
left Configure a printer?
Chapter 8
Rescue my system?
Chapter 13
left Configure a scanner?
Chapter 7
Set up a DNS server?
Chapter 23
left Configure a sound card?
Chapter 7
Set up a firewall?
Chapter 14
left Configure my desktop settings?
Chapter 3
Set up a web server?
Chapter 15
left Connect to the Internet?
Chapter 5
Set up an FTP server?
Chapter 20
left Control a network interface?
Chapter 14
Set up Samba with SWAT?
Chapter 19
left Copy files or directories?
Chapters 13, 32
Set up wireless networking?
Chapter 14
left Create a boot disk to boot Fedora?
Chapter 1
Shut down Fedora?
Chapter 1
left Create a database?
Chapter 16
Use a spreadsheet?
Chapter 6
left Create a user?
Chapter 4
Use Instant Messaging?
Chapter 5
left Delete a file or directory?
Chapter 32
Watch television on my computer?
Chapter 7
left Get images from a digital camera?
Chapter 7
Edit a text file?
Chapter 4
left Install Fedora?
Chapter 1
Make Fedora more secure?
Chapter 14
left Log in to Fedora?
Chapter 1
Mount a CD-ROM or hard drive?
Chapter 35

Fedora™ Unleashed, 2008 edition — читать онлайн бесплатно полную книгу (весь текст) целиком

Ниже представлен текст книги, разбитый по страницам. Система сохранения места последней прочитанной страницы, позволяет с удобством читать онлайн бесплатно книгу «Fedora™ Unleashed, 2008 edition», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.

Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

The shell's pattern strings can be simple or complex, but even using a small subset of the available characters in simple wildcards can yield constructive results at the command line. Some common characters used for shell pattern matching are the following:

*—Matches any character. For example, to find all files in the current directory ending in .txt,you could use

$ ls *.txt

?— Matches a single character. For example, to find all files in the current directory ending in the extension .d?c(where ?could be 0-9, a-z, or A-Z),

$ ls *.d?c

[xxx]or [x-x]— Matches a range of characters. For example, to list all files in a directory with names containing numbers,

$ ls *[0-9]*

► \x — Matches or escapes a character such as ? or a tab character. For example, to create a file with a name containing a question mark,

$ touch foo\?

Note that the shell might not interpret some characters or regular expressions in the same manner as a Linux command, and mixing wildcards and regular expressions in shell scripts can lead to problems unless you're careful. For example, finding patterns in text is best left to regular expressions used with commands such as grep; simple wildcards should be used for filtering or matching filenames on the command line. And although both Linux command expressions and shell scripts can recognize the backslash as an escape character in patterns, the dollar sign ( $) has two wildly different meanings (single-character pattern matching in expressions and variable assignment in scripts).

CAUTION

Make sure that you read your command carefully when using wildcards; an all-too-common error is to type something like rm -rf * .txt with a space between the *and the .txt. By the time you wonder why the command is taking so long, bashwill already have deleted most of your files. The problem is that it treats the *and the .txtseparately. *matches everything, so bashdeletes all your files.

Piping Data

Many Linux commands can be used in concert in a single, connected command line to transform data from one form to another. Stringing Linux commands together in this fashion is known as using or creating pipes. Pipes are created on the command line with the bar operator (|). For example, a pipe can be used to perform a complex task from a single command line like this:

$ find /d2 -name '*.txt' -print | xargs cat | \

tr ' ' '\n' | sort | uniq >output.txt

This example takes the output of the findcommand to feed the catcommand (via xargs)the name of all text files under the /d2command. The content of all matching files is then fed through the trcommand to change each space in the data stream into a carriage return. The stream of words is then sorted, and identical adjacent lines are removed with the uniqcommand. The output, a raw list of words, is then saved in the file named output.txt.

Background Processing

The shell enables you to start a command and then launch it into the background as a process by using an ampersand ( &) at the end of a command line. This technique is often used at the command line of an X terminal window to start a client and return to the command line. For example, to launch another terminal window using the xtermclient,

$ xterm &

[3] 1437

The numbers echoed back show a number ( 3in this example), which is a job number, or reference number for a shell process, and a Process ID number, or PID ( 1437in this example). You can kill the xtermwindow session by using the shell's built-in killcommand, along with the job number like this:

$ kill %3

Or the process can be killed with the killcommand, along with the PID, like so:

$ kill 1437

Background processing can be used in shell scripts to start commands that take a long time, such as backups:

# tar -czf /backup/home.tgz /home &

Related Fedora and Linux Commands

You can use these commands and tools when using the shell or writing shell scripts:

chsh — Command used to change one's login shell

kibitz — Allows two-person interaction with a single shell

mc — A visual shell named the GNU Midnight Commander

nano — An easy-to-use text editor for the console

system-config-users — A graphical user-management utility that can be used to change one or more user login shells

shar — Command used to create shell archives

vi — The vi(actually vim)text editor

Reference

http://www.linuxgazette.com/issue70/ghosh.html— A Linux Gazette article on "Bootstrapping Linux," which includes much detail on the BIOS and MBR aspects of the boot process.

http://www.lostcircuits.com/advice/bios2/1.shtml— the LostCircuits BIOS guide; much detail on the meaning of all those BIOS settings.

http://www.rojakpot.com/default.aspx?location=1— The BIOS Optimization Guide; details on tweaking those BIOS settings to your heart's content.

http://www-106.ibm.com/developerworks/linux/library/l-slack.html— A link through IBM's website to an article on booting Slackware Linux, along with a sidebar about the history of System V versus BSD initscripts.

/usr/src/linux/init/main.c— This file in the Linux source code is the best place to learn about how Linux boots. Fascinating reading, really. Get it from the source!

http://sunsite.dk/linux-newbie/— Home page for the Linux Newbie Administrator Guide — a gentle introduction to Linux System Administration.

http://www.gnu.org/software/grub/manual/— The still yet-to-be-completed GRUB Manual. On your Fedora system, info grubprovides a plethora of information, and a sample grub.conffile ( /boot/grub/menu.lstis a symbolic link to /boot/grub/grub.conf; use either name) can be found in /usr/doc/grub.

LILO User's Guide— Werner Almesberger's definitive technical tome on the LInux LOader, or LILO, and how it works on Intel-based PCs. Look under the /usr/share/doc/lilo*/docdirectory for the file User_Guide.ps, which can be viewed with the gv client. LILO has been dropped from Fedora; GRUB is now the default boot loader supported in the distribution.

"Managing Initscripts with Red Hat's chkconfig"— by Jimmy Ball, Linux Journal, April 2001; pp. 128-132.

"Grub, Glorious Grub"— Hoyt Duff, Linux Format, August 2001; pp. 58-61. A tutorial on the GRUB boot loader.

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-services-serviceconf.html— Red Hat's guide to use the system-config-serviceclient (then called redhat-config-service).

http://www.linuxbase.org/spec/refspecs/LSB_1.0.0/gLSB/sysinit.html— The Linux Standard Base description of system initialization; this is the standard.

Читать дальше
Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

Похожие книги на «Fedora™ Unleashed, 2008 edition»

Представляем Вашему вниманию похожие книги на «Fedora™ Unleashed, 2008 edition» списком для выбора. Мы отобрали схожую по названию и смыслу литературу в надежде предоставить читателям больше вариантов отыскать новые, интересные, ещё непрочитанные произведения.


Отзывы о книге «Fedora™ Unleashed, 2008 edition»

Обсуждение, отзывы о книге «Fedora™ Unleashed, 2008 edition» и просто собственные мнения читателей. Оставьте ваши комментарии, напишите, что Вы думаете о произведении, его смысле или главных героях. Укажите что конкретно понравилось, а что нет, и почему Вы так считаете.

x