Linux Operations Common Commands summary

Source: Internet
Author: User

First, online inquiry and help command

1.man: View command Help

2.help: View Help for Linux built-in commands

Second, file and directory Operation command:

1.pwd: View current directory

2.CD: Switch Directories

3.tree: Display the contents of the directory in a tree-shaped structure

4.mkdir: Create a directory

5.touch: Create an empty file or change the timestamp property of a file

6.ls: Display the contents of the directory and related property information

7.CP: Copying Files or directories

8.MV: Move or rename files

9.RM: Delete files or directories

10.rmdir: Delete Empty directory

11.LN: Hard links or soft links

12.readlink: View the contents of a symbolic link file

13.find: View the files in the directory

14.xargs: Convert standard input to command line parameters

15.rename: Renaming files

16.basename: Show file name or directory name

17.dirname: Show file or directory path

18.chattr: Changing the file's extended properties

19.lsattr: View File extension properties

20.file: Show File types

21.md5sum: Calculating and verifying the MD5 value of a file

22.chown: Users and user groups that change files or directories

23.chmod: Change file or directory permissions

24.CHGRP: Change the user group to which files and directories belong

25.umask: Set the mask to restrict new file permissions

Third, file backup and compression command

1.tar: Packaged Backup

2.gzip: Compress or unzip files

3.zip: Packaging and compressing files

4.unzip: Unzip the zip file

5.SCP: Remote file copy

6.rsync: File Sync Tool

Iv. file filtering and content editing processing commands

1.cat: Merging files or viewing file contents

2.TAC: Reverse Display of file contents

3.more: Paging Displays the contents of the file

4.less: page display of file contents

5.head: Show file contents header

6.tail: Display file content trailer

7.TAILF: trace log file

8.cut: Extracts a paragraph of text from a literal and outputs

9.split: Split file

10.paste: Merging Files

11.sort: Text Sorting

12.join: Merge by same field of two files

13.uniq: Remove Duplicate rows

14.WC: Number of rows, words, or bytes of a statistic file

15.ICONV: Encoding format for converted Files

16.dos2unix: Convert dos format files to UNIX format

17.diff: Compare the differences between two files

18.vimdiff: Visual comparison Tool

19.rev: Reverse Output file contents

20.tr: Replace or delete characters

21.od: Display files according to different binary

22.tee: Multi-directional

23.vi/vim: Plain Text editor

V. Information display and search file commands

1.uname: Display System Information

2.hostname: Displays or sets the system host name

3.DMESG: System Boot Exception diagnostics

4.stat: Show file or file system status

5.DU: Statistics on disk space usage

6.date: Display and set system time

7.echo: Display a line of text

8.watch: Monitor the execution of the command

9.which: Displays the full path of the command

10.whereis: Show command and its associated file full path

11.locate: Quickly locate file paths

12.updatedb: Update mlocate database

Vi. User Management and user information inquiry

1.useradd: Create User

2.usermod: Modify user Information

3.userdel: Delete User

4.groupadd: Create a user group

5.groupdel: Delete user groups

6.PASSWD: Modify User Password

7.chage: Modify User Password

8.CHPASSWD Modify user Password validity period

9.SU: Switch User

10.visudo: Edit Sodoers file

11.sudo: Execute command as another user

12.id: Display user and user group information

13.W: Show logged in user information

14.who: Show logged-in user information

15.users: Show logged in user

16.whoami: Displays the currently logged in user name

17.last: Show User Login list

18.LASTB: Displays a record of user logon failures

19.lastlog: Displays the most recent login record for all users

Seven, network operation

1.telnet: Telnet

2.ssh:ssh encrypted Telnet

3.SCP: Copying files between different hosts

4.wget: Remote Download file

5.ping: Detection of connectivity between hosts

6.route: Show and set the routing table for Linux servers

7.ifconfig: View, configure, start or disable interfaces

8.IFUP: Start the network card

9.ifdown: Disable NIC

10.dig: Find DNS resolution process

11.mail: Send and receive messages

12.mutt: Mail Management commands

13.nslookup: Interactively querying DNS servers

14.lsof: List current system open files

15.nmap: Network scanning and sniffing

16.tcpdump: Grab Bag

Eight, disk partitioning tools

1.disk: Disk Partitioning tool

2.partprobe: Update the kernel's hard disk partition table information

3.TUNE2FS: Adjusting EXT2/EXT3/EXT4 file System Information

4.parted: Disk Partitioning tool

5.MKFS: Creating a Linux file system

6.DUMPE2FS: Exporting Ext2/ext3/ext4 file System Information

7.RESIZE2FS: Adjusting EXT2/ETX3

Nine, system management and monitoring

1.top: View the overall operation of the system in real time and dynamically

2.free: Shows the number of unused and used memory for the current system

3.vmstat: Show Virtual memory status

4.mpstat: real-time system monitoring

5.iostat: Monitoring System Disk Utility

6.sar: System Activity Status Report

7.kill: Remove a program or work in execution

8.chkconfig: Run-level information used to update (start or stop) and query system services

9.last: Display user's most recent login information

Memory: Top,free,vmstat,mpstat,iostat,sar
Cpu:top,vmstat,mpstat,iostat,sar
I/o:vmstat,mpstat,iostat,sar
Process: IPCS,IPCRM
Load: Uptime

X. The three musketeers of text processing

1.grep: Text Filtering tool

2.sed: Character Stream editor

3.awk: Text Processing tool

According to << and old boys learn Linux operations: Core system command Combat >> Summary changed some, then the detailed options and operations of each command to remember

Linux Operations Common Commands 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.