/etc/sysconfig/network-scripts/ifcfg-eth0 NIC/etc/resolv.conf DNS/etc/hosts/etc/sysconfig/network Host Name/etc/fstab mount disk File on boot/etc/rc.local boot automatically (command to start the software, or command to execute the file)/etc/inittab
/bin: Binary executable command./dev: Device special files./etc: System administration and configuration files./ETC/RC.D: Startup configuration files and scripts./home: The base point of the household directory, such as the user's main directory
Reference: http://blog.csdn.net/lhf_tiger/article/details/7102753SystemHead-n 1/etc/issue Viewing the operating system versionHostname View computer NameLsmod List of loaded kernel modulesSwapon-s View all swap partitionsCrontab-l View the current
Log File Description/var/log/message system startup information and error log, which is one of the most commonly used logs in red Hat Linux/var/log/secure Security-related log information/var/log/maillog Message-related log information/var/log/cron
View memory Size: Cat/proc/meminfo |grep memtotalUNAME-A # Linux System Information command to view kernel/Os/cpu informationHead-n 1/etc/issue # View OS version, is the number 1 not the letter LCat/proc/cpuinfo # Linux System Information command to
/bin:Binary executable command./ Dev:Device special files./ etc:System administration and configuration files./ETC/RC.D:Start the configuration files and scripts. /Home:The base point of the user's home directory, such as the user's home directory
1. Query server load(1) Uptime[Email protected] ~]# uptime20:17:18 up 7:41, 2 users, Load average:0.00, 0.00, 0.0020:17:18 the current timeUp 7:41 the higher the number of times it runs, the more stable the machine is.2 connections to users refers
1./the proc directory Linux kernel provides a/The proc file system, which accesses kernel internal data structures at run time, and changes the kernel setting mechanism. The proc file system is a pseudo-file system that only exists in memory and
Description of the structure and application of the folders under Linux:/bin: Binary executable command./dev: Device special files./etc: System administration and configuration files./ETC/RC.D: Startup configuration files and scripts./home: The base
Watch is a very useful command, basically all Linux distributions with this gadget, like the name, watch can help you monitor the results of a command, save you to manually run over and over again. Under Linux, watch is the periodic execution of the
Top -interactive command to see performance data for each CPU -interactive commands h--8081 -c -elf|grep java-c --/proc/net/dev --/proc/loadavg-- /proc/meminfo - - /proc/stat-- 27989--27989 | grep running | wc-l- -How
Sys_getloadavg () This function returns the load mean information of the current system (of course not applicable to Windows). For more information, see related documents of PHP. There is a sample code in this document, so you can see its
Memory information/meminfo
Return dict
#!/usr/bin/env pythondef memory_stat(): mem = {} f = open("/proc/meminfo") lines = f.readlines() f.close() for line in lines: if len(line)
CPU information/cpuinfoReturns a list with a
1In the system, each possible type of exception is assigned a unique non-negative integer exception number (Exception number). Some of these numbers are assigned by the processor designer and others are assigned by the operating system kernel
How to view server information in centos LinuxSome customers often ask Cloud Zhi interconnection to view some hardware configuration methods of the server. The following uses centos as an example to share various information viewing methods with
Common centos commands are frequently used in our use. Therefore, we have thoroughly organized some frequently-used and important centos commands. The following describes common centos commands. I: use common centos commands to view CPU
System# Uname-A # view kernel/operating system/CPU Information
# Head-N 1/etc/issue # view the operating system version
# Cat/proc/cpuinfo # view CPU Information
# Hostname # view the computer name
# Lspci-TV # list all PCI devices
# Lsusb-TV # list
Getmac// Get your computer MAC Address
DEVMGMT// Open Device Manager
Taskmgr// Open Task Manager
Slide off: C:\Windows\System32 folder, found in the inside "Slidetoshutdown
Modify Linux Computer Name: vi/etc/sysconfig/network
Linux command:
Linux modification time
On the command line, enter:
DateShow current time Fri Aug 3 14:15:16 CST 2007
Date-SModified by stringYou can modify only the date without changing the time. Enter: Date-SModify the time only. Enter date-s 14:15:00.Modify the
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.