In Linux, we often use USB flash drives and SD card mounting. It is very difficult to manually mount or detach each time. We can use the following methods to automatically mount or detach USB flash drives and SD cards.
1. Add the following
In addition to the locate command, the query command in Linux also has the find
The find command is more accurate than the locate command in the current directory.
------------------------------
1. Search in the current directory
# Include # Include
Int get_self_path (char * Buf, int buf_len)
{Int ret = readlink ("/proc/self/EXE", Buf, buf_len );If (-1 = RET) goto fail_exit;If (Ret> = buf_len) goto fail_exit;
/* Readlink only copies the content of the soft link
How can we reasonably divide Ubuntu into multiple zones? Previously, Linux was installed with automatic disk allocation {Function onclick (){
}} "Onmouseover =" function onmouseover (){Function onmouseover (){If (typeof (showtitle )! =
1. Do not "Play with Linux"
Many people may feel confused when using Linux. which release should I use? Is it because I have not installed anything? How can I upgrade it so quickly! Why is it so unstable! He wants to try new software whenever he
Linux processes the kernel program and the above-based user program separately and runs in the user State and core state respectively. Taking the 32-bit X86 architecture as an example, the virtual space is 4 GB in total, the high address 1 GB is the
Currently, Linux software engineers can be divided into two levels:
(1) Application Software Engineer ):
Mainly uses C library functions and Linux APIs to write application software;
For development in this area, you need to learn about the
File_operations cannot be discarded. It is the basic structure of character devices,Various device models or bus, but character devices are packaged.
The driver must be a kernel module. The kernel module may not be a driver.
The original
Concurrent competing states (semaphores and spin locks)
Code transfer to concurrent competition control
An example of competition caused by concurrent processes
The character drivers mentioned above are not considering the concurrency status.
The input device (such as buttons, keyboards, touch screens, mouse, and buzzer) is a typical character device. Its general working mechanism is that the underlying layer is the buttons, when a touch or other action occurs, an interrupt occurs (or
# Include # Include # Include
Struct timeval tvpre, tvafter;Gettimeofday (& tvpre, null );Sleep (3); // This is Linux programming. This sleep is in seconds.Gettimeofday (& tvafter, null ); Ast_log (log_notice, "prepaid_staff_log: Test spend time
Step by step to build an embedded Linux system platform --
Let's take a look at some of the articles I wrote earlier...
In order to meet the requirements of the embedded system operating platform in terms of performance, cost, and reliability,
U disk to start Linux1. Install grub to the USB flash drive1. Use the fdisk tool provided by Linux to format the USB flash disk as the boot disk.1), => fdisk-l view the mount point of the USB flash diskMy USB flash drive is mounted to/dev/SDC, And
Create Linux boot U disk this entry was posted by admin "href =" http://linuxstartu.jiaogen.com/author/admin/ "> Admin
Friday, 9 then l, 2010
I use RedHat As5 32 bit. The approximate steps are as follows:
1. Insert a USB flash drive into the Linux
Create ISO and burn ISO in Linux
1. Background:It is often used to create an ISO backup and burn it to the CD storage. It is very convenient in Windows: tool Dua! Such as ultraiso and Nero. But today weDay is about how to do this in
I remember sorting out a list of commonly used Linux commands, but I cannot find a list of common Linux commands. I can only make one more list;
As a developer, we may do some things when logging on to Linux: SVN update code, publishing applications,
Use [], &, | to determine
1. If judgment statement:
If [$ A = ""]; then
"Contents"
Elif [$ B = ""]; then
"Contents"
Else
"Contents"
Fi
Linux if command 1 string judge str1 = str2 when two strings have the same content, length is true str1!
"=" Is assigned a value. No spaces are left or right of the equal sign.
In VI # starts with description ,#! For special instructions
VI ~ /. Bashrc ------ open the bash configuration file
VI ~ /. Exrc --------- open the VI configuration file
Gcc-C
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