Linux programming-getting hard disk space

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

Review Linux driver basics Hello World

Linux driver manual loading insmod manual uninstall rmmod Test Environment fedora10   Linux Device Driver Version 3:   /*************************************** ******/ Hello. c   # Include # Include Module_license ("dual BSD/GPL ")

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/

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

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

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 (

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,

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

Run kill to terminate the PS search process in Linux.

First, we need to use another ps command in Linux to find the process-related PID Number: PS aux | grep program_filter_word Ps a shows all programs under the current terminal, including those of other users.PS-A shows all programs.When listing

Linux Kernel upgrade

Linux Kernel upgrade   An important feature of Linux is its open source code. Any software engineer in the world can add code that he thinks is excellent, one obvious benefit of this is the fast fixing of Linux vulnerabilities and the use of the

You must know about Linux.

Suddenly, from the Windows world to the Linux World, it may be a little uncomfortable at the beginning. Slowly, you may find that Linux is profound and profound, and most importantly, many things in the Linux World are free license, next, let's list

Log system migration from windows to Linux Server

Use Yum install Java Yum install JDK The Java environment is installed. Use a text editor to write a Java program for verification and save it in the/search/bin directory. File Name: helloworld. java. Enter the following content:Public class

Linux operating system running level

Linux OS classifies the operating environment into the following seven levels: 0: boot (please do not switch to this level)1: text interface in Single User Mode2: multi-user text interface, does not have the Network File System (NFS) Function3:

Install and configure snort in Linux

In Linux, Snort is a free lightweight network intrusion detection system based on Libpcap. It supports cross-System Platform operations and comes with a lightweight intrusion detection tool that can be used to monitor small TCP/IP networks. During

Linux hard disk detection tool

From: http://hi.baidu.com/dog_freedom/blog/item/94744f1337026c59f819b843.html Smartmontools for SCSI hard drive: http://smartmontools.sourceforge.net/smartmontools_scsi.html Smartctl command parameter list: The following options are currently

Concepts of learning Linux clusters by cainiao

I learned the application of the Cluster two days ago. To sum it up, the cluster is not very difficult to understand. As long as I master its principles, it is not very difficult to implement it. Next, let's take a simple look at the

Introduction: Linux boot process analysis (III)

 Now that we understand the functions of these files and directories, let's look back at the flowchart: 1. linux boot starts from post power-on self-check. When the self-check is completed, read the first 0th bytes in the first 446 heads of the

Create your own exclusive Linux (1): quickly create a small Linux

# Show your mercy... If you step on me, please tell me the reason. (2) You just sent it up for 10 times in the morning... # Build your own dedicated Linux (2) link http://blog.csdn.net/deansrk/article/details/6664558 It's almost a month since I

Total Pages: 5467 1 .... 5277 5278 5279 5280 5281 .... 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.