CatTail-fLog 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
A lot of friends do not know how to use shell scripts to collect information about the Linux system, including CPU, memory, disk, network and other information, here the script to do a small part of the explanation, we come together to see it.First,
When editing the Cron service, the edited content has some formatting and conventions, type:crontab-U root-e into the vi editing mode, the content of the edit must conform to the following format:*/1 * * * * ls >>/tmp/ls.txtThe first part of this
IntroducedWhen managing a networked server, server security is a very complex issue. Although you can configure firewalls, set up logging policies, buy security services, or lock apps, it's not enough if you want to make sure that every intrusion is
1#uname-A # view kernel/OS/CPU Information2#Head-N1/etc/issue # Viewing the operating system version3#Cat/proc/Cpuinfo # Viewing CPU information4#hostname# view Computer name5# LSPCI-TV # List all PCI devices6# LSUSB-TV # list all USB devices7#Lsmod#
One, the Linux CPU sizeCat/proc/cpuinfo |grep "model name" && cat/proc/cpuinfo |grep "Physical ID"Description: Detailed information about each CPU can be seen in/proc/cpuinfo under Linux. But for a dual-core CPU, you will see two CPUs in the Cpuinfo.
Linux System Info # uname-A # view kernel/OS/CPU Information # head-N1/etc/issue # View OS version # Cat/proc/Cpuinfo # View CPU Info # hostname # view computer name # LSPCI-TV # List all PCI devices # LSUSB-TV # list all USB devices # lsmod # list
All directories are under the rootdirectory Structure and disk separationDirectory hierarchy:What file data should be placed in each directory in the first layer "/" directoryFor example:/etc directory decentralization system configuration file/bin
System# uname-a # View kernel/Os/cpu information# head-n 1/etc/issue # view OS version# cat/proc/cpuinfo # View CPU Information# hostname # View computer name# LSPCI-TV # list all PCI devices# LSUSB-TV # list all USB devices# lsmod # List of loaded
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
CatTail-fLog 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
1. Graphics card Information DMESG | Grep-i VGA Lspci | grep-i VGA //view video card information2.Dmidecode | grep-i ' Serial number 'View motherboard information to view the motherboard serial number3.CPU Information#通过/proc File System Cat/proc/
Guide
Now the hottest technology is Docker, many people think Docker is a new technology, but in fact, Docker in addition to its programming language with go relatively new, actually it is really not a new thing, that is, a new bottle of old
CatTail-fLog 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
Reproduced in: http://mushme.iteye.com/blog/1001478.Cattail-fLog 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
System # uname-a # view kernel/Os/cpu Info # head-n 1/etc/issue # view OS version # cat/proc/cpuinfo # View CPU Information # hostname # view calculations Machine name # LSPCI-TV # list all PCI devices # LSUSB-TV # list all USB devices # lsmod
System# uname-a # View kernel/Os/cpu information# head-n 1/etc/issue # view OS version# cat/proc/cpuinfo # View CPU Information# hostname # View computer name# LSPCI-TV # list all PCI devices# LSUSB-TV # list all USB devices# lsmod # List of loaded
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.