Linux Learning One

Source: Internet
Author: User

A basic command

can add path after LS

CD ~

LS-A lists hidden folders A lot of them start with.

LS-L lists permissions modification times for files

mkdir Creating a folder mkdir-p contiguous folders

PWD Displays absolute paths

Touch Create empty Directory

Echo creates a file with content

Cat View Content

CP Copy

MV Move

Two. Vim Editor

VI divided into three modes, General mode edit mode command line mode

I is entering edit mode ESC exit: Q

Key instructions

HJKL Direction key

0/home to move the front character of this line

End build moves to the last row

G move to the last line of the file NG n is the number to move to the first line GG move to line one

/word finding words

? Word looks up for word n is a duplicate lookup before the action N is reverse lookup

X is to remove one character backwards, and X is to delete one character forward

DD Delete a row

YY Copy a row

P for Paste

: N Edit Next file

: N Edit Previous file

: Files lists the file currently opened by this vim

Three. What is a shell

The shell is an interface that provides the user's operating system, and the user communicates with the kernel for information.

Linuxu used a bash shell.

Bash's main advantages

Command Memory Ability

Command and file completion capabilities

Command alias setting capability

Job Foreground background control

Program Scripts

Wildcard characters

Linux Learning One

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.