Linux Common Commands

Source: Internet
Author: User

Linux Commond
1.ls [Options] [Directory name | list all directories and files in the relevant directory 2.MV [options] source file or directory directory or multiple source files | Move or rename a file 3.cp [options] source file or directory directory or multiple source files | Copy the source file to the destination file, or copy multiple source files to the destination directory 。 4.SCP [parameter] [original path] [Target path] | Copying files and directories between Linux servers 5.rm [options] file | Delete file 6.touch [options] file | Create an empty file or update file time 7.pwd view current path 8.cd change current directory 9.mkdir [options] directory ... | Create new directory 11.rm [options] File ... | One or more files or directories 12.echo: Display content 13.cat [options] [File]..| Display the entire file at once or create a file from the keyboard or merge several files into one file 14.tac | Reverse Display 15.more | View article content by page, read the file backwards from the front, so load the entire file at startup 16.less | Can be moved back and forth to view the content of the article, before viewing the entire file will not load 17.nl [options] ... [File] ... | Automatically add the output to line number 18.head [parameters] ... [File] ... | Show file start, default start 10 line 19.tail [Necessary parameter] [select parameter] [file] | Show file end content 20.vi Edit file 21.which executable name | View the location of the executable file, see if the system command exists and its location in the path specified by the path variable 22.whereis [-BMSU] [BMS directory name-f] File name | Locating executables, source code files, Help files in the file system location 23.locate | Quick Search for archives by searching the database 24.find find [PATH] [option] [action] | Find files in the file tree and make corresponding processing 25.file | Determine file type 26.gzip [-cdtv#] archive | Compressed, uncompressed, source files no longer exist 27.gunzip | Unzip 28.BZIP2 | Compress, decompress 29.bzcat read data without unzipping 30.tar [main options + Secondary options] File or directory | Multiple directories or archives packed, compressed into a large file 31.exit exit current Shell32.logout Exit login shell33.shutdown-h now34.users display currently logged on system User 35.who login in nativeThe user and the source 36.W log on the users of the computer and their running program 37.write to the current online users send messages 38.wall to all users who log on to the user sent a message 39.last view user's log in the Register 40.lastlog View last login time for each user 41.finger [options] [user] [users @ host] | Viewing user information 42.hostname viewing host name 43.alias II = "Ls-l" | Add Alias 44.unalias II | Clear alias 45.useradd [-U UID] [-G initial Group] [-G secondary Group] [-C description Bar] [-D Home directory Absolute Path] [-s shell] User account name | New User 46.passwd | Modify password 47.userdel Delete user 48.chage [-LDEIMMW] Account name | Modify the relevant properties of a user's password 49.usermod [-cdegglsulu] username | Modifying the user's related properties 50.id [Username] | View user-related ID information, can also be used to determine whether the user exists 51.groups view login user support groups, the first output group for a valid group 52.NEWGRP switch Active Group 53.groupadd [-G GID] Group name | Add group 54.groupmod [-G GID] [-n group_name] Group name | Modify group information 55.groupdel [groupname] | Delete a group 56.gpasswd | Group Admin Function 57.chfn Modify personal information 58.mount [-t vfstype] [-o options] device dir59.umount un-mount 60.cut split 61.sort sort 62.WC Statistics Specify the number of bytes, words, Number of rows, and displays the results of the output 63.uniq remove adjacent repeating rows in the file 64.set display environment variable and normal variable 65.env display environment variable 66.export change normal variable to environment variable 67.unset Delete an environment variable 68.read69.declare, typeset70.ulimit restrict some system resources for the consumer 71.DF [options] [file] | Displays the free space for the specified disk file, and if no file name is specified, the free space for all currently mounted file systems will be displayed 72.DU [options] [file] | Displays the disk usage space for each file and directory 73.ln [parameter] [source file or directory] [destination file or directory] | One file establishes a synchronized link in another location 74.diff [parameter] [file 1 or directory 1] [file 2 or directory 2] | Compare a single file or directory content 75.date [parameters] ... [+ format] | Display or set the date and time of the system 76.cal [parameter] month [year] | View calendar 78.top [parameters] | Displays information about the processes currently being executed by the system, including process ID, memory usage, CPU utilization, and so on 79.kill [parameters] [process number] | Kill process 80.free [parameter] | Displays idle, used physical memory and swap memory in Linux systems, and Buffer81.vmstat used by the kernel | Monitor the operating system's virtual memory, process, and CPU activity 82.iostat [parameters] [time t] [number of n] (refresh every t time, up to n times) | Monitor the disk operation activity of the system, report the statistics of disk activity, and also report the CPU usage 83.watch [parameters] [command] | Repeat a command to observe the change 84.at [parameter] [TIME] | Executes a specified task at a specified time, only once 85.crontab | Scheduled task scheduling 86.ifconfig [network device] [parameter] | View and configure network devices 87.route | Displaying and manipulating IP routing table 88.ping [parameters] [hostname or IP address] | Test connectivity to the target host 89.netstat | Displaying statistics related to IP, TCP, UDP, and ICMP protocols 90.telnet [parameters] [host] | For remote login, using plaintext to transmit messages, security is not good 91.RCP [parameters] [source file] [target file] | Remote file copy 93.awk94.sed to replace, delete, add, select, and so on data rows 95.paste merge files to ensure that the combined two file rows are the same 96.su [parameter] user | Switch Login 97.sudo | To execute a specific command with the privileges of a specific user
See
    • http://blog.csdn.net/boshuzhang/article/details/51122457
All rights reserved

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.