Linux basic commands

Source: Internet
Author: User
Tags aliases

Exit: Log out

Date: View time

BC: Computer

Hwclock: motherboard time

Cal: calendar / calendar

Shutdown-h/-r: shutdown / restart reboot: restart

Poweroff: Shut down the machine

Alias: aliases

Unalias: revoke aliases

PWD: View current directory

CD: switch working directory

LS: List display directory

Du: statistics on disk space usage

mkdir: Creating a new directory

Touch: Create an empty folder

LN: Creating a linked file

CP: Copying files or directories

RM: Deleting files or directories

MV: Moving files or directories

Which: Find The location of your linux command

find: Finding a file directory

Hostname: View host name

Ifconfig: View IP

Cat: Displaying and connecting file contents

MORE: pagination display

Less: Pagination display (upgrade)

Head: Default to view the first ten lines

Tail: Default view after ten lines

WC: Statistics, bytes, words, number of lines

grep: Retrieving, filtering

Gzip: Compress into gz

Gunzip: Unzip

BZIP2: Compress into bz2

BUNZIP2: Unzip

Tar: Archive

VI: File Editor

Vim:VI upgrade version

DD: Delete

RPM: Package format

Man: Command manual

Info: Info

Color: Colors Display file Types

Help: Helpful Information

uname: View kernel version

Tree: Recursive view

Lsb_release: View version details

make: Convert the source code into binary

Make install: install

Patch: Patching

Useradd: New user

Groupadd: New Group

passwd: Change Password

Usermod: Modifying user Properties

Userdel: Delete user account

Groupdel: Delete group account

GPASSWD: Add, delete, set group member

Groups: Querying the group to which the user belongs

ID: Query user account identifier

Finger: View user account Login Properties

W: View Terminal Login Details

Who: View Landing terminal

WHOAMI: View login User

Su: Switch User (Su- user name)

chmod: Increased reduction

Chown: Set owner, genus Group

Fdisk: View hard disk

Partprobe: Detection

MKFS: Formatting

Mkswap: Format swap partition

Swapon: Enabled

Swapoff: Turn it off .

Mount: Mount

Umount: Dismount Mount

DF: View disk partition status

Pvscan: Probing physical volumes

Pvcreate: New Physical volume

Pvdisplay: Viewing physical volumes

Pvremove: Removing physical volumes

Vgscan: Probe Volume group

Vgcreate: New Volume Group

Vgdisplay: Viewing volume groups

Vgremove: Removing a volume Group

Vgextend: Extending a volume group

Vgreduce: Shrinking a volume group

Lvscan: Probing logical volumes

Lvcreate: New Logical Volume

Lvdisplay: Viewing logical volumes

Lvextend: Extending logical volumes

Lvreduce: Shrinking logical volumes

Lvremove: Removing logical volumes

RESIZE2FS: Inspection

Quotacheck: Disk quota detection

Edquota: Edit View Quotas

Quotaon: Boot disk quotas feature

Quotaoff: Turn it off .

Quota: Viewing quota usage

Init: Initialization process

Service: See if the services are working

RunLevel: Viewing the system run level

Chkconfig: Viewing system service startup status

NTSYSV: Adjusting service startup status

DD: Specify number of copies

Ps: Static Process View

Top: Dynamic process View

Pgrep: Query process

Pstree: Viewing the process tree

Jobs: View background Run

FG: Back to front desk

Kill: Process number { terminating }

Killall Process name { terminating }

Pkill condition { terminating }

At: Set

ATQ: View

ATRM: Delete



This article from "Essays" blog, reproduced please contact the author!

Linux basic 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.