Character |
Where |
Meaning |
ESC |
csh |
Filename completion. |
RETURN |
csh, sh |
Execute command. |
space |
csh, sh |
Argument separator. |
TAB |
csh, sh |
Argument separator. |
TAB |
bash |
Filename completion. |
# |
csh, sh |
Start a comment. |
` |
csh, sh |
Command substitution (backquotes). |
" |
csh, sh |
Weak quotes. |
' |
csh, sh |
Strong quotes. |
\ |
csh, sh |
Single?character quote. |
$var |
csh, sh |
Variable. |
${var} |
csh, sh |
Same as $var. |
$var:mod |
csh |
Edit var with modifier mod |
${var?default} |
sh |
If var not set, use default. |
${var=default} |
sh |
If var not set, set it to default and use that value. |
${var+instead} |
sh |
If var set, use instead. Otherwise, null string. |
${var?message} |
sh |
If var not set, print message (else default). If var set, use its value. |
${var#pat} |
ksh, bash |
Value of var with smallest pat deleted from start. |
${var##pat} |
ksh, bash |
Value of var with largest pat deleted from start. |
${var%pat} |
ksh, bash |
Value of var with smallest pat deleted from end. |
${var%%pat} |
ksh, bash |
Value of var with largest pat deleted from end. |
| |
csh, sh |
Pipe standard output. |
|& |
csh |
Pipe standard output and standard error. |
^ |
sh |
Pipe character (obsolete). |
^ |
csh, bash |
Edit previous command line. |
& |
csh, sh |
Run program in background. |
? |
csh, sh |
Match one character. |
* |
csh, sh |
Match zero or more characters. |
; |
csh, sh |
Command separator. |
;; |
sh |
[/td]End of case statement.[/tr] |
~ |
csh, ksh, bash |
Home directory. |
~user |
csh, ksh, bash |
Home directory of user. |
! |
csh, bash |
Command history. |
- |
Programs |
Start of optional argument. |
- |
Programs |
Read standard input. (Only certain programs.) |
$# |
csh, sh |
Number of arguments to script. |
"$@" |
sh |
Original arguments to script. |
$* |
csh, sh |
Arguments to script. |
$- |
sh |
Flags set in shell. |
$? |
sh |
Status of previous command. |
$$ |
csh, sh |
Process identification number. |
$! |
sh |
Process identification number of last background job. |
$< |
csh |
Read input from terminal. |
cmd1 && cmd2 |
csh, sh |
Execute cmd2 if cmd1 succeeds. |
cmd1 || cmd2 |
csh, sh |
Execute cmd2 if cmd1 succeeds. |
$(..) |
ksh, bash |
Command substitution. |
((..)) |
ksh, bash |
Arithmetic evaluation. |
\. file |
sh |
Execute commands from file in this shell. |
: |
sh |
Evaluate arguments, return true. |
: |
sh |
Separate values in paths. |
: |
csh |
Variable modifier. |
[] |
csh, sh |
Match range of characters. |
[] |
sh |
Test. |
%job |
csh, ksh, bash |
Identify job number. |
(cmd;cmd) |
csh, sh |
Run cmd;cmd in a subshell. |
{} |
csh, bash |
In?line expansions. |
{cmd;cmd;} |
sh |
Like (cmd;cmd) without a subshell. |
>file |
csh, sh |
Redirect standard output. |
>>file |
csh, sh |
Append standard output. |
<file |
csh, sh |
Redirect standard input. |
<<word |
csh, sh |
Read until word, do command and variable substitution. |
<<\word |
csh, sh |
Read until word, no substitution. |
<?word |
sh |
Read until word, ignoring leading TABs. |
>>! file |
csh, sh |
Append to file, even if noclobber set and file doesn't exist. |
>! file |
csh |
Output to file, even if noclobber set and file exists. |
>| file |
ksh, bash |
Output to file, even if noclobber set and file exists. |
>& file |
csh |
Redirect standard output and standard error to file. |
m> file |
sh |
Redirect output file descriptor m to file. |
m>> file |
sh |
Append output file descriptor m to file. |
m< file |
sh |
Redirect input file descriptor m from file. |
<&m |
sh |
Take standard input from file descriptor m. |
<&? |
sh |
Close standard input. |
>&m |
sh |
Use file descriptor m as standard output. |
>&- |
sh |
Close standard output. |
m<&n |
sh |
Connect input file descriptor n to file descriptor m. |
m<&- |
sh |
Close input file descriptor m. |
n>&m |
sh |
Connect output file descriptor n to file descriptor m. |
m>&- |
sh |
Close output file descriptor m. |
相关推荐
- **Special Variables** Special variables like `$0` (script name), `$#` (number of arguments), and `$*` (all arguments) are built into the shell and have specific meanings. - **Options and Arguments**...
in the form of meanings of scientific terms presented in a very clear language and concise form written by authoritative persons in the field. It would be a great aid to students in understanding ...
3. understanding of Chinese characters and their meanings 4. knowledge of Chinese cultural and historical figures 5. ability to translate ancient Chinese texts into modern Chinese 在这个资源中,我们...
ls -l (list)列表显示文件(默认按文件名排序), 显示文件的权限、硬链接数(即包含文件数,普通文件是1,目录1+)、用户、组名、大小、修改日期、文件名。 ls -t (time)按修改时间排序,显示目录和文件。 ls -lt 是...
- **Supported Negative Response Codes (NRC)**: List of possible negative response codes and their meanings. - **Message Flow Examples**: Illustrative examples showing the flow of messages during a ...
- **Mode String**: Overview of different file modes and their meanings. - **File Functions**: Explanation of functions like `fread`, `fwrite`, and others for performing I/O operations on files. - **...
By delving into these words and their meanings, readers can begin to appreciate the richness and depth of the English language, enhancing their communication skills and expanding their knowledge base.
- **Reserved Words:** These are keywords in Ruby that have special meanings and cannot be used as identifiers (e.g., variable names). The book lists all the reserved words and provides examples of how...
All special usages, such as slang terms, are labeled and grouped together at the end of each synonym list. Following each list is a cross-reference to a related entry in the thesaurus’s unique ...
The data dictionary is used to define the attributes and meanings of each data element, while data flow diagrams (DFDs) help visualize the flow of information within the system. During the detailed ...
1. Teacher summarizes the key points of the lesson, emphasizing the new vocabulary, reading strategies, and the moral objective of appreciating the beauty of nature and understanding its significance....
y is the scientific study of words, focusing on their structure, meaning, usage, and evolution over time. This college test paper delves into various aspects of lexicology, challenging students to ...
By mastering the SQL capabilities provided by HP Vertica, users can efficiently manage and analyze large volumes of data, leveraging the power of the Vertica platform for their analytical needs.
Based on the provided information from the book "C# 3.0 With the .NET Framework 3.5 Unleashed," we can extract several key points and concepts that are essential for understanding the fundamentals of ...
TYPICAL ASSEMBLY LANGUAGE PATTERNS AND THEIR MEANINGS THE PRACTICAL APPLICATION OF REVERSE ENGINEERING SUMMARY Chapter 6: Hooking Windows NT System Services SYSTEM SERVICES: THE LONG VIEW NEED ...
TYPICAL ASSEMBLY LANGUAGE PATTERNS AND THEIR MEANINGS THE PRACTICAL APPLICATION OF REVERSE ENGINEERING SUMMARY Chapter 6: Hooking Windows NT System Services SYSTEM SERVICES: THE LONG VIEW NEED ...
SEMA: Deeply learning semantic meanings and temporal dynamics for recommendations