Linux Command Summary

Source: Internet
Author: User
Tags disk usage

File Directory related Operations

basename Print File base name

Cat read-out file to standard output

TAC Reverse Output file

Chgrp changing file groups

chmod change the mode bit of the file

Chown changing the owner of a file

CP Copy

Cpio copy or copy from tar files to tar file

Cut read part of file contents

DD Convert or copy files

LS Lists directory file information

mkdir Creating a Directory

Mknod Creating a block file

Mktemp creating a temporary file name

More View Files

MV Moving files

Rename renaming

RM Remove Files from

RmDir removing folders

Sync flushes File System cache

Link to create file links

ln creates a link between two files

Gunzip Compressed Files

Tar file editing tools

Less,more Viewing files

Head displays the first part of the file

Tail display the last part of the file

Join merge two files containing the same field

Merge merged files

File type determination

Lsattr Viewing file properties

Grep finds a string that matches a condition

Tee to deposit standard input into file

Permission Mask for umask file

File system Operation related

DUMP:EXT2/EXT3 File System backup

Dump_cis: Displays the structure information of the PCMCIA card

Dumpe2fs:dump EXT2/EXT3 File System Information

E2fsck: Checking the Ext2/ext3 file system

E2image: Saving data for EXT2/EXT3 file system

E2label: Changing the EXT2/EXT3 partition label

FSCK: Repairing Linux File system

DOSFSCK: Repairing MS-DOS file system

Fdisk:linux Partitioning Tool

Findfs: Find file system with label and UUID

MKDOSFS: Creating a DOS file system in a Linux environment

MKE2FS: Creating a ext2 system

MKFS: Creating a Linux file system

Mkswap: Creating a Linux Swap partition

Mount.nfs:mount a network File system

Quotacheck: View disk usage, create view repair quota file

Quotaoff: Control file system quotas off

Quotaon: Control file system quotas Open

RDUMP:EXT2 File System backup

RESIZE2FS:EXT2 File System Resizer

Restore: Resetting the file system from a backup of dump

Restorecon: Reset file default SELinux security context

Umount: Uninstalling the file system

Mount: Mount File system

Network-related commands:

Adsl-connect: Shell script to manage PPPoE connections

Adsl-setup: Configuring the PPPoE client Script

Adsl-start: Open a PPPoE connection

Adsl-status: report The status of the PPPoE connection

Adsl-stop: Turn off a PPPoE connection

ARP: Operating system ARP cache

Arping: Sending a request to a neighbor machine

Arptables:arp Packet Filtering management tool

Arptables-restore: Resetting the ARP cache table

Arptables-save: Saving the ARP cache table

Ifconfig: Configuring network Interfaces

IP: Display operation routing device, routing policy, etc.

IPPPD:ISDN Point-to-Point protocol

Pppstats: Print PPP statistics

IPROFD: Modem Registration Daemon

Iptables:ipv4 Packet filtering NAT management tool

Iptables-restore: Reset IP tables

Iptables-save: Save IP tables

Iwconfig: Setting up a wireless network port

Iwevent: Display wireless driver and setup Information

Iwgetid: report The Essid,nwid of wireless networks, etc.

Iwlist: Get Wireless information

IWPRIV: Configuring wireless network Port Parameters

Iwspy: Getting Wireless statistics

NETPLUGD: Management daemon for hot-swappable cables

Netreport: Request for network interface change notification

Ping: Sending ICMP packets

Netstat: Print network link routing table ports and other information

Tracepath: Probing network host

Traceroute: Print a route package in a network transfer

Chat: Establish a session between the machine and the modem

Tcpdump: Dumping the network to transmit data

Tcpd:internet Service Access Control tool

Tethereal: Dumping Analysis Network data

Nslookup: Find name server

SX, SB, sz file send

Rx, RB, RZ File receive

Telnet Telnet

Process System Management Related:

PS View process Status

Nice run the program with a certain priority

Sleep sleeping

Pidof to find running processes

Fuser Query

Kill terminates the process

Crond Cycle Execution daemon for a program

Iostat reporting CPU and IO status

Last, Lastb view the user who logged on

Lchsh Changing the login shell

Pgrep, Pkill to find or send a signal to a process by name

Exit exits the current shell

LPQ Display printer queue

LPR Print File

LPRM Canceling a print job

Free Display Memory information

DMESG Display Boot Information

Top shows the current system execution process

sudo runs the program in another identity

Pstree displaying processes in a tree-like form

Kernel operation related

AUDITCTL: Kernel Audit information control help tool

Insmod: Inserting a module into the kernel

Lsmod: Show module status in the kernel

Modinfo: View Linux kernel module information

Modprobe: Adding or removing modules to the Linux kernel

Rmmod: Removing a module from the kernel

User Management related

AddUser: Adding users

Deluser: Deleting users

passwd: Change Password

Groupadd: Create a group

Groupdel: Delete a group

Groupmod: Modifying a group

GPASSWD managing/etc/group Files

Who: currently logged in user

ID: Current User ID

W: currently logged in user

HostID Print ID for current user

LOGNAME Login Name

Other commands

Write sends a message to another person

WHOAMI view current valid user ID

WC Print line characters, number of lines, etc.

Whatis finding word in Whatis db

Whereis find binary source code and Manpage

Full path of the which query command

Watch Cycle Execute a program

TR Translate Delete character

Time to view command runtime

Stat View File/File system status

Strace Tracking System Call

NL with rows View file

Ltrace Trace Library Call

LDD Viewing shared libraries

FMT Text Formatting tool

Fold formatting rows

Formail Message Formatting tool

ENV View Environment variables

Expand Convert tab to space

AC Display user connection time

Crontab Maintaining crontab files

Diff compares two files differently

DIFF3 Comparison of 3 files

Du view Occupy space

Find Search Catalog Files

Dhclient: Dynamic Host Configuration Tool

DHCLIENT-SCRIPT:DHCP Configuration Script

Grub: Entering Grub

Losetup: Installing the control loop device

Lsmod: Show module status in the kernel

Lspci:list All PCI devices

LSUSB: List all USB devices

Arch: Display hardware architecture

Date: Displays the system time

Mail: Send and receive messages

Chroot: Run the program in the root directory

Sshd:open SSh Service

XINETD: Extending the Internet Daemon Service

Lsof:list files that are open

Uname: Printing System Information

DF: Reporting Disk usage

Alias: Setting Command aliases

Linux Command Summary

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.