Names related to NICs in Linux

IFUP-Start a preconfigured net interface. Ifdown-Stop A (preconfigured) net interface. Ifstatus-Show the state of a (preconfigured) net interface. Ifrenew-Renews the DHCP lease on a net interface. Ifprobe-Checks if the configuration for the

Linux DIR)

1) fstat, stat, lstat system call# Include# Include # Include // This is not required for Linux systems and is required for UNIX systems. Int fstat (intFildes, struct stat * BUF ); Returns information about the state file related to the file

Linux 0.11 memory address space concept

In Linux 0.11 kernel, when performing address ing, we need to first distinguish the three addresses and their transformation concepts:A. Virtual and logical address of the Program (process); B. Linear address of the CPU; C. Actual physical memory

Programming in Linux-IP address acquisition and setting

// Obtain the local IP address Function Qstring getlocalip () { int sock_get_ip; char ipaddr [50]; struct sockaddr_in * sin; struct ifreq ifr_ip; If (sock_get_ip = socket (af_inet, sock_stream, 0) =-1) { printf ("socket create failse...

How to set the startup sequence for a dual-system (Windows and Linux)? The content of my/boot/GRUB/menu. lst is as follows:

Default = 1 Timeout = 5 Hiddenmenu Title Windows XP Root (hd0, 0) Chainloader + 1 Title Ubuntu 9.10 Root (hd1, 1) Kernel/boot/vmlinuz-2.6.31-15-generic Ro root =/dev/sdb1 ### Begin automagic kernels list # Lines between the automagic kernels list

How to modify network parameters such as IP address, netmask, and gateway in Linux

In Linux, modify the IP address, DNS, and route command line to set the IP address in the Ubuntu command line.CAT/etc/Network/interfaces # This file describes the network interfaces available on your system # And how to activate them. For more

Common Linux Server commands

# Uname-A # view kernel/operating system/CPU Information# Head-N 1/etc/issue # view the operating system version# Cat/proc/cpuinfo # view CPU Information# Hostname # view the computer name# Lspci-TV # list all PCI devices# Lsusb-TV # list all USB

Linux graphics card Driver Installation

gtk

Directory:(1) hardware configuration problems:(2) the simplest method for installing the latest official driver for ATI or NVIDIA graphics cards:(3) What if the black screen of the computer is restarted after the video card is installed?(4) When a

Details about the crontab command of the task scheduler in Linux

Name: crontab  Permission: All Users  Usage:  Crontab [-u user] FileCrontab [-u user] {-L |-r |-e}  Note:Crontab is used to allow users to execute programs at a fixed time or interval. In other words, it is similar to the user's time table. -U user

Obtain and modify the two functions of the Gateway in Linux.

// Get the Gateway Qstring getgateway () { file * FP; char Buf [512]; char cmd [128]; char gateway [30]; char * TMP; strcpy (CMD, "IP Route "); fp = popen (CMD, "R"); If (null = FP) { perror ("popen error"); return ""; } while (fgets (BUF,

Function for obtaining the MAC address of a local machine in Linux

// Obtain the MAC address function of the Local MachineQstring getlocalmac () { int sock_mac; struct ifreq ifr_mac; char mac_addr [30]; sock_mac = socket (af_inet, sock_stream, 0); If (sock_mac =-1) { perror ("create socket Falise... MAC/N ");

Linux running-level init

Author: Chinese What are the steps required to start Linux? This article describes in detail the roles of different running levels in startup. Linux seems to be a monster for advanced users on the DOS/Win9x/NT platform. No Config. sys, without

Who is switching our processes in Linux?

When running a Linux server, we often need to know who is performing process switching and what causes process switching. Because process switching costs a lot, I will give a number from the lmbench test:Context switching-times in

Tune TCP time Wait interval for High-load environments (HP-UX, Linux, Solaris, Windows)

Re: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp? Topic=%2fcom.ibm.websphere.edge.doc%2fedge%2fcp%2fadmingd45.htm The TCP time Wait interval specifies the length of time that a socket waitsfor a FIN packet from the sender before

Linux versions (to be continued)

RedHat, Suse, And Turbo Linux have obtained many database server certifications; Ubuntu is developed based on Debian and seems to have the best hardware support. (Verification is required. The individual's conclusions are obtained by searching

Linux System Performance Tuning

Level: elementary Deng yanjun (deng.yanjun@163.com), graduate student, Institute of software engineering, Xi'an University of Electronic Science and Technology September 09, 2002 This article describes in detail how to tune Linux system

Partition swap prohibited in Linux

The computer uses memory to store temporary data. However, due to limited memory capacity, a temporary storage space needs to be opened on the hard disk, which is the swap partition. Swap partitions are also annoying. Hard Disks are much slower than

Number of file handles in Linux

When deploying applications in Linux, sometimes the socket/file: Can't open so many files problem occurs. In fact, Linux has file handle restrictions (like WINXP ?), In addition, the default value is not very high, generally 1024. As a production

Linux Kernel list & hlist explanation

Full text download:Linux listlistlist&hlistunread.pdf directory 1. preface 22. general macros 22.1. typeof22.1.1. define 32.1.2. usage 32.1.3. example 32.2. offset_of32.2.1. define 32.2.2. role 32.2.3. principle 32.2.4. example 32.3. container_of42.3

Example of creating an executable shared library on Linux

Bytes. X. CPP file content: # include # include // use C ++ as the compiler void Woo () {printf ("Woo/N");} // Foo as the entry to the shared library, must be the C function extern "C" Foo () {printf ("foo/N"); exit (0); // This must be called,

Total Pages: 5467 1 .... 3537 3538 3539 3540 3541 .... 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.