Continue to write Vim editor features and bash features

Source: Internet
Author: User
Tags clear screen

This week we went on to learn the other features of the Vim editor that we didn't finish last week, first learning to use VIM to edit multiple files, vim files 1 files 2 files 3 .... Then we learned to populate the current file with other files, using: R/path/to/somefilfs path. Finally learned the vim and shell interaction and part of the Save As command, so the basic operation of Vim editor is finished learning, the rest of us need to deepen the impression in daily use, more and more skilled master operation.

Bash There are a lot of features, this lesson we started the Bash feature of learning, first from the custom command, alias command can be used to define and display the command alias, However, the alias defined with the alias command has a lifetime of only the shell's lifetime. If you modify the. BASHRC configuration file, the saved aliases do not take effect immediately until the content is reloaded and will take effect permanently. Then learning the command history, the bash process saves the commands that the user in its session has executed to make it easier for the user to repeatedly execute a command. command history of the operation of a lot, if you want to master it requires us to impose practice. Shortcut key Learning provides us with a faster compile operation, for example: c-l clear screen c-a the cursor to the beginning of the edit line C-E the cursor to the end of the edit line C-p read the previous command c-n read the next command c-k delete the cursor location to the end of the command line information c-u Delete cursor location to line The first command line information c-c ends the operation of the current process cancellation command, and so on. The shell will determine the end of the user's input based on the user typing enter. The shell will fragment the collected command information according to the whitespace character, and the first fragment is interpreted as a command field. Determines whether the first field is an internal or external command, and if an internal command runs directly, if the command information indicated by the path variable is the external command to find the relevant location, to determine if there is a command with the same name, if any, then an error is executed, which is the execution of the shell command. The command completion mechanism helps a lot of us Linux beginners, and we can use this to get help when we forget certain command input instructions. The {} in the Shell's command-line expansion attribute can populate a list of paths separated by the "comma" character in curly braces, and bash expands it into multiple independent paths. Make our operations faster. The execution result of the command, the reference attribute, the escape function need to be remembered. Globbing file name wildcard, matching uppercase and lowercase letters, numbers, whitespace, special punctuation and so on. Input and output redirection the main body of a computer is a program, IO redirection uses non-standard device files to implement IO operations, simply not from the keyboard device to complete the data stream input can be called input redirection or redirect input, The output of the data stream that is not done from the display device can be called output redirection or redirection output, and the error data output stream that is not to the display device can be called an error redirect or redirect error. Finally learned a particularly useful operation command, its name "Pipeline" is to let a few commands at the same time, greatly simplifying our operation, the teacher's explanation I also deeply feel the importance of this command.

This week the content of the study is not much, just as important, to become a Linux operator, can only practice repeatedly, firmly grasp the relevant knowledge, in order to go farther on the road of Linux.


This article is from the "12657170" blog, please be sure to keep this source http://12667170.blog.51cto.com/12657170/1909472

Continue to write Vim editor features and bash features

Related Article

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.