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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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