⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glossary.htm

📁 the unix power tools
💻 HTM
📖 第 1 页 / 共 4 页
字号:
CLASS="glossterm"NAME="GLOSS-DEFAULT">default</A></DT><DDCLASS="glossdef"><PCLASS="para">In a program that gives you more than one choice, the default choice isthe one you get by not choosing.The default is usually the most common choice.As an example, the default file for many UNIX programs is the standardinput.If you don't give a filename on the command line, a program willread its standard input.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-DOT-FILES">dot (.) files (.cshrc, .login, .profile</A></DT><DDCLASS="glossdef"><PCLASS="para">Files that are read when you start a program (including when you log in andstart a shell).These set up your environment and run any other UNIX commands (forinstance,<EMCLASS="emphasis">tset</EM>).If your account uses the C shell, it will read <EMCLASS="emphasis">.cshrc</EM> and <EMCLASS="emphasis">.login</EM>.Accounts that use the Bourne shell and shells like it read <EMCLASS="emphasis">.profile</EM>.<EMCLASS="emphasis">See also</EM> article<ACLASS="xref"HREF="ch02_02.htm"TITLE="Shell Setup Files-Which, Where, and Why ">2.2</A>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-DOUBLE-QUOTE">double quote</A></DT><DDCLASS="glossdef"><PCLASS="para">The <CODECLASS="literal">&quot;</CODE> character. This isn't the same as two single quotes (<CODECLASS="literal">''</CODE>)together.The <CODECLASS="literal">&quot;</CODE> is used around a part of a UNIX command line wherethe shell should do variable and command substitution (and, on the Cshell, history substitution), but no other interpretation.<EMCLASS="emphasis">See also</EM> articles<ACLASS="xref"HREF="ch08_14.htm"TITLE="Bourne Shell Quoting ">8.14</A>and<ACLASS="xref"HREF="ch08_15.htm"TITLE="Differences Between Bourne and C Shell Quoting ">8.15</A>,<ACLASS="xref"HREF="glossary.htm#GLOSS-SINGLE-QUOTE"TITLE="">single quote</A>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-ESCAPE">escape</A></DT><DDCLASS="glossdef"><PCLASS="para">When you <EMCLASS="emphasis">escape</EM> a character or a string of characters, you changethe way it is interpreted.Escaping something can take away its special meaning, as in<SPANCLASS="link">shell quoting (<ACLASS="linkend"HREF="ch08_14.htm"TITLE="Bourne Shell Quoting ">8.14</A>)</SPAN>-or can add special meaning, as in<SPANCLASS="link">terminal escape sequences (<ACLASS="linkend"HREF="ch05_08.htm"TITLE="Terminal Escape Sequences ">5.8</A>)</SPAN>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-FLAG">flag</A></DT><DDCLASS="glossdef"><PCLASS="para">In programming, a <EMCLASS="emphasis">flag variable</EM> is set to signal that somecondition has been met or that something should be done.For example, a flag can be set (&quot;raised&quot;) if the user has entered somethingwrong; the program can test for this flag and not continue untilthe problem has been fixed.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-FLAME">flame</A></DT><DDCLASS="glossdef"><PCLASS="para">A heated or irrational statement.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-FRAGMENT">fragment</A></DT><DDCLASS="glossdef"><PCLASS="para">In the BSD &quot;fast filesystem,&quot; a fragment is a portion of a diskblock&nbsp;- usually one-eighth of a block, but possibly one-quarter or one-half of a block. If the last portion of a file doesn't occupy a full disk block, the filesystem will allocate one or more fragments rather than an entire block. Don't confuse &quot;fragments&quot; with &quot;fragmentation.&quot; Fragments allow the BSD filesystem to use larger block sizes without becoming inefficient.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-FREE-SOFTWARE-FOUNDATION">Free Software Foundation, FSF</A></DT><DDCLASS="glossdef"><PCLASS="para">A group that develops the freely available GNU software.Their address is: 675 Massachusetts Avenue, Cambridge, MA 02139 USA.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-FULL-DUPLEX">full-duplex</A></DT><DDCLASS="glossdef"><PCLASS="para">Communications between a terminal and a computer where data flows in bothdirections at the same time.<EMCLASS="emphasis">Half-duplex</EM> communications, where data flows in only one directionat a time, are unusual these days.<EMCLASS="emphasis">See also</EM> article<ACLASS="xref"HREF="ch41_02.htm"TITLE="stty and All That Stuff ">41.2</A>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-GNU">GNU</A></DT><DDCLASS="glossdef"><PCLASS="para">Gnu's Not Unix, a system of software planned toeventually be a freely available substitute for UNIX.<EMCLASS="emphasis">See also</EM><ACLASS="xref"HREF="glossary.htm#GLOSS-FREE-SOFTWARE-FOUNDATION"TITLE="">Free Software Foundation, FSF</A>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-GOTCHA">gotcha</A></DT><DDCLASS="glossdef"><PCLASS="para">A &quot;catch,&quot; difficulty, or surprise in the way that a program works.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-HARDCODED">hardcoded</A></DT><DDCLASS="glossdef"><PCLASS="para">In general, a value that can't be changed.For example, in a shell script with the command <CODECLASS="literal">grep jane</CODE>, thevalue <CODECLASS="literal">jane</CODE> is hardcoded; <EMCLASS="emphasis">grep</EM> will always search for<EMCLASS="emphasis">jane</EM>.But in the command <CODECLASS="literal">grep&nbsp;$USER</CODE>, the text that <EMCLASS="emphasis">grep</EM> searches foris not hardcoded; it's a variable value.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-HASH-TABLE">hash table</A></DT><DDCLASS="glossdef"><PCLASS="para"><EMCLASS="emphasis">Hashing</EM> data into the format of a hash table letsspecially designed programs search for data quickly.A hash table assigns a special search code to each piece of data.For example, the C shell uses a hash table to locate commandsmore quickly; the<SPANCLASS="link"><EMCLASS="emphasis">rehash</EM> (<ACLASS="linkend"HREF="ch04_02.htm"TITLE="A bin Directory for Your Programs and Scripts ">4.2</A>)</SPAN>command rebuilds the hash table after you add a new command.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-IO">I/O</A></DT><DDCLASS="glossdef"><PCLASS="para">Input/output of text from software or hardware.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-INODE">inode</A></DT><DDCLASS="glossdef"><PCLASS="para">A data structure that describes a file. Within any filesystem, thenumber of inodes, and hence the maximum number of files, is set whenthe filesystem is created.<EMCLASS="emphasis">See also</EM> article<ACLASS="xref"HREF="ch01_22.htm"TITLE="How UNIX Keeps Track of Files: Inodes ">1.22</A>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-I-NUMBER">i-number</A></DT><DDCLASS="glossdef"><PCLASS="para">A UNIX file has a name (for people to identify it with) and an i-number(for UNIX to identify it with).Each file's i-number is stored in a directory, along with the filename, tolet UNIX find the file that you name.<EMCLASS="emphasis">See also</EM> article<ACLASS="xref"HREF="ch01_22.htm"TITLE="How UNIX Keeps Track of Files: Inodes ">1.22</A>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-JOB">job</A></DT><DDCLASS="glossdef"><PCLASS="para">One UNIX command. It is easy to be sloppy and use the terms job,process, and program interchangeably. I do it and I'm sure you do,too. Within UNIX documentation, though, the word &quot;job&quot; is usuallyused to mean one, and only one, command line. Note that one commandline can be complex. For example:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen"><CODECLASS="userinput"><B>pic a.ms | tbl | eqn | troff -ms</B></CODE></PRE></BLOCKQUOTE></P><PCLASS="para">is one command, and hence one job, that is formed from four processes.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-JOB-NUMBER">job number</A></DT><DDCLASS="glossdef"><PCLASS="para">Shells with job control assign a job number to every command that is stopped orthat is running in the<SPANCLASS="link">background (<ACLASS="linkend"HREF="ch01_26.htm"TITLE="What a Multiuser System Can Do for You ">1.26</A>)</SPAN>.You can use job numbers to referto your own commands or groups of commands. Job numbers aregenerally easier to use than process IDs; they are much smaller(typically between 1 and 10), and therefore easier to remember.The C shell <EMCLASS="emphasis">jobs</EM> command displays job numbers.<EMCLASS="emphasis">See also</EM> article<ACLASS="xref"HREF="ch12_01.htm#UPT-ART-0439"TITLE="Job Control: Work Faster, Stop Runaway Jobs ">12.1</A>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-KERNEL">kernel</A></DT><DDCLASS="glossdef"><PCLASS="para">The part of the UNIX operating system that provides memorymanagement, I/O services, and all other low-level services. Thekernel is the &quot;core&quot; or &quot;heart&quot; of the operating system.<EMCLASS="emphasis">See also</EM> article<ACLASS="xref"HREF="ch01_14.htm"TITLE="The Kernel and Daemons ">1.14</A>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-KLUDGE">kludge</A></DT><DDCLASS="glossdef"><PCLASS="para">A program or a solution to a problem that isn't written carefully, doesn'twork as well as it should, doesn't use good programming style, and so on.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-LIBRARY-FUNCTION">library function</A></DT><DDCLASS="glossdef"><PCLASS="para">Packages of system calls (and of other library functions) for programmersin C and other languages.In general (though not always), a library function is a &quot;higher-leveloperation&quot; than a system call.<EMCLASS="emphasis">See also</EM><ACLASS="xref"HREF="glossary.htm#GLOSS-SYSTEM-CALL"TITLE="">system call</A>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-LOAD-AVERAGE">load average</A></DT><DDCLASS="glossdef"><PCLASS="para">A measure of how busy the CPU is. The load average is useful, thoughimprecise. It is defined as the average number of jobs in the runqueue plus the average number of jobs that are blocked while waiting fordisk I/O.The<SPANCLASS="link"><EMCLASS="emphasis">uptime</EM> (<ACLASS="linkend"HREF="ch39_07.htm"TITLE="Checking System Load: uptime ">39.7</A>)</SPAN>command shows the load average.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-.LOGIN-FILE">.login file</A></DT><DDCLASS="glossdef"><PCLASS="para"><EMCLASS="emphasis">See</EM> <ACLASS="xref"HREF="glossary.htm#GLOSS-DOT-FILES"TITLE="">dot (.) files (.cshrc, .login, .profile</A>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-MODE">mode</A></DT><DDCLASS="glossdef"><PCLASS="para">In UNIX, anoctal numberthat describes what access a file's owner, group,and others have to the file.<EMCLASS="emphasis">See also</EM> article<ACLASS="xref"HREF="ch01_23.htm"TITLE="File Access Permissions ">1.23</A>.</P></DD><DTCLASS="glossterm"><ACLASS="glossterm"NAME="GLOSS-MODULO">modulo</A></DT><DDCLASS="glossdef"><PCLASS="para">Think back to your fourth grade arithmetic.When you divide twonumbers, you have a <EMCLASS="emphasis">dividend</EM> (the number on top), a<EMCLASS="emphasis">divisor</EM> (the number on the bottom), a <EMCLASS="emphasis">quotient</EM> (theanswer), and a <EMCLASS="emphasis">remainder</EM> (what's left over).In computer science, this kind of division is very important.However, we're usually more interested in the remainder than in the quotient.When we're interested in the remainder, we call the operation a<EMCLASS="emphasis">modulus</EM> (or <EMCLASS="emphasis">modulo</EM>, or <EMCLASS="emphasis">mod</EM>).For instance, one of the examples on your fourth grade arithmetic text

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -