How to Get Linux system command source code [Zhuan]

I have been using Linux for a while. Sometimes I want to see commands such as LS, cat, and more.Source codeThe downloaded kernel source code was not found using cscope. I searched the internet and summarized the method as follows: Take the LS

Linux programming-getting hard disk space

Obtain hard disk space: # Include # include ... { struct statfs Buf; long lfreespacesize; /*********************************** * ************* * enought space on flash for update application? ************************************ * *********

Linux User Management/etc/group file details

Grouping users is a way to manage users and control access permissions in Linux. Each user belongs to a user group. A group can contain multiple users, and a user can belong to different groups. === Explanation/etc/group file === Command: More/etc/

Inter-process communication mechanism in Linux: FIFO (Named Pipe)

FIFO, Also knownNamed PipeIt is a mechanism for inter-process communication in Linux (UNIX environment) and is widely used.   FunctionMkfifoUsed to create a named pipe and use commandsMAN 3 mkfifoYou can view the function information. After a FIFO

A Simple Virtual Platform driver in Linux

/** Yao. guet* Http://blog.csdn.net/Yao_GUET* A Simple Virtual Platform driver in Linux*/ In Linux, if a device does not belong to any bus, you can register it as a virtual platform device. The following describes how to create a simple platform

Linux Kernel learning-character device driver Learning (2)

In Linux kernel learning-character device driver Learning (I), you need to manually create a device node. Can I automatically create a device node? Yes! You can use the class_create () and device_create () functions to automatically create

Programming in Linux-obtaining and setting netmask

// Obtain the subnet mask Function   Qstring getlocalnetmask () { int sock_netmask; char netmask_addr [50]; struct ifreq ifr_mask; struct sockaddr_in * net_mask; sock_netmask = socket (af_inet, sock_stream, 0); If (sock_netmask =-1) { perror (

Select in network programming in Linux

Select in network programming in Linux # Include # Include Int select (INT maxfdp1, fd_set * readset, fd_set * writeset, Fd_set * effectset, const struct timeval * timeout ); Return> 0: Number of ready descriptive words -1: Error 0: timeout Struct

Obtain and modify the IP address of the Local Machine in Linux.

// 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...

Synaptics touchpad setting dual-finger touch in Linux

I am using Ubuntu 8.04. I am not going to talk about Xorg here. conf: how to modify the driver and how to install it. In fact, many of them have been automatically set for you in Ubuntu, but I just want to explain some novel discoveries. I thought

Linux Network Interface literacy

(1) Name of the Network Interface There are no naming rules, but the definition of network interface names is generally meaningful. For example: Eth0: Abbreviation of Ethernet, which is generally used for Ethernet interfaces. Wifi0: Wi-Fi is a

Squid dos caused by Linux file descriptors

Reprinted: http://kerry.blog.51cto.com/172631/300757 (good blog) Squid dos caused by Linux file descriptors A squid dual-network proxy was set up on rhel4.8 for work a few days ago. At the beginning of the test, everything was normal, and then the

Linux's support for sparse (sparse) files

Create a sparse (sparse) File On the ext2/ext3 file system, you can use dd to create sparse files:$ Dd If =/dev/Zero of = FS. img bs = 1 m seek = 1024 COUNT = 00 + 0 records in0 + 0 records out$ LS-lH fs. img-RW-r -- 1 Zhigang 1.0g Feb 5 FS. img$

Getting started with Linux 7: File Viewing/editing

Because there are too many Linux commands, this involves only common ones.   Chapter 4 Introduction to File Viewing/editing1. Cat commandCreate cat> hello.txtChenweitangCTRL + dView a single cat hello.txtView multiple cat hello.txt ge.txtShow cat

Linux dual-nic binding (bonding) for load balancing or failover

The implementation of Dual-nic binding in Linux is as follows:Use two NICs to virtualize an EniThe aggregated device looks like a separate Ethernet interface device. Generally speaking, the two NICs have the same IP address and the parallel links

Linux Startup Process (/etc/inittab)

1. From BIOS to Kernel BiOS self-check-> MBR (grub)-> kernel self-decompression-> kernel initialization-> kernel startup BiOS self-checkWhen the computer is turned on, the computer enters the BIOS. BIOS is mainly used to detect whether the computer'

How to Set environment variables in Linux? env can be used to view all environment variables. What commands can be used to change them?

Export For example: Export $ home = $ home: your_dir Set displays the current shell variables, including the current user VariablesEnv displays the current user's variablesExport displays the shell variables currently exported as user

Install and configure tomcat in Linux

  Install and configure tomcat in Linux 1. download and install the corresponding JDK and configure the Java environment. Official Website: Http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html Download and compress

RedHat Linux 9 FTP installation and configuration)

1. Install the vsftpd ServerVsftpd is currently one of the best FTP server tools in Linux. Among them, VS is short for "very secure" (very secure). It can be seen that its biggest advantage is security. In addition, it also has the advantages of

How to append Netease image resources in Ubuntu Linux

Http://mirrors.cn99.com/.help/ubuntu.html Take precise (12.04) as an example. Edit the/etc/APT/sources. list file and add the following entries at the beginning of the file (back up the files before the operation) deb

Total Pages: 5467 1 .... 4826 4827 4828 4829 4830 .... 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.