The GDB debugging tool for Linux

1. Start GDBYou must use the gcc-g command to generate an executable program with debug information before you can debug a C + + program using GDB:$ gcc-g-O Hello hello.cYou can then use GDB to debug the generated hello binaries.$ gdb HelloGDB will

LINUX Note-free command

The free command displays the idle, used physical memory and swap memory in the Linux system, and the buffer used by the kernel.[Email protected]:~$ free-hTotal used free shared buff/cache availablemem:3.8g 1.3G 928M 27M 1.7G 2.2Gswap:4.0g 0B

Linux Socket Talkclient Talkserver example

Tag: input int string cannot main char* argv ready hintCleint:#define _gnu_source 1#include #include #include #include #include #include #include #include #include #include #include #define BUFFER_SIZE int main (int argc, C har*

Linux Common Commands--(vi)

TAB: Auto-completeCTRL + C Close1. Logout, shutdown, restart-Logout: Logout: Logout, exit (just exit the account)-Shutdown: (need to be root or be granted permission by root)Shutdown-h time-H: ShutdownTime1. Now: Right away2.12.30: Specify a

The SED of Linux

Directory:Basic operation of 1.sed, mode space, advanced operationWhat is one.1 sed?Streaming editor, the text content line-wise, you can copy, delete, modify the fileONE.2 sed formatSed-n '/^for/p '/etc/passwd lists the lines in the/etc/passwd file

Linux Server FAQs

1, CentOS filename display garbledAs shown below:650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/A4/2A/wKioL1mmDbnA3E4aAABZEs-hTAg539.png "title=" 01. PNG "alt=" Wkiol1mmdbna3e4aaabzes-htag539.png "/>The reason is:The file name of

Search files under linux command whereis/which/find/locate

1.whereisWhereis whowhereiscan only search binaries (-B), man Help file (-m) and source code file (-s)2.locateSo sometimes when you just add a file, it may not be found and requires a command to be executed manually updatedb(This command must be

Linux System free Command detailed

Total used free shared buffers cachedmem: 8061128 3604036 4457092 324 191296 2283328-/+ Buffers/cache: 1129412 6931716Swap: 0 0 0Above is the result of the free command,

Linux File Permissions Analysis

  First, user group conceptin a Linux system, each user must belong to a group and cannot be independent of the group. Each file has the three concepts of owner, group, and other group. (1) Owner: Typically the creator of the file, who created the

linux-NIC configuration-Network commands

1: Temporary modification:1.1: Modify IP Address# ifconfig Eth0 192.168.100.1001.2: Modify the gateway address# route add default GW 192.168.100.1 dev eth01.3: Modify DNS# echo "NameServer 8.8.8.8" >>/etc/resolv.confThis time will be able to surf

Linux Learning Notes-directory, file management commands

Directory Management Commands:LS, CD, pwd, mkdir, rmdir, treeFile Management commands:Touch, stat, file, RM, CP, MV, NanDirectory Management#ls ListFormat ls [OPTION] ... [FILE] ...-H (Hurman) unit conversion-A (all) displays files starting with.

Linux centos7 Common Command "SYSTEMCTL replacement service"

See all NIC IP addresses--ip addrStart firewall--systemctl start Firewalld.serviceStop firewall--systemctl Stop Firewalld.serviceView FIREWALLD firewall status--firewall-cmd--stateDisable firewall boot--systemctl disable Firewalld.serviceLists the

Linux-insmod/rmmod/lsmod driver Module Related commands (10)

Insmod: Load ModuleParameters:-F does not check that the current kernel version is consistent with the kernel version at the time of module compilation, forcing the module to be loaded.-K Sets the module to dismount automatically.-M output module

linux-Practice-Create user 5 password lengths in bulk

1echo Admin{1..10}|xargs-n 1 | Xargs-i Echo ' {}:openssl rand-base64 5 ' | awk-f ': ' {print ' Useradd ', $ '; ' " x=$ ("$"), echo $x >> password.doc;echo $x "" | " passwd--stdin ", $ ' | Bash2echo Admin{1..10}|xargs-n 1 | Xargs-i Echo ' {}:openssl

Linux Network programming

Preface : Organize the Linux socket programming related APIs and knowledge pointsFlow Socket Processing FlowDatagram Socket processing Flowbyte order : Byte order has a small end of the big-endian, different processing architectures when storing a

Linux mount USB drive in WMware player

Menu (Player) is a removable device, select a USB flash drive, then select Connect (Disconnect the host), and then on the command line, enterFdisk-lNormally the SDA is the hard disk information, then you will see a single hop SDB4 information (SDB4

linux-Fifth Lesson Note-[user and user group actions]

User and Group Management commandsUseradd: Used to create a new userFormat: useradd [options] User name-D Specify the user's home directory-D Show default values-e account expiration date, format: Yyyy-mm-dd.-G Specify an initial user group (must

To view commands for the Linux kernel version

Method One:Command: Uname-aFunction: View system kernel version number and system nameMethod Two:Command: Cat/proc/versionFunction: View the directory "/proc" under the version of the information, you can also get the current system's kernel

2017201708281_grep .txt, 20170828 grep

2017201708281_grep .txt, 20170828 grep [70708281_grep .txt-- // Grep is often used to filter display information.# Ps-ef | grep oraagentOracle 13416 1 0 2016? 1-20:48:04/u01/app/11.2.0.4/grid/bin/oraagent. binGrid 17423 1 0 2014? 2-03:32:14/u01/app/1

Nginx Load Balancing

Nginx Load BalancingUpstream mysvr { Server 192.168.10.121: 3333; server 192.168.10.122: 3333;} server {... location ~ * ^. + $ {Proxy_pass http: // mysvr; # redirect requests to the server list defined by mysvr}    Upstream mysvr { Server http: // 1

Total Pages: 5467 1 .... 3234 3235 3236 3237 3238 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.