Top commandCommand functionThe top command can dynamically view the overall operation of the system in real time, and is a comprehensive multi-party informationPractical tools for monitoring system performance and operational information.Command syntaxTop (option)Option description-B: Operation in batch mode;-D: Screen refresh interval time.UptimeCommand functionThe uptime command is capable of printing how long the system has been running and the average load on the system.Command syntaxUptime
Original URL: http://www.cnblogs.com/peida/archive/2012/12/10/2810755.htmlThe Linux du command also looks at the space used, but unlike the DF command, the Linux du command is a view of the space used by the file and directory disks, or some difference from the DF command.1. Command format:du [Options] [file]2. Command function:Displays the disk usage space for each file and directory.3. Command parameters:-A or-all displays the size of individual files in the directory.-B or-bytes displays the
. and cached is directly used to memorize the files we open.
Swap (in KB)
Total (All): 1045500
Used (used): 3376
Free (available): 1042124
When you see a buffer/cache free space or a low free space for swap, the memory needs to be upgraded. This means that memory utilization is high. Note that the shared (shared) memory column should be ignored because it has been discarded.
Displaying memory information in another unit
As we mentioned earlier, the default free will display information in
/python
##########################################################################
# split a file into a set of parts; Join.py puts them back together;
# This is a customizable version of the standard UNIX split command-line
# utility; Because it is written in Python, it also works on Windows and
# can be easily modified; Because it exports a function, its logic can
# also be imported and reused in the other applications;
###################################################################
used to memorize the files we open.Swap (in KB)Total (All): 1045500Used (used): 3376Free (available): 1042124When you see a buffer/cache free space or a low free space for swap, the memory needs to be upgraded. This means that memory utilization is high. Note that the shared (shared) memory column should be ignored because it has been discarded.
Displaying memory information in another unitAs we mentioned earlier, the default free will display information in
Here we will introduce each of them.
1. config command
The config command is primarily used to modify the default settings for SSI. which
ErrMsg: Sets the default error message. In order to return the user-defined error message normally, the errmsg parameter must be placed in front of the other SSI commands in the HTML file, otherwise the client can only display the default error message, not the custom information set by the user.
TIMEFMT: Defines the use format for dates and times. T
Tags: clu lin sum file system total rate link Command parameterThe Linux du command also looks at the use of space, but unlike the DF command, the Linux du command is to see whether the currently specified file or directory (recursively displaying subdirectories) consumes disk space or is somewhat different from the DF command.1. Command format:du [Options] [file]2. Command function:Displays the disk usage space for each file and directory.3. Command parameters:-A or-all displays the size of ind
Tags: inf info man du command. GZ Description command parameter file 8KThe Linux du command also looks at the space used, but unlike the DF command, the Linux du command is a view of the space used by the file and directory disks, or some difference from the DF command.1. Command format:du [Options] [file]2. Command function:Displays the disk usage space for each file and directory.3. Command parameters:-A or-all displays the size of individual files in the directory.-B or-bytes displays the dir
Tags: sort bytes Tar instance Lin one output command excludeThe Linux du command also looks at the space used, but unlike the DF command, the Linux du command is a view of the space used by the file and directory disks, or some difference from the DF command.1. Command format:du [Options] [file]2. Command function:Displays the disk usage space for each file and directory.3. Command parameters:-A or-all displays the size of individual files in the directory.-B or-bytes displays the directory or f
all processes on this machinePs-ef | grep needs to query the process to search for the specified processKill-9 process Number (PID) force kill processCommon network commandsService iptables Status View firewall stateService iptables Stop/start Firewall Start-up or stopChkconfig iptabales off on firewall boot or offFirewall does not startIptables-fService Iptables SaveService Iptables RestartSyntax: DF [-hkam] [Mount Point]-H (human-readable) displays KB,MB,GB in an easy-to-read manner based on
zombie
PID line: Process ID; Process owner; Process priority (PR); Nice value, negative indicates high priority, positive values represent low priority; VIRT, total amount of virtual memory used by the process, in kilobytes. Virt=swap+res;res, the size of the physical memory, in kilobytes, that the process uses and has not been swapped out. Res=code+data;
FreeThe free command displays syst
-active memory sizeActive indicates a memory sizeExample 2 showing memory detailsExample 3 viewing disk read/write2 Iostat needs to be installedIostat is an abbreviation for I/O statistics (input/output), and its main function is to monitor the system disk I/O operation, which mainly shows the statistics of disk read and write operations, and also gives the CPU usage.Syntax formatIostat [Options] [time interval [times]]
parameter Options
Explanatory notes
1 UseMaster2 Go3 Select * fromsys.dm_os_buffer_descriptors4 Go5 6 --View the amount of space the database occupies in the data cache7 --128 Bytes, 1/8 kilobytes (KB) because each data page corresponds to a row in dynamic management view (management VIEW,DMV)8 --1 byte (byte) = 8 bit (bit)9 --1000 kilobytes (KB) = 1024 bytes (byte)Ten --1 megabytes (MB) = 1.024
console, but the root user can successfully switch, temporarily did not find the reason, the follow-up found again!!!lsb_release: LSB is the abbreviation for Linux Standard base, Sb_release is used to display the LSB and specific version of the relevant informationThere is no CentOS7 on this commandFree: Displays the number of unused and used memory in the current system, and also shows the memory buffers used by the kernelOptions:-B: Display memory usage in bytes-K: in
all the shells currently supported by LinuxshFrom the Bash entrance to theshexitExit Current ShellUse the bash command to create a child shell under an existing bash, as well as to use exit exit, call and exit are first-level coherentA follow-up course will tell you what your current shell is.2. Disk Management basic commands to view disk partition usagedf【选项】Options:-lShow only local disks (default)-aDisplays disk usage for all file systems, including, for example,/proc/-hThe most appropriate
iostat command (which is provided by the sysstat software package in Ubuntu, red hat, and Fedora Systems) provides three reports: CPU usage, device usage, and Network File System usage. If you run this command without adding any parameters, it displays all the three reports, you can add the-C,-D, and-H parameters to display one of them separately.
In the preceding figure, you can see two of the reports. The first is the CPU usage, which lists the CPU usage percentage of each process. You can
The Linux df command is used to display the disk usage statistics of the file system on Linux.SyntaxDf [option]... [FILE]... FILE-a, -- all contains all file systems with 0 Blocks FILE -- block-size = {SIZE} use Blocks of {SIZE} size FILE-h, -- human-readable uses a human-readable format (the preset value does not include this option ...) FILE-H, -- si is like-h, but 1000 is used instead of 1024 FILE-I, -- inodes: list inode information, not list used blocks FILE-k, --
1, DUMPE2FS (used to view the Super block information)DUMPE2FS [option] Device name-H: List only the Super block information650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M00/7E/9A/wKiom1cFCcfzd3KuAAHiW4CR97U436.jpg "title=" 9.JPG " Width= "599" height= "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:599px;height:150px; "alt=" Wkiom1cfccfzd3kuaahiw4cr97u436.jpg "/>2, DF (used to show the overall amount of disk space usage)DF [option] [FILE] ...-A: List all file systems-K: Listed in
adequate.Syntax: free [-bkmotv][-s Additional Note: The free instruction shows memory usage, including physical memory, virtual swap file memory, shared memory segments, and buffers used by the system core.Parameters-B Displays memory usage in bytes.-K displays memory usage in kilobytes.-m displays memory usage in megabytes.-O does not display buffer throttling columns.-s-T displays the memory sum column.-
The Linux du command also looks at the usage space, but unlike the DF command, the Linux du command is a view of the space used by files and directory disks, or some difference from the DF command.
What's the difference between Du/bin and Du-s/bin?
-S is summary, showing the sum of space occupied by the directory
The difference is that there is a subdirectory under/bin because the/bin has no subdirectories so the results are the same, such as
DU/ETC will see a lot of output
Du-s/etc has onl
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.