Bash and Its Features

Source: Internet
Author: User
Bash and Its Features: shell: # shell Gui: # gnome, Kde, xfcegli: # SH, CSH, KSh, Bash, tcsh, KSh (clone version), zsh
Bash: 1. # command history, command completion, and path completion 2. # pipelines, redirection 3. # command alias 4. # command line editing 5. # command line expansion 6. # file name configuration 7 # variable 8 and # programming (shell script) supported)
Command Line Editing: Jump to the cursor: Ctrl + A: # Jump to the beginning of the command line Ctrl + E: # jump to the end of the command line Ctrl + u: # Delete the cursor to the beginning of the command line content Ctrl + K: # Delete the cursor to the end of the command line content Ctrl + L: # clear screen (clear)
Command history: History: # view command history-C: # Clear command history-D offset [N]: # DELETE command at a specified position-W: # Save command history to history files
Environment variable: Path: # command search path histsize: # command history buffer size
Command history tips :! N: # the nth command in the execution history! -N: # the nth command in the execution history !! : # Run the previous command :! : # The latest command starting with a specified string in the execution command history! $: # Reference the last parameter ESC,.: # reference the last parameter of the previous command
Command completion: # search for executable files starting with the given string in each path specified by the PATH environment variable. If there is more than one or two tables, a list can be provided: otherwise, complete the path directly: # search for each file name in the starting path and try to complete it;
Command alias: alias CLS = clear # the alias defined in shell is valid only in the current shell lifecycle; the alias is valid only in the Current Shell Process unalias: # cancel alias Definition
Command replacement: $ (command). The backquotes 'command' # Replace a subcommand with the execution result.
Bash supports quotation marks: '': # command replacement" ": # weak reference. You can replace the variable'': # Strong reference. If you do not replace the variable with the file name, you can replace it with globbing ): *: # Any characters of any length? : # Any single character []: # match any single character in the specified range [ABC], [a-m], [A-Z], [0-9], [A-Za-Z], [0-9a-za-z] [[: Space:]: # blank character [[: punct:]: # punctuation [[: lower:]: # lowercase letter [[: Upper:]: # upper-case letter [[: Alpha:]: # upper-case letter [[: digit:]: # number [[: alnum:]: # numbers and uppercase/lowercase letters [^]: # match any single character out of the specified range


This article from the "Linux O & M" blog, please be sure to keep this source http://linuxdarker.blog.51cto.com/8340258/1548215

Bash and Its Features

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.