The tenth chapter of "Android Deep Exploration" is about the debugging technology of Embedded Linux. For complex Linux drivers and libraries such as HAL, you need to test them in a variety of ways. The use of the PRINTK function is similar to the
1. Use sudo to prompt users not to resolve in the sudoers file
Switch to root user su root
View/etc/sudoers file permissions, if read-only, modify to writable permission[Email protected] ~]# ll/etc/sudoers[Email protected] ~]# chmod
1.linux Start-up phase(1) Initial stage: Bios->mbr->boot Loader->kernel(2) Kernel stage: Kernel->init process(3) Init Process->login2. File Management(1) Introduction to Paths and filesIn Linux, we use the LS command to display all files under the
1) Delete local time and set time zone to ShanghaiRm-rf/etc/localtimeLn-s/usr/share/zoneinfo/asia/shanghai/etc/localtime2) Set Timing timing synchronizationA. Yum-y install ntpdate NTP #安装ntpB. Setting a scheduled synchronization schedule taskXX * *
Comm CommandThe Comm command can be used for comparisons between two files, and it has some options for adjusting the output to perform intersection, differential, and differential set operations.• Intersection: Prints the rows that are common to
This chapter introduces the debugging techniques of embedded Linux, for example, setting breakpoints, stepping tracking code, outputting debugging information and so on. The PRINTK function is used to print kernel debug information, run in kernel
1. Cd:change Directory switch the current catalog to XXAfter the CD without any parameters, switch home directoryCD ~ Switch directly to home directoryCD-cut back and forth between the previous directory and the current directory2. Ls:list lists all
Three commands for viewing current users under Linux1,whoami;2,id-un;3,who-h can list all current name (user name) line (window list) time (opening times) COMMENT (directory hierarchy)(Note: Who displays the current online user, plus-h displays the
123456
/* This is my first C program*/#include intmain(){ printf("Hello World!\n"); return0;}
2. Compiling with GCCGCC hello_world.c-o hello_world//The Hello_world in the back is the file generated by compiling the
Under Linux, you can type the Vimtutor command with a vim tutorial that includes the actual operation.three command modes in 1.VI1) command (command) mode, for entering commands;2) Insert (insert) mode for inserting text;3) Visual (visual) mode,
PrefaceThe previous time in using the program to deal with the larger data, found that the original memory of their computer is not enough and often go to die, so think of the use of swap partition to expand the way memory. Now make a brief summary:
Ctags function: Scan the specified source file, identify the syntax elements contained therein, and record the relevant content found.Ctags can download the source code on the official website and compile the installation. Finally, the following
http://blog.csdn.net/kumu_linux/article/details/7877770A file descriptor is a simple integer that identifies each file and socket that is opened by the process. The first open file is 0, the second one is 1, and so on. UNIX operating systems
1) PS"Main Options"
-a displays information about all processes in the system
-e display information for all processes
-F Displays all information made
-l display process information in long format
-r displays only running processes
-u
A brief introduction to the multi-threaded API, the concept of a thread similar to a task or a function, the thread once created will run, the use of the method can be used under the Man command to view the Linux:pthread_t: Thread IDpthread_attr_t:
In Linux, how does one automatically configure the relevant environment when a terminal is opened?
Refer to blog"Linux Startup File and environment variable location"(Http://www.2cto.com/ OS /201305/208251.html)
You can select edit when the root
It's too late to be automated! Youyun teaches you how to create CentOS-based product images in four steps.
As Linux programs increase, the following problems often occur during software installation:
1. install systems and software in batches in
Test whether a website or IP port can be accessed in centos
Refer to this articleHow to test port connectivity in Linux
Linux host centos operating system, the project needs to access a URL path interface http://xxx.121.com.cn: 8081
Java.net.
View five common commands of the Linux System ArchitectureMany times, we need to check whether the current Linux system is 32-bit or 64-bit. In this article, I will recommend five common commands. Whether you are using a desktop version or a Linux
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