If you are still studying the pain of compiling a cross-compilation tool in Linux, I am now free of your troubles!
Let's talk about how to use GDB:
Generally, assume that after entering a folder, there is a CProgram: C1.c, compilation: gcc-O C1 c1.
The system has been reinstalled recently, and many software has to be reinstalled, which is very troublesome. I decided to record the installation process and hope to help you. If you have any questions, please leave me a message.
1 download
PS
Syntax: PS [Options] [-- help]
Views: displays the dynamics of the instantaneous process.
Parameters: (common)-W display widening can display more information
-L displays the process execution priority.-A: List all trips.-U: displays all
In Linux and UNIX environments, source code installation is the most common software installation method. In addition to the source code, it also provides binary installation packages of various distributions (such as RPM packages based on Redhat
Next class in Linux
Solutions to Common Errors
CompileSource codeThe following errors often occur:/Usr/bin/ld: cannot find-libutempterWhat is more common is/Usr/bin/ld: cannot find-l ***The stars below indicate a type of incorrect name. The cause
1) switch to the root user (SU ).
2) Add the write permission for the file. That is, enter the command "chmod U + w/etc/sudoers ".
3) edit the/etc/sudoers file. That is, enter the command "VI/etc/sudoers", enter "I" to enter the editing mode,
Root User
[Root @ localhost/] # cd/dev
View your optical drive type
[Root @ localhost Dev] # ls CDROM-lLrwxrwxrwx 1 Root 3 2009-05-25 CDROM-> HDC
[Root @ localhost ~] # Cd/Media/CDROM[Root @ localhost CDROM] # ls
Nothing to see
Now that you
Before the festival, I bought a netbook-shenzhou's elegant q130b, which is specially used for Linux installation. The selected system is called the most gorgeous opensuse 11.0, and the desktop system gnome.
It seems that Linux has not been
First, download the software. Search for a version named 11forlinux on thunder and find it. The download speed is about 62 mb. My network speed is very fast. Go to the Linux environment and decompress it.
The file is as follows:
[Root @ btazuo dddd]
First download a grubfordos, from here it is, http://download.csdn.net/source/1326121
Very small, just around K, directly placed in disk C, then, open disk C, in the folder option, open the system hidden option, the system protection file is also
TopCommands are commonly used in LinuxPerformance AnalysisTool to display the resource usage of each process in the system in real time, similarWindowsOfTask Manager. The following describes how to use it.
Top-01:06:48 up :22, 1User, Load average: 0.
CTRL + a switch to the command lineThis operation has the same result as home, but home cannot be used in some UNIX environments, so this combination can be used. Vim in Linux is also effective. In addition, this is also effective in many file
OS: Oracle-Enterprise-R5-U2-Server-i386
ORACLE: linux_x86_11gr1_database
In Windows, when running SQL * Plus in the doscommand window, you can use the up and down keys to skip the previously executed SQL statements. you can modify them as needed
Ln
Syntax: ln [-S] [source file] [target file]
Note: Create a symbolic or hard link.
Parameters:
-S: Provides symbolic links. Hard links are used by default.
Example:
0. Original information:
$Ll-RW-r -- 1 Root 13476 Jun 26 :31 passwd1. Hard link
1. Find
Find is the most common and powerful search command. You can use it to find any file you want.
The format of find is as follows:
$ Find
-: the directory to be searched and all its subdirectories. The current directory is used by default.
General makefile templates for Linux
# The following variables can be specified in the shell environment variables.# It can also be specified in makefile as follows.# Cc = GCC # Compiler# Cflags =-wall-werror-G # compiler Parameters# LD = GCC #
Linux vs. Windows: this is a topic that is often discussed on the Internet. We are always eager to hear and enjoy it. Have you ever wondered whether you are wandering between Linux and Windows, and those who really want to make a good fortune in the
1: Linux thread Introduction
If you only need to terminate a thread without terminating the entire process, there are three methods:Return from the thread function. This method is not applicable to the main thread. Return from the main function is
When learning the Linux driver, a macro is called container_of.This macro is defined in include/Linux/kernel. H. First, paste its code:1. 439 /**2. 440 * container_of-cast a member of a structure out to the Containing Structure3. 441 * @ PTR: the
1: message receiving end
# Include # include # include # include # include # include # include # include # include # include # define max_text 512 struct my_msg_st {int my_msg_type; char msg_text [max_text] ;};# define msg_file
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