Linux system needs regular inspection to check server hardware and software usage, the equivalent of physical examination, to ensure timely detection of problems, solve problems, reduce losses, commonly used patrol command as follows:# uname-a #
1.1 Write the purpose of the file or directory1./etc/hosts local IP domain name resolution2./etc/sysconfig/network Modify Host Name3. Automatic mounting of the/etc/fstab system4. boot file for/etc/rc.local boot5./etc/inittab System Operating Sector6.
First-level directory: /bin Store system commands and tools, binary commands (equivalent to C:\WINDOWS\system32) /boot contains boot boot files and grub /dev for Linux systems Store hardware device files and
First, System Management and SetupIi. User and User group managementThird, Disk ManagementIv. File and directory managementV. Backup and compressionVI. network management and related applicationsVii. Vi/vim EditorFirst, System Management and Setup1.
Transferred from: http://mushme.iteye.com/blog/1001478CatTail-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
Directory Structure of Linux 1. Directory Description of LinuxLinux is an inverted tree structureEverything in Linux is a file.These files are at the top of the system directory "/"/is the root directory/directory Below is a level two directory
Judging the system loadThe 1.uptime command, the three number of load average, represents the average number of processes for 1 minutes, 5 minutes, and 15 minutes, respectively.If you continue to read the manual, it will also tell you that when the
Linux Process ManagementLab Environment:User name: ShiyanlouPassword: ajw3tui5Introduction to the Management control experiment of Linux processThrough this experiment we will master some of the tools provided by Linux for process viewing and
UptimeThe Linux uptime command is primarily used to obtain information such as host uptime and query Linux system load.eg# uptime02:03:50 up 126 days, 12:57, 2 users, load average:0.08, 0.03, 0.0510:19:04 up 257 days, 18:56, users, load average:2.10,
Scene: In a blog to see these summary commands, feel very practical to reprint, later use to carry out related finishingSystem# uname-a # view kernel/Os/cpu information# head-n 1/etc/issue # view OS version# cat/proc/cpuinfo # View CPU Information#
UptimeThe Linux uptime command is primarily used to obtain information such as host uptime and query Linux system load.eg# uptime02:03:50 up 126 days, 12:57, 2 users, load average:0.08, 0.03, 0.0510:19:04 up 257 days, 18:56, users, load average:2.10,
System #uname-A # view kernel/OS/CPU Information #Head-N1/etc/issue # View OS version #Cat/proc/Cpuinfo # Viewing CPU information #hostname# View Computer name # LSPCI-TV # List all PCI devices # LSUSB-TV # list all USB devices #Lsmod# list loaded
Linux system needs regular inspection to check server hardware and software usage, the equivalent of physical examination, to ensure timely detection of problems, solve problems, reduce losses, commonly used patrol command as follows: # uname-a #
# 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 kernel
Serial number
Task
Command combination
1
Delete a 0-byte file
Find. -type f-size 0-exec rm-rf {} \;Find. Type F-size 0-delete
2
View processes, sorted by memory from large to small
PS-E-O "%c:
CatTail-fLog file description1 /var/log/message and error log after system startup is one of the most commonly used logs in red Hat Linux 2 /var/ log/Secure Security-related log information 3 /var/log/maillog Message-related log information 4 /
To a certain extent, you will pay attention to some of the system configuration, just need the relevant command. Now make a list of common commands for Linux view system configuration# uname-a # view kernel/Os/cpu information# head-n 1/etc/issue #
Linux System Information view command DaquanRecently read some of the Linux command-line articles, in the System Information view to learn a lot of commands. Think of a previously written article in fact, Linux is easier to use, find these System
Important and Directory
/bin
Common binary command directories, such as Ls,cp,mkdir
/boot
Linux kernel boot System program required files directory
/dev
Device files directory, such as
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.