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

📄 0039-0039.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Complete Command Reference:User Commands:EarthWeb Inc.-</TITLE>

</HEAD>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311046 //-->

<!-- TITLE=Linux Complete Command Reference//-->

<!-- AUTHOR=Red Hat//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=01 //-->

<!-- PAGES=0001-0736 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->



<P><CENTER>

<a href="0037-0038.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0040-0041.html">Next</A></CENTER></P>







<A NAME="PAGENUM-39"><P>Page 39</P></A>









<TABLE>



<TR><TD>

history [n]

</TD><TD>

With no options, display the command history list with line numbers. Lines listed

</TD></TR><TR><TD>

history _rwan [filename]

</TD><TD>

with a * have been modified. An argument of

n lists only the last n lines. If a nonoption argument is supplied, it is used as the name of the history file; if not,

the value of HISTFILE is used. Options, if supplied, have the following meanings:

</TD></TR></TABLE>



<TABLE>



<TR><TD>

</TD><TD>

_a

</TD><TD>

Append the &quot;new&quot; history lines (history lines entered since

the beginning of the current bash session) to the history file.

</TD></TR><TR><TD>

</TD><TD>

_n

</TD><TD>

Read the history lines not already read from the history

file into the current history list. These are lines appended to

the history file since the beginning of the current

bash session.

</TD></TR><TR><TD>

</TD><TD>

-r

</TD><TD>

Read the contents of the history file and use them as

the current history.

</TD></TR><TR><TD>

</TD><TD>

w_

</TD><TD>

Write the current history to the history file, overwriting

the history file's contents.

</TD></TR></TABLE>





<TABLE>



<TR><TD>

</TD><TD>

The return value is 0 unless an illegal option is encountered or an error occurs

while reading or writing the history file.

</TD></TR><TR><TD>

jobs [_lnp][jobspec ... ]

</TD><TD>

The first form lists the active jobs. The

_l option lists process IDs in addition to

</TD></TR><TR><TD>

jobs _x command [ args ... ]

</TD><TD>

the normal information; the

_p option lists only the process ID of the job's

process group leader. The _n option displays only jobs that have changed status since

last notified. If jobspec is given, output is restricted to information about that job.

The return status is 0 unless an illegal option is encountered or an illegal

jobspec is supplied.

</TD></TR><TR><TD>

</TD><TD>

If the _x option is supplied, jobs replaces any

jobspec found in command or args with the corresponding process group ID, and executes

command, passing it args, returning its exit status.

</TD></TR><TR><TD>

kill [-s sigspec | _sigspec]

</TD><TD>

Send the signal named by

sigspec to the processes named by pid or jobspec.

sigspec

</TD></TR><TR><TD>

[pid | jobspec] ...

</TD><TD>

is either a signal name such as

SIGKILL or a signal number. If sigspec is a signal

</TD></TR><TR><TD>

kill _l [signum]

</TD><TD>

name, the name is not case sensitive and may be given with or without the

SIG prefix. If sigspec is not present, then

SIGTERM is assumed. An argument of _l lists the signal names. If any arguments are supplied when

_l is given, the names of the specified signals are listed, and the return status is

0. An argument of &#151; disables option checking for the rest of the arguments.

kill returns True if at least one signal was successfully sent, or

False if an error occurs or an illegal option is encountered.

</TD></TR><TR><TD>

let arg [arg ...]

</TD><TD>

Each arg is an arithmetic expression to be evaluated. (See &quot;Arithmetic

Evaluation.&quot;) If the last arg evaluates to 0,

let returns 1; 0 is returned otherwise.

</TD></TR><TR><TD>

local [name[=value] ...]

</TD><TD>

For each argument, create a local variable named

name, and assign it value. When local is used within a function, it causes the variable name to have a visible

scope restricted to that function and its children. With no operands,

local writes a list of local variables to the standard output. It is an error to use

local when not within a function. The return status is

0 unless local is used outside a function, or an

illegal name is supplied.

</TD></TR><TR><TD>

logout

</TD><TD>

Exit a login shell.

</TD></TR><TR><TD>

popd [+/_n]

</TD><TD>

Removes entries from the directory stack. With no arguments, removes the

top directory from the stack, and performs a cd to the new top directory.

</TD></TR></TABLE>



<TABLE>



<TR><TD>

</TD><TD>

+n

</TD><TD>

Removes the nth entry counting from the left of the list

shown by dirs, starting with zero. For example, popd

+0 removes the first directory, popd +1 the second.

</TD></TR><TR><TD>

</TD><TD>

_n

</TD><TD>

Removes the nth entry counting from the right of the

list shown by dirs, starting with zero. For example,

popd -0 removes the last directory, popd -1 the next to last.

</TD></TR></TABLE>









<P><CENTER>

<a href="0037-0038.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0040-0041.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

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