One, what is the Linux driver exactly what is a thing:1, actually the Linux drive and the common Linux API does not have the essential difference, only uses the Linux drive Way and uses the Linux API the way is different;2. The Linux system maps
Now that we've entered the actual combat phase, we've learned the complete process of developing and testing a Linux driver using an example of counting the number of words. The first Linux driver is a count of the number of words.Instead of
1, the Linux file attributes;
The properties of a Linux file or directory mainly include: The node of the file or directory, the type, the permission mode, the number of links, the users and user groups, the time of the most recent visit or
The simplest way to count the size (number of bits) of a directory is to enter the command in the console: DU-SB Directory Address implementing this function in C + + is achieved by recursively traversing files and subdirectories in the directory.
How to count the number of files in a directory and the commands for the total number of lines under Linux
The total number of files that know the specified suffix name command:
Find. -name "*.cpp" | Wc-l find
.-maxdepth 1-name "*.sh" |wc-lKnow
1. Df-lh
2. Du-s/usr/* | Sort-rn
This is sorted by byte
3. du-sh/usr/* | Sort-rn
This is sorted by megabytes (M)
4. Select 10 of the preceding
Du-s/usr/* | Sort-rn | Head
5. Select the following 10
Du-s/usr/* | Sort-rn | Tail
Du-h–-max-depth=0
How to query the number of files under Linux.
I'm going to ftp all the files from a directory in Linux to a Windows machine, and I want to know if the download is complete, I have to compare the size of the folder and the total number of files
whether a string is included in all files in the Linux lookup directoryFind if all files in the directory contain a stringFind. | Xargs Grep-ri "IBM"Finds all files in the directory that contain a string, and prints only the file nameFind. | Xargs
6th. First Linux driver: Count the number of wordsWhat the hell is a 6.1Linux drive?There is no essential difference between Linux drivers and normal Linux APIs, except that they are used in a different way than Linux.Linux-driven work and access is
Linux systems generally have 4 main parts:cores, shells, file systems, and Applications . The kernel, shell, and file systems together form a basic operating system structure that allows users to run programs, manage files, and use the system. Part
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.