Linux Common commands

Source: Internet
Author: User

1:VM Useful Features:

Cloning: Replication System

Snapshot: Similar to system fallback

Virtual machine sharing and setting to bridge mode (two ways to enable office colleagues to connect to this virtual machine)

2:LINUX file Structure

/: Root directory

Bin directory: Files for common commands are placed in this directory.

ETC Directory: Place the configuration file.

Home directory: Class is the user folder.

Root directory: The home of the Super administrator.

Libary directory: Dynamic connection library file.

USR directory: The most space-occupying directory, zip, and other additional tools

Command: LL: Show file list.

LS: Display file and folder name

ls-l:= LL

Ll-a: Show files (including hidden files)

Touch: Create folder touch a touch. A (Create hidden file)

RM: Delete

CD: Go back to the previous level.

Wiho am I: operator

SU: Select User

Ifconfig: Querying IP

PWD: Current path

Tab key to quickly type the directory you want

CD/: Returns the root directory.

Clear

Folder operations:

mkdir: Creating a Folder

Mkdir-p: Multilevel Folder creation

MV: Renaming

Rm-r: Removing folders

RM: Remove Folder

RM-RF: Force Delete

CP: Copy file CP a.txt HELLO/CP. /a.txt./

File operation:

Touch A.txt Create a file

Vi

Vim:i o a IOA ESC (key): Wq (Save exit): q! (Do not save exit)

I: Front of the current position

I: The beginning of the current position;

A: The back of the current position

A: The end of the line at the current position

O: Next line

O: Previous Line

ESC mode:

: Set number shows H rows

: 5 Back to the end 5 lines

n+ down n rows

N-row

GG beginning

G Line End

U undo

Ctrl+r Anti-Revocation

D Delete Row

Y copy Line

X Delete Individual

Cat: View Files

More

head-10 XXX Display 10 lines

tail-10 XXX Display 10 lines

/content Search N Continue

File compression:

gzip compression

Gzip-d Decompression

Tar package files and folders (multiple file compression)

TAR-ZCF new name. tar.gz A.text B.text

Linux Common commands

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.