System

# uname -a               # View kernel / operating system /CPU Information

# head -n 1 /etc/issue   # View operating system version

# cat /proc/cpuinfo      # see CPU Information

# hostname               # View computer name

# lspci -tv              # List all PCI equipment

# lsusb -tv              # List all USB equipment

# lsmod                  # List loaded kernel modules

# env                    # View environment variables

resources

# free -m                # View memory usage and swap usage

# df -h                  # View the usage of each partition

# du -sh < Directory name >        # View the size of the specified directory

# grep MemTotal /proc/meminfo   # View total memory

# grep MemFree /proc/meminfo    # View the amount of free memory

# uptime                 # View system running time 、 The number of users 、 load

# cat /proc/loadavg      # View system load

Disks and partitions

# mount | column -t      # View attached partition status

# fdisk -l               # View all sections

# swapon -s              # View all swap partitions

# hdparm -i /dev/hda     # View disk parameters ( Only applicable to IDE equipment )

# dmesg | grep IDE       # View on startup IDE Equipment inspection status

The Internet

# ifconfig               # View properties of all network interfaces

# iptables -nvL            # View firewall settings

# route -n               # View routing table

# netstat -lntp          # View all listening ports

# netstat -antp          # View all established connections

# netstat -s             # View network statistics

process

# ps -ef                 # View all processes

# top                    # Real time display of process status

user

# who                    # view active user

# id < user name >            # View specified user information

# last                   # View user login log

# cut -d: -f1 /etc/passwd   # View all users of the system

# cut -d: -f1 /etc/group    # View all groups in the system

# crontab -l             # View scheduled tasks for the current user

service

# chkconfig --list       # List all system services

# chkconfig --list | grep on    # List all started system services

Program

#rpm -qa                # View all installed packages

Linux See the system information command summary for more related articles

  1. [ turn ]linux View system information command

    linux The command to view system information is linux Basic knowledge for beginners , These commands are also very useful , Because of entering linux The first thing might be to look at the system information first , So it's necessary to study these systematically linux The system information command is very useful ...

  2. linux View system information command

    This article is reprinted from Jiang Yi <linux View system information command > # uname -a # View kernel / operating system /CPU Information # head -n 1 /etc/issue # View operating system version # cat /p ...

  3. linux View system information command ( More complete )

    linux The command to view system information is linux Basic knowledge for beginners , These commands are also very useful , Because of entering linux The first thing might be to look at the system information first , So it's necessary to study these systematically linux The system information command is very useful ...

  4. linux View system information command

    linux The command to view system information is linux Basic knowledge for beginners , These commands are also very useful , Because of entering linux The first thing might be to look at the system information first , So it's necessary to study these systematically linux The system information command is very useful ...

  5. Linux View system information command summary

    # uname -a # View kernel / operating system /CPU Information # /etc/issue # View operating system version # cat /proc/cpuinfo # see CPU Information # hostname # Look at the calculations ...

  6. CentOS View system information commands and methods

    A collection of linux Commands and methods for viewing system information : One .linux How to view server system information : 1. View host name / Kernel version /CPU The architecture : # uname -n -r -p -o localhost.loc ...

  7. Linux Query system information command

    Linux Viewing system information is basic knowledge , So this should all need to be mastered , The order and explanation are as follows : #uname -a           Check out the operating system . kernel .CPU Information #head -n 1 /etc/issue   ...

  8. linux View file command summary

    linux View file command summary 1.cat View file contents Options -b Blank lines do not show line numbers .-n, Blank lines show 2.more View file contents , Use the space bar to see the next page q Key exit view 3.less Same as above , More direction keys ( ...

  9. Linux View file size command

    Linux View file size command du command (1)du -b filepath Parameters -b Represents a count in bytes du -b filepath Parameters -b Represents a count in bytes # Example : $ du -b ~/Downloads ...

Random recommendation

  1. Python Way of learning --Socket

    Socket socket It's also called " Socket ", Used to describe IP Address and port , Is a handle to a communication chain , Applications usually go through " Socket " Send a request to the network or answer a network request . sock ...

  2. SAP The transport function of ( turn )

    SAP The transport function of (transportation)  transportation It has three functions : 1. transport plan transportation planning  Concept : Yes outbound delivery ...

  3. miniproject black jack--Fail

    The first part Download the program template for this small project and review card The definition of a class . This class has been executed, so your task is to familiarize yourself with the code . Start , By pasting card Class into the program template and verify that our code works as expected . Realization “__init__ ...

  4. ajax 、ajax The interaction model of 、 How to solve cross domain problems

    1.ajax What is it? ? — AJAX Its full name is “AsynchronousJavaScript and XML”( asynchronous JavaScript and XML), It is a web development technology for creating interactive web applications . — It's not a new technology ...

  5. [ Reprint ]word The endnote inserts references —— Previous experience + Summarize yourself

    1. Insert the first reference as an endnote . Position the cursor on word Where the reference will be inserted in the document , Press “ Insert / quote / Footnotes and endnotes ”. A menu appears , choice “ Endnote ”,“ The end of the document ”, The number format is “1,2,3”. Press “ Insert ” Button ...

  6. Laravel5.3 Coarse grained analysis of process bootstrap

    from laravel Entrance file index It's not hard to locate inside and outside Illuminate\Foundation\Http\Kernel Of handle Method , It's also not hard to find handle The core of the method is $response = ...

  7. SSRF Vulnerability to learn

    SSRF SSRF(Server-Side Request Forgery: Server side Request Forgery ) It is a security vulnerability that is constructed by the attacker to form a request initiated by the server . In general ,SSRF The target of the attack is from the Internet can not access the inside ...

  8. linux mysql Can't start for no reason ,centos 7

    from : http://support.moonpoint.com/software/database/mysql/not-running-centos7.php Here is a brief translation . The details can be read in English ...

  9. python Study 02

    python Data type of Program = data type + Algorithm 1. data type : Data type , character string , list list, Dictionaries dict,set aggregate (),tuple Tuples () 1) Data type int, Integer type , It's infinite in theory , But it's limited by machine memory ...

  10. python class 、 References to functions

    Class reference One . Peer directory reference : from file name import Class name     If you make a mistake , The reason is basically :pycharm Will not automatically add the current file directory to its own sourse_path.     resolvent :     ...