These days I have a task about building a GUI for SFTP (one FTP software built ourselves ).
So I choose QT and learn to use it :)
First, download the tarball "qt-x11-opensource-src-4.5.1.tar.gz" & "qt-creator-1.1.0-src.zip"
Second, tar
The DF command is a commonly used command for viewing hard disk information. The main parameters are as follows:
DF-A: displays the disk usage of all file systems, including 0 block file systems.DF-I: displays the I node information, not the
To access Linux from windows, except samba, putty and securecrt are the most commonly used operations.
Putty is free, and securecrt is charged (of course, there is a cracked version ).The default putty configuration is very nice and easy to use.
Linux:
1 Single Kernel Mode
Linux is a single kernel mode, and externalProgramIn different memory address spaces, the program can only be accessed through the: System Call interface.
In Linux, the single kernel mode is
Method 1:
Command: uname-Purpose: view the system kernel version number and system name.
Method 2:
Command: CAT/proc/versionPurpose: view the version information under the directory "/proc", and obtain the kernel version number and system name
1. If you needProgramTransplant to other systems, such as arm-Linux, you need to install tool-chain
2. decompress the SDK
3./configure
4. If you need to port the file to arm-Linux, modify the MAKEFILE file. For example, Cc = arm-Linux-G ++ AR =
[Root @ Linux ~] # Sed [-nefr] [action]Parameters:-N: Use silent mode. In general SEDAllWill be listed on the screen. However, if the-n parameter is addedThe row (or action) specially processed by SED will be listed.-E: directly edit the SED action
Document directory
Functions that read one character at a time include:
Functions that read a row at a time include:
A function that writes one character at a time:
Function for writing a row at a time:
Formatted output is also written
Linux Process status analysisAs we all know, the current time-sharing operating system can run multiple programs on a single CPU, making these programs seem to be running at the same time. Linux is such an operating system.In Linux, each running
Linux supports QoS from kernel 2.1.105. However, you need to recompile the kernel. When running 'make config ',
Set experimental _ options to 'y', and set class based Queueing (CBQ), Token
Bucket flow, set traffic shapers to 'y', and run 'make Dep;
/**************************** Client. c ***********************************/
# Include # Include # Include # Include # Include # Include # Include
# Define Port 1234/* Listen port */# Define maxdatasalize 100
Int main (INT argc, char * argv []
Currently, the common methods for setting socket connection timeout for each platform are as follows:
Create a socket and set it to a non-blocking state.
Call connect to connect the peer host. If the connection fails, check whether errno is
Ln is LinuxA very important command. Its function is to create a synchronization link for a file in another location. The most common parameter of this command is-S. Its usage is as follows:
The target file-S of the Ln-S source file is
4. Source Code memory
You can use the info line command to view the address of the source code in the memory. Info line can be followed by "row number", "function name", "File Name: line number", and "File Name: function name ", this command prints
A real-time operating system is an operating system that ensures that specific functions are completed within a certain period of time. Its features are as follows:
1) timing accuracy of a high-precision timing system is an important factor
View CPU Information
# Cat/proc/cpuinfo
Note:
1. process starts counting from 0 and continues until the end. We can clearly see the number of CPUs on the machine. 2. Check whether the physical CPU is concerned with the physical id value. If the
In Linux, what is the difference between the content in the/dev/directory and that in the/proc/file devices? I'mWhen I did an experiment on the board, I found that when I loaded the driver module to the Board, there were changes in the devices file,
How Linux Manages device entities attached to a 4G bus space -- struct resource/usr/src/linux-2.6.21.5/include/Linux/ioport. h struct resource {resource_size_t start; resource_size_t end; const char * Name; unsigned long flags; struct resource *
7.6. Work queue
Working queues are, on the surface, similar to taskets; they allow kernel code to request calls to a function at a certain time in the future. However, there are several significant differences between the two, including:
The result
The function printk is similar to printf and used to print messages in the kernel. Printk classifies messages based on the log level. The log level is defined by Macro. The log level macro is expanded as a string. during compilation, the
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