Commands commonly used in Linux (2)

Source: Internet
Author: User
Tags aliases clear screen save file

    1. Echo Output command
      1. echo [options] [Output CONTENT]
        1. -E: Character conversions that support backslash control
    2. Echo Write script
      1. Do not assign execute permissions with bash Shellshname
      2. Assigning execute permissions requires changing execution permissions chmod 755 shellshname execution: Path/shellshname
    3. Alias: Alias ls= "ls--Color=auto" is alias aliases = formerly #临时生效
      1. You can also view the aliases that are in effect
      2. For permanent entry: VI ~/.BASHRC #写入环境变量配置文件
      3. Unalias aliases #删除别名
    4. History command
      1. History [Options] [Historical command Save file]
        1. -C: Empty history command
        2. -W: Write History command in cache to history command to save file ~/.bash_history
      2. TAB key to complete command completion
    5. Input redirect
      1. #wc [Options] [file name]
        1. -C Statistics byte number
        2. -W statistical number of words
        3. -L count rows
Common shortcut keys

CTRL + C: Forced termination

Ctrl+l: Clear Screen

Ctrl+u: Delete from the line where the cursor is located to the beginning

CTRL + A: Cursor moves to the beginning of the command

Ctrl+e: Cursor moves to the end of the command line

CTRL + Z: Put commands into the background

Ctrl+r: Searching in the history command

Commands commonly used in Linux (2)

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.