Linux Common command Usage __linux

Source: Internet
Author: User

1.. Parent directory. Current directory

2. cd+ files or directories--access to files or directories

3. pwd--Query Current directory

4. touch+ file-created when a file or directory does not exist

5. vim+ file--Edit file

①i into edit mode

②esc exit into general mode, this mode d deletes a character DD deletes a row

③:w Save: Q exit: q! Force exit

⑤yny p Copy Paste

6. mkdir [-P Recursive]+ directory--Create directory

7. LS [-A hidden file-l details-T in order List-R reverse sequence out]--query current directory information

8. RM [-R recursive-F enforcement] + files or directories--delete files or directories

9. groupadd-g GID + Group name--add group

Groupmod-g GID newgid--Modify Group ID

Groupdel + Group name--delete group

CHGRP + Group name + filename--Modify the group to which the file belongs

Useradd [-u uid-g gid-d user owned directory-s Shell] + username--Add user

Usermod [-u uid-g gid-d user owned directory-s Shell] + username--Modify user information

Userdel + Username--delete user

ID + Username--Query The UID GID of the user and the group to which they belong

Chown [R Recursive] + Username + file--Modify file Owner

Chown A (Main): B (Group) + file--Modify file owner: Group

chmod [-A all-u user-g group-o other] + permissions + Files--modifying permissions

Man + command/Command-h--command function query

cat/tac/more/tail/less + file-query file content

history--Query History Instructions

22.!+ command--the most recent instruction in the execution of history

passwd [F-Force] + user--set or modify password

MV Source Address Destination address--cut

CP [-A hidden file-v display details-R recursive-f-mandatory] Source address destination Address--copy

echo--Print Information

SU [-Switching working directory] + users--switching users

Ping + ip--query can be connected

ifconfig--Query Network card information

Chkconfig + [--list server boot-on open a service-off shut down a service] + service name

service+ Service name +[start Open Service Status Query service state Stop interrupt service restart restart service]

free-m--Memory Usage

df-h--Disk mount and usage

fdisk-l--disk information and partition fdisk+ disk directory--Managing disks

mkfs.ext4+ Partition Directory--format

MOUNT-T + type + partition Directory + mount point-mount

pvcreate+ Partition Directory--Create PV pvs--query PV

VGCREATE+VG name + partition Directory--Create VG vgs--query VG vgextend VG name + partition Directory--Add a partition to the volume group VG

Lvcreate-l size VG-n LV name--Create LV lvs--query LV lvextend-l size LV catalogue--Expand LV

Ssh/telnet + ip--Remote Landing

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.