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

📄 bash.1

📁 android-w.song.android.widget
💻 1
📖 第 1 页 / 共 5 页
字号:
.SM.B BASH_XTRACEFDto 2 (the standard error filedescriptor) and then unsetting it will result in the standard errorbeing closed..TP.B CDPATHThe search path for the.B cdcommand.This is a colon-separated list of directories in which the shell looksfor destination directories specified by the.B cdcommand.A sample value is.if t \f(CW".:~:/usr"\fP..if n ".:~:/usr"..TP.B COLUMNSUsed by the \fBselect\fP compound command to determine the terminal widthwhen printing selection lists.  Automatically set upon receipt of a.SM.BR SIGWINCH ..TP.B COMPREPLYAn array variable from which \fBbash\fP reads the possible completionsgenerated by a shell function invoked by the programmable completionfacility (see \fBProgrammable Completion\fP below)..TP.B EMACSIf \fBbash\fP finds this variable in the environment when the shell startswith value.if t \f(CWt\fP,.if n "t",it assumes that the shell is running in an Emacs shell buffer and disablesline editing..TP.B ENVSimilar to.SM.BR BASH_ENV ;used when the shell is invoked in POSIX mode..TP.B FCEDITThe default editor for the.B fcbuiltin command..TP.B FIGNOREA colon-separated list of suffixes to ignore when performingfilename completion (see.SM.B READLINEbelow).A filename whose suffix matches one of the entries in .SM.B FIGNOREis excluded from the list of matched filenames.A sample value is.if t \f(CW".o:~"\fP..if n ".o:~"..TP.B FUNCNESTIf set to a numeric value greater than 0, defines a maximum functionnesting level.  Function invocations that exceed this nesting levelwill cause the current command to abort..TP.B GLOBIGNOREA colon-separated list of patterns defining the set of filenames tobe ignored by pathname expansion.If a filename matched by a pathname expansion pattern also matches oneof the patterns in.SM.BR GLOBIGNORE ,it is removed from the list of matches..TP.B HISTCONTROLA colon-separated list of values controlling how commands are saved onthe history list.If the list of values includes.IR ignorespace ,lines which begin with a.B spacecharacter are not saved in the history list.A value of .I ignoredupscauses lines matching the previous history entry to not be saved.A value of.I ignorebothis shorthand for \fIignorespace\fP and \fIignoredups\fP.A value of.IR erasedupscauses all previous lines matching the current line to be removed fromthe history list before that line is saved.Any value not in the above list is ignored.If.SM.B HISTCONTROLis unset, or does not include a valid value,all lines read by the shell parser are saved on the history list,subject to the value of.SM.BR HISTIGNORE .The second and subsequent lines of a multi-line compound command arenot tested, and are added to the history regardless of the value of.SM.BR HISTCONTROL ..TP.B HISTFILEThe name of the file in which command history is saved (see.SM.B HISTORYbelow).  The default value is \fI~/.bash_history\fP.  If unset, thecommand history is not saved when an interactive shell exits..TP.B HISTFILESIZEThe maximum number of lines contained in the history file.  When thisvariable is assigned a value, the history file is truncated, ifnecessary, by removing the oldest entries,to contain no more than that number of lines.  The defaultvalue is 500.  The history file is also truncated to this size afterwriting it when an interactive shell exits..TP.B HISTIGNOREA colon-separated list of patterns used to decide which command linesshould be saved on the history list.  Each pattern is anchored at thebeginning of the line and must match the complete line (no implicit`\fB*\fP' is appended).  Each pattern is tested against the lineafter the checks specified by.SM.B HISTCONTROLare applied.In addition to the normal shell pattern matching characters, `\fB&\fP'matches the previous history line.  `\fB&\fP' may be escaped using abackslash; the backslash is removed before attempting a match.The second and subsequent lines of a multi-line compound command arenot tested, and are added to the history regardless of the value of.SM.BR HISTIGNORE ..TP.B HISTSIZEThe number of commands to remember in the command history (see.SM.B HISTORYbelow).  The default value is 500..TP.B HISTTIMEFORMATIf this variable is set and not null, its value is used as a format stringfor \fIstrftime\fP(3) to print the time stamp associated with each historyentry displayed by the \fBhistory\fP builtin.If this variable is set, time stamps are written to the history file sothey may be preserved across shell sessions.This uses the history comment character to distinguish timestamps fromother history lines..TP.B HOMEThe home directory of the current user; the default argument for the\fBcd\fP builtin command.The value of this variable is also used when performing tilde expansion..TP.B HOSTFILEContains the name of a file in the same format as.FN /etc/hoststhat should be read when the shell needs to complete ahostname.The list of possible hostname completions may be changed while theshell is running;the next time hostname completion is attempted after thevalue is changed,.B bashadds the contents of the new file to the existing list.If.SM.B HOSTFILEis set, but has no value, or does not name a readable file,\fBbash\fP attempts to read.FN /etc/hoststo obtain the list of possible hostname completions.When.SM.B HOSTFILEis unset, the hostname list is cleared..TP.B IFSThe.I Internal Field Separatorthat is usedfor word splitting after expansion and tosplit lines into words with the.B readbuiltin command.  The default value is``<space><tab><newline>''..TP.B IGNOREEOFControls theaction of an interactive shell on receipt of an.SM.B EOFcharacter as the sole input.  If set, the value is the number ofconsecutive.SM.B EOFcharacters which must betyped as the first characters on an input line before.B bashexits.  If the variable exists but does not have a numeric value, orhas no value, the default value is 10.  If it does not exist,.SM.B EOFsignifies the end of input to the shell..TP.B INPUTRCThe filename for the.B readlinestartup file, overriding the default of.FN ~/.inputrc(see.SM.B READLINEbelow)..TP.B LANGUsed to determine the locale category for any category not specificallyselected with a variable starting with \fBLC_\fP..TP.B LC_ALLThis variable overrides the value of.SM.B LANGand any other\fBLC_\fP variable specifying a locale category..TP.B LC_COLLATEThis variable determines the collation order used when sorting theresults of pathname expansion, and determines the behavior of rangeexpressions, equivalence classes, and collating sequences withinpathname expansion and pattern matching..TP.B LC_CTYPEThis variable determines the interpretation of characters and thebehavior of character classes within pathname expansion and patternmatching..TP.B LC_MESSAGESThis variable determines the locale used to translate double-quotedstrings preceded by a \fB$\fP..TP.B LC_NUMERICThis variable determines the locale category used for number formatting..TP.B LINESUsed by the \fBselect\fP compound command to determine the column lengthfor printing selection lists.  Automatically set upon receipt of a.SM.BR SIGWINCH ..TP.B MAILIf this parameter is set to a file or directory name and the.SM.B MAILPATHvariable is not set,.B bashinforms the user of the arrival of mail in the specified file orMaildir-format directory..TP.B MAILCHECKSpecifies howoften (in seconds).B bashchecks for mail.  The default is 60 seconds.  When it is time to checkfor mail, the shell does so before displaying the primary prompt.If this variable is unset, or set to a value that is not a numbergreater than or equal to zero, the shell disables mail checking..TP.B MAILPATHA colon-separated list of file names to be checked for mail. The message to be printed when mail arrives in a particular filemay be specified by separating the file name from the message with a `?'.When used in the text of the message, \fB$_\fP expands to the name ofthe current mailfile. Example:.RS.PP\fBMAILPATH\fP=\(aq/var/mail/bfox?"You have mail":~/shell\-mail?"$_ has mail!"\(aq.PP.B Bashsupplies a default value for this variable, but the location of the usermail files that it uses is system dependent (e.g., /var/mail/\fB$USER\fP)..RE.TP.B OPTERRIf set to the value 1,.B bashdisplays error messages generated by the.B getoptsbuiltin command (see.SM.B SHELL BUILTIN COMMANDSbelow)..SM.B OPTERRis initialized to 1 each time the shell is invoked or a shellscript is executed..TP.B PATHThe search path for commands.  Itis a colon-separated list of directories in whichthe shell looks for commands (see.SM.B COMMAND EXECUTIONbelow).A zero-length (null) directory name in the value of.SM.B PATHindicates the current directory.A null directory name may appear as two adjacent colons, or as an initialor trailing colon.The default path is system-dependent,and is set by the administrator who installs.BR bash .A common value is.if t \f(CW/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin\fP..if n ``/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin''..TP.B POSIXLY_CORRECTIf this variable is in the environment when \fBbash\fP starts, the shellenters \fIposix mode\fP before reading the startup files, as if the.B \-\-posixinvocation option had been supplied.  If it is set while the shell isrunning, \fBbash\fP enables \fIposix mode\fP, as if the command.if t \f(CWset -o posix\fP.if n \fIset -o posix\fPhad been executed..TP.B PROMPT_COMMANDIf set, the value is executed as a command prior to issuing each primaryprompt..TP.B PROMPT_DIRTRIMIf set to a number greater than zero, the value is used as the number oftrailing directory components to retain when expanding the \fB\ew\fP and\fB\eW\fP prompt string escapes (see.SM.B PROMPTINGbelow).  Characters removed are replaced with an ellipsis..TP.B PS1The value of this parameter is expanded (see.SM.B PROMPTINGbelow) and used as the primary prompt string.  The default value is``\fB\es\-\ev\e$ \fP''..TP.B PS2The value of this parameter is expanded as with.SM.B PS1and used as the secondary prompt string.  The default is``\fB> \fP''..TP.B PS3The value of this parameter is used as the prompt for the.B selectcommand (see.SM.B SHELL GRAMMARabove)..TP.B PS4The value of this parameter is expanded as with.SM.B PS1and the value is printed before each command.B bashdisplays during an execution trace.  The first character of.SM.B PS4is replicated multiple times, as necessary, to indicate multiplelevels of indirection.  The default is ``\fB+ \fP''..TP.B SHELLThe full pathname to the shell is kept in this environment variable.If it is not set when the shell starts,.B bashassigns to it the full pathname of the current user's login shell..TP.B TIMEFORMATThe value of this parameter is used as a format string specifyinghow the timing information for pipelines prefixed with the.B timereserved word should be displayed.The \fB%\fP character introduces an escape sequence that isexpanded to a time value or other information.The escape sequences and their meanings are as follows; thebraces denote optional portions..sp .5.RS.PD 0.TP 10.B %%A literal \fB%\fP..TP.B %[\fIp\fP][l]RThe elapsed time in seconds..TP.B %[\fIp\fP][l]UThe number of CPU seconds spent in user mode..TP.B %[\fIp\fP][l]SThe number of CPU seconds spent in system mode..TP.B %PThe CPU percentage, computed as (%U + %S) / %R..PD.RE.IPThe optional \fIp\fP is a digit specifying the \fIprecision\fP,the number of fractional digits after a decimal point.A value of 0 causes no decimal point or fraction to be output.At most three places after the decimal point may be specified;values of \fIp\fP greater than 3 are changed to 3.If \fIp\fP is not specified, the value 3 is used..IPThe optional \fBl\fP specifies a longer format, includingminutes, of the form \fIMM\fPm\fISS\fP.\fIFF\fPs.The value of \fIp\fP determines whether or not the fraction isincluded..IPIf this variable is not set, \fBbash\fP acts as if it had thevalue \fB$\(aq\enreal\et%3lR\enuser\et%3lU\ensys\t%3lS\(aq\fP.If the value is null, no timing information is displayed.A trailing newline is added when the format string is displayed..PD 0.TP.B TMOUTIf set to a value greater than zero,.SM.B TMOUTis treated as thedefault timeout for the \fBread\fP builtin.The \fBselect\fP command terminates if input does not arriveafter.SM.B TMOUTseconds when input is coming from a terminal.In an interactive shell, the value is interpreted as thenumber of seconds to wait for input after issuing the primary prompt..B Bashterminates after waiting for that number of seconds if input doesnot arrive..TP.B TMPDIRIf set, \fBbash\fP uses its value as the name of a directory in which\fBbash\fP creates temporary files for the shell's use..TP.B auto_resumeThis variable controls how the shell interacts with the user andjob control.  If this variable is set, single word simplecommands without redirections are treated as candidates fo

⌨️ 快捷键说明

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