Generally, the system starts/sbin/init first, but you can also specify init = by using the startup parameter. For example, my system is developed as init =/linuxrc, because the file system uses busybox, and linuxrc. it is also a file pointing to
PS-Ef | grep tomcat/view Process
Rm-RF tcar * Removal
MV ../tcar. War./move
Kill-9 25383 kill the process
CTRL + C to end the current command
PWD view current path
/*************************************** ***/Dir View Current Directory
Ls
Block devices can be randomly accessed, that is, they can jump from one location to another at will when accessing the device.
The smallest addressable unit in a block device is the sector, and the size of the sector is the physical attribute of
I have been using Linux for a while. Sometimes I want to see commands such as LS, cat, and more.Source codeThe downloaded kernel source code was not found using cscope. I searched the internet and summarized the method as follows:
Take the LS
Search for the string "password" in the. c file in the current directory"Grep "password" *. c
Find the file test. C in the current directory and its multiple subdirectories.Find.-Name "test. c"-print
Find and delete the. vbs file in the current
1. Create a directoryMkdir-P test/sub
2. Write hello. C and hello. h under sub /./***** Hello. c *****/# Include # Include "Hello. h"Void Hello (){Printf ("hello! /N ");} /***** Hello. h *****/# Include Void Hello ();
3. Compile the
A simple driverNext we will write the first driver, which is very simple and will output the 'hello world' message at runtime.
// Hello. c# Include # Include # Include Static int _ init hello_init (void){Printk (kern_alert "Hello world! /N "
Two important struct cdev and file_operations are involved here. The former is the descriptive character device, and the latter is the entry point of the device driver.
For the description of the member with file_operations, please refer to the
[Regularly start your Linux program]**************************************** *****************Minimum model example:Your program:VI hello. Sh1 #! /Bin/sh23 Echo "Hello World"4Your task:Crontab-e00 15 18 10 * mail HFX
OK!Your Sh script will be
System
# Uname-A # view kernel/OS/CPU information # Head-N 1/etc/issue # view OS version # Cat/proc/cpuinfo # view CPU information # hostname # view computer name # lspci-TV # list all PCI devices # lsusb-TV # list all USB devices # lsmod # list
Reprinted from: http://blogread.cn/it/article/6209
System
# Uname-A # view kernel/OS/CPU information # Head-N 1/etc/issue # view OS version # Cat/proc/cpuinfo # view CPU information # hostname # view computer name # lspci-TV # list all PCI
1. Download JDK1. log on to the Sun JDK official download URL: http://java.sun.com/javase/downloads/index.jsp
2. Download The jdk1.6.0 _ 35-linux-i586-rpm.bin file.
Ii. Install JDK1. added the executable permission for the jdk1.6.0 _
I first came into contact with the device driver model when I was studying MMC/SD/sdio last year, but I was confused when I was reading books all day, in the end, this part of knowledge is not well organized. Now I am again exposed to this part of
Introduction to Linux Programming
Process Creation in Linux
Process Concept
What is a program and a process? In general, a program is a file that contains executable code and is a static file. A process is an instance of a program that has started
As we all know, Linux software depends on a specific library when running, and some software can only run with a specific version of a certain library. However, different libraries and different versions of the same library often have mutex
When mini2440 is started, it is generally better to have a CRC error and restart it again. If it is not good, try again several times. In this way, you can eliminate the problem that the nandflash file has an error code, but what problems may lead
Directory:(1) hardware configuration problems:(2) the simplest method for installing the latest official driver for ATI or NVIDIA graphics cards:(3) What if the black screen of the computer is restarted after the video card is installed?(4) When a
// Obtain the MAC address function of the Local MachineQstring getlocalmac () { int sock_mac; struct ifreq ifr_mac; char mac_addr [30]; sock_mac = socket (af_inet, sock_stream, 0); If (sock_mac =-1) { perror ("create socket Falise... MAC/N ");
I am using Ubuntu 8.04. I am not going to talk about Xorg here. conf: how to modify the driver and how to install it. In fact, many of them have been automatically set for you in Ubuntu, but I just want to explain some novel discoveries.
I thought
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