Common commands for debugging using GDB in Linux are recorded here.$ sudo su# g++-G Test.cpp-o test-pthread # gdb test - - - - - - - - - - (GDB) L ----The first line begins with the original code, and theList command is abbreviated
Other polite words about gdb don't say much, go straight to the chase.first, the GDB basic command list :
Command
Explain
Shorthand
File
Load the executable file you want to debug
No
List
1. Depmod [-ane]: Update kernel module dependencies.Parameters:No parameters: Depmod will actively analyze the current kernel module and re-write to/lib/modules/$ (uname-r)/MODULES.DEP;-a:depmod will find a new module than the MODULES.DEP inside, if
Linux version: CentOS 6.2ISO File: Http://mirrors.163.com/centos/6.2/isos/i386/CentOS-6.2-i386-bin-DVD1.iso1. Installing the JDKFirst Use Java command to see if the system is installed with the default OpenJDK , if installed, it is recommended to
sudo detailedPrior to the use of Su, SU is the switch user, switching from one user to anotherSo what is sudo?sudo: is to allow a user to perform certain tasks through certain hosts as any other user. Remember, it is with anotherOne identity to
Reprint to: http://blog.csdn.net/eroswang/article/details/3847304Usage of Iconv:Usage: iconv [Options ...] [File ...]Convert encoding of given files from one encoding to another.Input/output format specification:-F,--from-code=name original text
Ghost and g4l.Install the operating system, too slow, the whole process is too tedious.During the installation process, several questions need to be answered, and the system needs to install countless software to create and write countless files.
1, if the installation package is installed under the Linux system, then you can use[Email protected] ~]# service httpd restartTo enable or restart the Apache serviceAt the same time, its standard way is:[[email protected] ~]#/etc/rc.d/init.d/httpd
1: Open the virtual machine, click the ' Start ' button,2: When the above interface appears, the keyboard input ' I ', the Grub interface appears:3: Keyboard input E, the following interface appears:4: Select the second row (kernel ... )5: Keyboard
The main use of fork in advance to create a number of processes, concurrent processing of multiple client connections, return the current system time. The specific code is as follows:Server.c# include # include # include # include # Include #
Linux Advanced Skills: rsync synchronization (2), linuxrsync1. Configure synchronization between two nodesThe previous post shows how to synchronize a host. This time, we will add another host to be synchronized. The method is of no quality.1. First,
Install the image Conversion Tool Converseen 0.8.1 on your Ubuntu
Converseen is a batch image conversion and thumbnail generation tool that supports over 100 image formats including: DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript,
Linux Command Execution judgment basis --;, &, |
Command Execution judgment basis --;, &, |
Multiple commands are executed simultaneously during Linux O & M or during daily Linux system operations. In this case, we need to process multiple
FATAL: NO bootable medium found! System halted., bootablehalted
Problem description: fatal error. No media can be booted. The system is suspended.The following is an online query:
1: Check whether the hard disk type, ide or sata interface is 0, 0,
Laruence's linux private house dish-Chapter 1 Regular Expression and file formatting, linux private house dish
12.1 what is a regular expression
A regular expression is a string processing method. It processes strings in the unit of behavior. A
Linux Advanced Skills: rsync synchronization (2)1. Configure synchronization between two nodesThe previous post shows how to synchronize a host. This time, we will add another host to be synchronized. The method is of no quality.1. First, display
In linux, the root password is missing. Solution: linuxroot
1: Open the VM, click 'start,
2: When the above interface is displayed, enter 'I' on the keyboard to display the grub interface:
3: Enter e on the keyboard. The following page is
When CentOS is started, ext4 partitions are automatically mounted.
During Linux installation, only about GB space is allocated to Linux, so another TB backup disk is mounted for resource storage and system backup, however, after the system enters
Use debugfs in CentOS to restore deleted files on the ext3 File System
Everyone knows that in Linux, it is difficult to restore deleted files! Recovery commands and tools may be different in different file systems. The following describes an attempt
Linux background running
In Linux, sometimes you need to run the script (test. sh) and executable program (exe) in the background. Use the following method:
Nohup./test. sh &
Nohup./exe &
In this way, the program can be completely run in 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service