Command-Line Basics

Source: Internet
Author: User

1. Linux commands

An instruction or program used to implement a class of functions

The execution of the command depends on the interpreter (for example:/bin/bash)

2. Classification of LINUX commands

Internal command: Part of the Shell interpreter

External command: A program file that is independent of the shell interpreter and has an executable file corresponding to the command name under a path in the file system



1,linux command format

command word [options] [parameters]

[] indicates that content is optional

Option: If it is a single character, use-# ls-l

If it's a word, use --# ls--color

Multiple single-character options can be combined with one-# ls-l-h = # LS-LH

2,tab Key

Command completion

Path completion

Determine whether commands and paths are wrong


Backslash "\": Force line break


Cursor Jump:

CTRL + A: Skip to the beginning of the command

Ctrl + C: Discard the currently edited command line

Ctrl+e: Jump to the end of the command line

Ctrl+u: Delete the cursor to the beginning of the command line

CTRL+K: Delete the cursor to the end of the command line

Ctrl+l: Clear Screen

Ctrl+w: Quickly delete a word from the current cursor


Ctrl-a: Move to the beginning of the line

CTRL-E: Move to end of line

Ctrl-u: Delete to the beginning of the line

Ctrl-k: Delete to end of line

Ctrl-arrow (Ctrl + arrow): One word to move a word


CTRL-SHIFT-T: Create a new tab page

CTRL-PGUP/PGDN: Page UP or down

Ctrl-shift-c: Copy Selected content

Ctrl-shift-v: Paste the selected content


This article is from "Egg Fish" blog, please be sure to keep this source http://zhongguiyao.blog.51cto.com/11712990/1854242

Command-Line Basics

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.