GDB is a very useful debugging tool under Linux, although it is a command-line mode debugging tool, but it is powerful enough to you can not imagine, here is a brief introduction to GDB under common commands.Start by compiling the executable file
The installation of the source code is generally composed of 3 steps: Configuration (Configure), compile (make), installation (make install), the specific installation method is generally the author will give the document, here is the main
The DF command is a Linux system that views the file system as a disk partition, which can be added with parameters to view the disk's remaining space information, the command format: DF-HL display format: File system capacity used available% mount
I. Disk classification and storage unit 1. Classification(1)传统硬盘(机械硬盘):IDE、SATA、SCSI等接口,廉价、但速度较慢(2)固态硬盘(SSD):SATA、PCI-E、M.2 2280,昂贵、但速度快2. Unit of Measure(1)b:算机识别最小单位 (8b = 1B)(2)B(字节):比特,用户使用最小单位 (1024B = 1KB)(3)KB(1024KB = 1MB)(4)MB(1024MB = 1GB)(
System InformationThe processor architecture of the Arch Display machine (1)UNAME-M Display the processor architecture of the machine (2)Uname-r displaying the kernel version in useDMIDECODE-Q Display hardware system
communication between the network mainly relies on routers, in addition to the daily use of the router device, Linux system can also be configured to the router, simply add some simple routing entries on the Linux host, these Linux hosts can act as
A Introduction to the use of htopEveryone may be familiar with the top monitoring software, today I introduce another monitoring software htop, called Top of the enhanced version, compared to top it has a lot of its own advantages. As follows:
PS command to display a processThe grep command is to findThe Middle | is a pipeline command that refers to the PS command executing concurrently with grepPS is the most common and very powerful process view command under Linux.The grep command is a
#yum install-y Bind#vi/etc/named.conf(1) Make the following changes to the named.conf fileListen-on Port: (any;}; #默认修改位anyListen-on-v6 Port 53 {:: 1;}; #注释掉本行, add "//" to the beginning of the lineallow-query {any;}; #默认修改位anyDnssec-lookaside Auto;:
1 Linux Learning Direction 1.1 Linux operations engineer
The main work is as follows:
Planning of the server
Debugging optimizations
Daily monitoring
Fault Handling
Data backup
Log analysis
The
Ifup system Startup Anomaly DiagnosisSyntax format: ifup "option" ifup [options]Note: There must be at least one space between each element in the Ifup command and in the following optionsThe Ifup command is used to activate the specified network
In the work we often have to find the problem through the log, but sometimes too many logs and do not know when the log is printed, then we can look at the method:1. Enter the directory where the log files are stored2. grep keyword * For example, to
1 LS Common options2 Linux Get Help3 File Management4 process1. LS Common options# LS Common options -A All, view all files under the directory, including hidden files -l long list display -H Human is displayed in a humane way - d List
When using a Linux system, you will often be asked to use Super permissions, but Root is too large, and generally use caution!!! So you can add sudo permissions to ordinary users, usually with ordinary users to operate, when the need for root access
head 显示文件内容头部Syntax format: Head "option" "File" head [options] [file]Attention:
There must be at least one space between each element in the head command and in the options and files that follow.
If more than one file is created, the file
rm 复制文件或目录Syntax format: RM "option" "File" rm [options] [file]Note: The RM command and the following options and file directories must have at least one space between each elementOption Description:
parameter Options
Problem descriptionThe following error is prompted when executing the sudo command in the terminal after logging in with a normal user:
We Trust you are received the usual lecture from the local SystemAdministrator. It usually boils down to
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service