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
Obtain hard disk space:
# Include # include ... { struct statfs Buf; long lfreespacesize; /*********************************** * ************* * enought space on flash for update application? ************************************ * *********
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/
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
/** 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
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
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
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
(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
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
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$
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
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
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'
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
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
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
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
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