Linux help, File basic operations, backup commands, VI Editor

Source: Internet
Author: User
Tags clear screen

Knowledge of Linux commands, help, basic file operations, backup commands,vi editor usage

1. Understanding Linux commands

1)thelinux command is complete with a class of functions, options complete specifically.

2) command ----Shell(command interpreter)----- Kernel (kernel) This is the command execution process;

Depending on whether the command is part of the Shell , the command is divided into internal commands and external commands , which are part of the shell and external commands are provided by the installation software.

3) General format of the command: command [ options ] [ parameters ]

"- Options", short format; "-- Options", long format, multiple short formats can be merged.

[]: indicates optional;{a|b|c}: indicates multiple selection

commands in Linux are strictly case-sensitive;

4) Common shortcut keys:

ctrl+c--> Cancel Abort command

ctrl+l--> Clear Screen

ctrl+a--> cursor moves to the beginning of the line

ctrl+e--> cursor moves to end of line

Ctrl+f--> move forward

Ctrl+b--> Move Backwards

Alt+.--> references the last parameter of the previous command

Tab--> , a tab -completion command or parameter, two tab -Displays all commands that begin with a letter

2. Help

1) Help for internal commands:

Help CD # # shows the cd commands

2) Help options for external commands:-h/--help

LS--help # # show ls command simple help

Useradd--help # # show Help for Useradd commands

3) Manual of the command: Man

A.man type of area:

1--> User Commands

format Help for 5--> configuration files

8--> Help for administrator management tools

Man Man # #man1 show Help for user command man

Man 5 vsftpd.conf # #man5 means view vsftpd 's profile help

Man 8 IP # #man8 view Help for Administrative Tools IP commands

the basic structure of B.man

Sections ( area )

Name(first name)

Synopsis(Syntax of the command)

Description(Description explanation command)

Option(options)

EXAMPLE ( used case, used )

Author ( author )

See also(Other related help)

Users often follow:name,synopsis,option,example

Man Route-->/example ( search )-->n ( view next ) - Find related configuration Case resolution forget Route command to configure routing.

C. tips for use:

Ctrl+f-- Turn one page forward

Ctrl+b-- Turn back one page

Q--> Exit

/ keyword -to-find, use the n key to find the next,n Find the previous

Man-k Command # # to find similar commands

4) software document(document):/usr/share/doc/

Linux help, File basic operations, backup commands, VI Editor

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.