Книга: The Linux Command Line
Назад: 31. Flow Control: Branching with case
Дальше: Colophon

$#,
$((expression)),
$*,
$0,
$@,
${!array[*]},
${!array[@]},
${!prefix*},
${!prefix@},
${#parameter},
${parameter##pattern},
${parameter#pattern},
${parameter%%pattern},
${parameter%pattern},
${parameter/#pattern/string},
${parameter/%pattern/string},
${parameter//pattern/string},
${parameter/pattern/string},
${parameter:+word},
${parameter:-word},
${parameter:=word},
${parameter:?word},
(( )) compound command, ,
--help option,
./configure,
.bashrc, , , , ,
.bash_history,
.bash_login,
.bash_profile,
.profile,
.ssh/known_hosts,
/,
/bin,
/boot,
/boot/grub/grub.conf,
/boot/vmlinuz,
/dev,
/dev/cdrom,
/dev/dvd,
/dev/floppy,
/dev/null,
/etc,
/etc/bash.bashrc,
/etc/crontab,
/etc/fstab, , ,
/etc/group,
/etc/passwd, , , , ,
/etc/profile, ,
/etc/shadow,
/etc/sudoers,
/lib,
/lost+found,
/media,
/mnt,
/opt,
/proc,
/root, ,
/sbin,
/tmp, ,
/usr,
/usr/bin,
/usr/lib,
/usr/local,
/usr/local/bin, ,
/usr/local/sbin,
/usr/sbin,
/usr/share,
/usr/share/dict,
/usr/share/doc, ,
/var,
/var/log,
/var/log/messages, , ,
[ command,
“hello world” program,
“release early, release often,” 369,

A

a2ps command,
absolute pathnames,
alias command, ,
aliases, , ,
American National Standards Institute (ANSI),
American Standard Code for Information Interchange. See ASCII,
anchors,
anonymous FTP servers,
ANSI (American National Standards Institute),
ANSI escape codes,
ANSI.SYS,
Apache web server,
apropos command,
apt-cache command,
apt-get command,
aptitude command,
archiving,
arithmetic expansion, , , , ,
arithmetic expressions, , , , ,
arithmetic operators, ,
arithmetic truth tests, ,
arrays, , , , , , , , , , , , ,
appending values to the end,
assigning values,
creating,
deleting,
determining number of elements,
finding used subscripts,
index,
multidimensional,
reading variables into,
sorting,
subscript,
two-dimensional,
ASCII (American Standard Code for Information Exchange), , , , , , , , , , , , , , , , , , ,
bell character,
carriage return,
collation order, , ,
control codes, , ,
groff output driver,
linefeed character,
null character,
printable characters,
text,
aspell command,
assembler,
assembly language,
assignment operators,
asynchronous execution,
audio CDs, ,
AWK programming language, ,

B

back references, ,
backslash escape sequences,
backslash-escaped special characters,
backups, incremental,
basename command,
bash (shell), , ,
man page,
basic regular expressions, , , , ,
bc command,
Berkeley Software Distribution (BSD),
bg command,
binary, , , ,
bit mask,
bit operators,
Bourne, Steve,
brace expansion, , ,
branching,
break command, ,
broken links,
BSD (Berkeley Software Distribution),
BSD-style behavior,
buffering,
bugs,
build environment,
bzip2 command,

C

C programming language, , , ,
C++ programming language,
cal command,
cancel command,
carriage return, , , , , , ,
case compound command,
cat command, ,
cd command,
CD-ROMs, ,
cdrecord command,
cdrtools package,
character classes, , , , ,
character ranges, , ,
chgrp command,
child process,
chmod command, , ,
chown command, ,
chronological sorting,
cleartext, ,
client-server architecture,
COBOL programming language,
collation order, , , , , , , , ,
ASCII, ,
dictionary,
traditional,
comm command,
command history, ,
command line, , , , , , , , ,
arguments,
editing, ,
expansion,
history, ,
interfaces, ,
command options,
command substitution, ,
commands, , , , , , , , , , ,
arguments, ,
determining type,
documentation,
executable program files, ,
executing as another user,
long options,
options,
comments, , , , ,
Common Unix Printing System (CUPS),
comparison operators,
compiling,
completions,
compound commands, , , , , , , , , , , , ,
(( )), , ,
case,
for,
if,
until,
while,
[[ ]], ,
compression algorithms,
conditional expressions,
configuration files, , ,
configure command,
constants,
continue command,
control characters, ,
control codes, ,
control operators, , , , ,
&&, ,
||,
controlling terminal,
COPYING (documentation file),
copying and pasting, , , ,
in vim,
on the command line,
with X Window System,
coreutils package, , ,
counting words in a file,
cp command, , , ,
CPU, ,
cron job,
crossword puzzles,
csplit command,
CUPS (Common Unix Printing System),
current working directory,
cursor movement,
cut command, ,

D

daemon programs, ,
data compression,
data redundancy,
data validation,
date command,
date formats,
dd command,
Debian,
debugging, ,
defensive programming, ,
delimiters, , ,
dependencies, ,
design, ,
device drivers, ,
device names,
device nodes,
df command, ,
DHCP (Dynamic Host Configuration Protocol),
diction program,
dictionary collation order,
diff command,
Digital Rights Management (DRM),
directories, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
archiving,
changing,
copying,
creating, ,
current working,
deleting, ,
hierarchical,
home, , ,
listing,
moving, ,
navigating,
OLD_PWD variable,
parent,
PATH variable,
PWD variable,
removing, ,
renaming, ,
root,
shared,
sticky bit,
synchronizing,
transferring over a network,
viewing contents,
disk partitions,
DISPLAY variable,
Dolphin,
dos2unix command,
double quotes,
dpkg command,
DRM (Digital Rights Management),
du command, ,
Dynamic Host Configuration Protocol (DHCP),

E

echo command, , , , ,
-e option,
-n option,
edge and corner cases,
EDITOR variable,
effective group ID,
effective user ID, ,
elif statement,
email,
embedded systems,
empty variables,
encrypted tunnels,
encryption,
end-of-file, ,
endless loop,
enscript command,
environment, , , , , , , , , , , ,
aliases,
establishing,
examining,
login shell,
shell functions,
shell variables,
startup files,
subshells,
variables,
eqn command,
executable programs, , , , ,
determining location,
PATH variable,
exit command, , ,
exit status, ,
expand command,
expansions, , , , , , , , , , , , , , , , , , , , , , , , ,
arithmetic, , , , ,
brace, , ,
command substitution, ,
delimiters,
errors resulting from,
history,
parameter, , , , ,
pathname, , ,
tilde, ,
word splitting,
expressions, , , , , , , , , , ,
arithmetic, , , , ,
conditional,
ext3 filesystem,
extended regular expressions,
Extensible Markup Language (XML),

F

false command,
fdformat command,
fdisk command,
fg command,
FIFO (first-in, first-out),
file command,
file descriptor,
File Transfer Protocol (FTP),
filenames, , , , , ,
case sensitive,
embedded spaces in, ,
extensions,
hidden,
files, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
.deb,
.rpm,
access,
archiving, ,
attributes,
block special,
block special device,
changing file mode,
changing owner and group owner,
character special,
character special device,
compression,
configuration, , ,
copying, ,
copying over a network,
creating empty,
deleting, , ,
determining contents,
device nodes,
execution access,
expressions, , ,
finding,
hidden,
ISO image,
listing, ,
mode,
moving, ,
owner,
permissions,
read access,
regular,
removing, ,
renaming, ,
shared library,
startup,
sticky bit,
symbolic links,
synchronizing,
temporary,
text,
transferring over a network, , ,
truncating,
type,
viewing contents,
write access,
filesystem corruption,
filters,
find command, ,
firewalls,
first-in, first-out (FIFO),
floppy disks, , ,
flow control, , , , , , , , , , , , , , , , ,
branching,
case compound command,
elif statement,
endless loop,
for compound command,
for loop,
function statement,
if compound command,
looping,
menu-driven,
multiple-choice decisions,
reading files with while and until loops,
terminating a loop,
traps,
until loop,
while loop,
fmt command,
focus policy,
fold command,
for compound command,
for loop,
Foresight,
Fortran programming language, ,
free command, ,
Free Software Foundation,
fsck command,
FTP (File Transfer Protocol),
ftp command, , , ,
FTP servers, ,
FUNCNAME variable,
function statement,

G

gcc (compiler),
gedit command, ,
genisoimage command,
Gentoo,
Ghostscript,
gid (primary group ID),
global variables,
globbing,
GNOME, , , , , ,
gnome-terminal,
GNU binutils package,
GNU C Compiler,
GNU coreutils package, , ,
GNU Project, , , ,
info command,
GNU/Linux,
graphical user interface (GUI), , , , , , ,
grep command, , ,
groff command,
group commands,
groups, , ,
effective group ID,
primary group ID,
GUI (graphical user interface), , , , , , ,
gunzip command,
gzip command, ,

H

hard disks,
hard links, , , , ,
creating,
listing,
head command,
header files,
help command,
here documents,
here strings,
hexadecimal, ,
hidden files, ,
hierarchical directory structure,
high-level programming languages,
history, , ,
expansion,
searching,
history command,
home directories, , , , , , , ,
/etc/passwd,
root account,
HOME variable,
hostname,
HTML (Hypertext Markup Language), , , , ,

I

I/O redirection,
id command,
IDE,
if compound command, , ,
IFS (Internal Field Separator) variable,
IMCP ECHO_REQUEST,
incremental backups,
info files,
init program,
init scripts,
inodes,
INSTALL (documentation file),
installation wizard,
integers, , , , , ,
arithmetic, ,
division, ,
interactivity,
Internal Field Separator (IFS) variable,
interpreted languages,
interpreted programs,
interpreter,
ISO images,
iso9660 (device type), ,

J

job control,
job numbers,
jobspec,
join command,
Joliet extensions,
Joy, Bill,

K

kate command,
KDE, , , , , ,
kedit command,
kernel, , , , , , , , , , ,
device drivers,
key fields,
kill command,
killall command,
killing text,
Knuth, Donald,
Konqueror, , ,
konsole (terminal emulator),
kwrite command, ,

L

LANG variable, , ,
less command, , , ,
lftp command,
libraries,
line editors,
line-continuation character, ,
linker (program),
linking (process),
links, , , , , , ,
broken,
creating,
hard, ,
symbolic, ,
Linux community,
Linux distributions, , , , , , , , , , , , , , , , , , , , , , ,
CentOS, ,
Debian, ,
Fedora, , , ,
Foresight,
Gentoo,
Linspire,
Mandriva,
OpenSUSE, ,
packaging systems,
PCLinuxOS,
Red Hat Enterprise Linux,
Slackware,
Ubuntu, , ,
Xandros,
Linux Filesystem Hierarchy Standard, ,
Linux kernel, , , , , , , , , , ,
device drivers,
literal characters,
ln command, ,
local variables,
locale, , , ,
locale command,
localhost,
locate command, ,
logical errors,
logical operators, ,
logical relationships, ,
logical volume manager (LVM), ,
login prompt, ,
login shell, , ,
long options,
loopback interface,
looping,
loops, , , , ,
lossless compression,
lossy compression,
lp command,
lpq command,
lpr command,
lprm command,
lpstat command,
ls command, , , ,
long format,
viewing file attributes,
Lukyanov, Alexander,
LVM (logical volume manager), ,

M

machine language,
maintenance, , , ,
make command,
Makefile,
man command,
man pages, ,
markup languages, ,
memory, , , , , , , ,
assigned to each process,
displaying free,
RSS (Resident Set Size),
segmentation violation,
usage, ,
virtual,
menu-driven programs,
meta key,
metacharacters,
metadata, ,
metasequences,
mkdir command, ,
mkfifo command,
mkfs command, ,
mkisofs command,
mktemp command,
mnemonics,
modal editor,
monospaced fonts,
Moolenaar, Bram,
mount command, ,
mount points, , ,
mounting,
MP3 files,
multiple-choice decisions,
multitasking, , ,
multiuser systems,
mv command, ,

N

named pipes,
nano command,
Nautilus, , ,
netstat command,
networking, , , , , , , , , , , , , , , , , ,
anonymous FTP servers,
default route,
Dynamic Host Configuration Protocol (DHCP),
encrypted tunnels,
examining network settings and statistics,
File Transfer Protocol (FTP),
firewalls,
local area network (LAN),
loopback interface,
man-in-the-middle attacks,
routers,
secure communication with remote hosts,
testing whether a host is alive,
tracing the route to a host,
transferring files,
transporting files,
virtual private network,
newline characters, ,
NEWS (documentation file),
nl command,
nroff command,
null character,
number bases,

O

octal, , ,
Ogg Vorbis files,
OLD_PWD variable,
OpenOffice.org Writer,
OpenSSH,
operators, , , , , , , ,
arithmetic, ,
assignment,
binary,
comparison,
ternary,
owning files,

P

package files,
package maintainers,
package management, , , , , , , , , ,
Debian style (.deb),
finding packages,
high-level tools,
installing packages,
low-level tools,
package repositories,
Red Hat style (.rpm),
removing packages,
updating packages,
packaging systems,
page-description language, , ,
PAGER variable,
pagers,
parameter expansion, , , , ,
parent process,
passwd command,
passwords,
paste command,
PATA hard drives,
patch command,
patches,
PATH variable, , , ,
pathname expansion, , ,
pathnames, , , ,
absolute,
completion,
relative,
PDF (Portable Document Format), ,
Perl programming language, , , , ,
permissions,
PHP programming language,
ping command,
pipelines, , , ,
in command substitution,
portability, , ,
Portable Document Format (PDF), ,
Portable Operating System Interface (POSIX). See POSIX (Portable Operation System Interface), ,
positional parameters, ,
POSIX (Portable Operating System Interface), , , , , , , , ,
character classes, , , , , ,
PostScript, , , ,
pr command, ,
primary group ID (gid),
printable characters,
printenv command, ,
printers, , , , , , , , ,
buffering output,
control codes,
daisy-wheel,
device names,
drivers,
graphical,
impact,
laser,
printf command, ,
printing, , , , , , , , , , , , ,
determining system status,
history of,
Internet Printing Protocol,
monospaced fonts,
preparing text,
pretty,
proportional fonts,
queues, ,
spooling,
terminating print jobs,
viewing jobs,
process ID,
process substitution,
processes, , , , , , , , , , , , , , , , , , , ,
background,
child,
controlling,
foreground,
interrupting,
job control,
killing,
nice,
parent,
process ID,
SIGINT,
signals,
SIGTERM,
sleeping,
state,
stopping,
viewing, ,
zombie,
production use,
programmable completion,
ps command,
PS1 variable, ,
PS2 variable,
ps2pdf command,
PS4 variable,
pseudocode, ,
pstree command,
PuTTY,
pwd command,
PWD variable,
Python programming language,

Q

quoting, , , , ,
double quotes,
escape character,
missing quote,
single quotes,

R

RAID (redundant array of independent disks),
raster image processor (RIP),
read command, , , ,
Readline,
README (documentation file), ,
redirection, , , , , , , , ,
blocked pipe,
group commands and subshells,
here documents,
here strings,
standard error,
standard input, ,
standard output,
redirection operators, , , , , , , , , , ,
&>,
<,
<(list),
<<,
<<-,
<<<,
>,
>(list),
>>,
|,
redundant array of independent disks (RAID),
regular expressions, , , , , , , , , , , , , ,
anchors,
back references, ,
basic, , , , ,
extended,
relational databases,
relative pathnames,
removing duplicate lines in a file,
REPLY variable, ,
report generator,
repositories,
return command, ,
RIP (raster image processor),
rlogin command,
rm command,
Rock Ridge extensions,
roff command,
ROT13 encoding,
rpm command,
rsync command,
rsync remote-update protocol,
Ruby programming language,

S

scalar variables,
Schilling, Jörg,
scp command,
script command,
scripting languages, ,
sdiff command,
searching a file for patterns,
searching history,
Secure Shell (SSH),
sed command, , ,
set command, ,
setuid, ,
Seward, Julian,
sftp command,
shared libraries, ,
shebang,
shell builtins,
shell functions, , , ,
shell prompts, , , , , , , , ,
shell scripts,
SHELL variable,
shell variables,
shift command, ,
SIGINT signal,
signals,
single quotes,
Slackware,
sleep command,
soft link,
sort command, ,
sort keys,
source code, , , ,
source command, ,
source tree,
special parameters, ,
split command,
SSH (Secure Shell),
ssh program, , ,
Stallman, Richard, , , , ,
standard error, , ,
disposing of,
redirecting to a file,
standard input, , , ,
redirecting,
standard output, , , , ,
appending to a file,
disposing of,
redirecting standard error to,
redirecting to a file,
startup files,
stat command,
sticky bit,
storage devices, , , , , , , , , , , , , , , , , , , ,
audio CDs, ,
CD-ROMs, ,
creating filesystems,
device names,
disk partitions,
FAT32,
floppy disks, ,
formatting,
LVM,
mount points, ,
partitions,
reading and writing directly,
repairing filesystems,
unmounting,
USB flash drives,
stream editor, , ,
strings, , , , , , , ,
${parameter:offset:length},
${parameter:offset},
extract a portion of,
length of,
perform search and replace upon,
remove leading portion of,
remove trailing portion of,
strings command,
stubs, ,
style (program file),
su command,
subshells, ,
sudo command,
Sun Microsystems,
superuser, , , ,
symbolic links, , , , , ,
creating, ,
listing,
syntax errors,
syntax highlighting, ,

T

tables,
tabular data, ,
tail command,
tape archive,
tar command,
tarballs,
targets,
Task Manager,
Tatham, Simon,
tbl command, ,
tee command,
teletype,
telnet command,
TERM variable,
terminal emulators,
terminal sessions, , , , , , , , , , ,
controlling the terminal,
effect of .bashrc,
environment,
exiting,
login shell, ,
TERM variable,
using named pipes,
virtual,
with remote systems,
terminals, , , ,
ternary operator,
test cases,
test command, , , ,
test coverage,
testing,
TEX,
text, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
adjusting line length,
ASCII,
carriage return,
comparing,
converting MS-DOS to Unix,
counting words,
cutting,
deleting duplicate lines,
deleting multiple blank lines,
detecting differences,
displaying common lines,
displaying control characters,
DOS format,
EDITOR variable,
expanding tabs,
files,
filtering,
folding,
formatting,
formatting for typesetters,
formatting tables,
joining,
linefeed character,
lowercase to uppercase conversion,
numbering lines, ,
paginating,
pasting,
preparing for printing,
removing duplicate lines,
rendering in PostScript,
ROT13 encoded,
searching for patterns,
sorting, ,
spell checking,
substituting,
substituting tabs for spaces,
tab delimited,
transliterating characters,
Unix format,
viewing with less, ,
text editors, , , , , , , , , , , , , , , , , , , , , , , ,
emacs,
for writing shell scripts,
gedit, ,
interactive,
kate, ,
kedit,
kwrite,
line,
nano, ,
pico,
stream,
syntax highlighting, ,
vi,
vim, , ,
visual,
tilde expansion, ,
tload command,
top command,
top-down design,
Torvalds, Linus,
touch command, , , ,
tr command,
traceroute command,
tracing,
transliterating characters,
traps,
troff command,
true command,
TTY (field),
type command,
typesetters, ,
TZ variable,

U

Ubuntu, , , , ,
umask command, ,
umount command,
unalias command,
unary operator expected (error message),
unary operators,
unexpand command,
unexpected tokens,
uniq command, ,
Unix,
Unix System V,
unix2dos command,
unset command,
until compound command,
until loop,
unzip command,
updatedb command,
upstream providers,
uptime,
uptime command,
USB flash drives, ,
Usenet,
USER variable, ,
users, , , , , , , , , , , , , , , ,
/etc/passwd,
/etc/shadow,
accounts,
changing identity,
changing passwords,
effective user ID, ,
home directory,
identity,
password,
setuid,
superuser, , , ,

V

validating input,
variables, , , , , , , , , , , , , , ,
assigning values, ,
constants,
declaring, ,
environment,
global,
local,
names, ,
scalar,
shell,
vfat filesystem,
vi command,
vim command, ,
virtual consoles,
virtual private network (VPN),
virtual terminals,
visual editors,
vmstat command,
VPN (virtual private network),

W

wait command,
wc command,
web pages,
wget command,
What You See Is What You Get (WYSIWYG),
whatis command,
which command,
while compound command,
wildcards, , , , ,
wodim command,
word splitting,
world,
WYSIWYG (What You See Is What You Get),

X

X Window System, , ,
xargs command,
xload command,
xlogo command,
XML (Extensible Markup Language),

Y

yanking text,
yum command,

Z

zgrep command,
zip command,
zless command,

© RuTLib.com 2015-2018