Switch between graph mode and command line mode in Linux
This article describes how to switch between Linux mode and Linux Command Line mode, as well as how to switch between Linux mode.
In ubuntu 7.04, you can use CTRL + ALT + F2 to switch to the
Open a terminal, CD it to a directory, and enter "Python-M simplehttpserver" to share the content in the current directory, as shown below:
Long @ long-Ubuntu :~ $ CD videospace/long @ long-Ubuntu :~ /Videospace $ Python-M simplehttpserverserving
Makefile of the kernel module in Linux 2.6
Favorites
Makefile of the kernel module in Linux 2.6
# Makefile 2.6OBJ-M + = Hello. o
Kdir: =/lib/modules/$ (shell uname-R)/build# Pwd = $ (shell PWD)
ALL:Make-C $ (kdir) M = $ (PWD)
// Ifconf is usually used to save all interface information// If. hStruct ifconf{Int ifc_len;/* size of buffer */Union{Char * ifcu_buf;/* input from user-> kernel */Struct ifreq * ifcu_req;/* return from kernel-> User */} Ifc_ifcu;};# Define ifc_buf
View the machine name: uname-A modify the machine name: RedHat the first step to modify the Host Name:# Hostname oratestStep 2:Modify the hostname in/etc/sysconfig/NetworkStep 3:Modify the/etc/hosts fileSuSE Linux: Modify the/etc/hostname file and
Cursor control command
Command cursor Movement
H or ^ h move one character to the left
J or ^ n move down a row
K or ^ P move up a row
L or move one character to the right by Space
G move to the last row of the file
Ng moves to the nth line of the
1. From BIOS to Kernel
BiOS self-check-> MBR (grub)-> kernel self-decompression-> kernel initialization-> kernel startup
BiOS self-checkWhen the computer is turned on, the computer enters the BIOS. BIOS is mainly used to detect whether the computer'
1. pgrep command
Pgrep is a tool used to query processes by program names. It is generally used to determine whether a program is running. In server configuration and management, this tool is often used and simple and clear;
Usage:
# Ps parameter
RedHat Linux network configuration (directly modify the configuration file instead of setup)
To create a Linux server, you must first understand the meaning of the configuration files related to network services in the Linux environment and how to
Differences:(1) Linux is faster,Better security than Windows (2) There are many software that can only be run in windows, and the software compatible with Linux is under development.(3) Linux is applicable to the network.(4) Linux operations are
>: Output "correct data" to the specified file or device in a overwriting method.
1>: overwrite the correct data to the specified file or device.
1>: outputs "correct data" to a specified file or device in a cumulative manner.
2>: overwrite the
Original
Computing the bogomips value in Linux kernel learning
--------------------------------------------------------------------------------
Author: Cao LeiFor every Linux programmer, they share a common wish to understand the Linux kernel.
Is the UDP segment format:
Compared with the TCP segment format, UDP is much simpler and has nothing to say. Note that the UDP data length refers to the length of the payload plus the header.
Next we will analyze a UDP-based TFTP protocol
In the previous section, we introduced UNIX domain socket programming. More importantly, Unix domain sockets can transmit file descriptors between processes on the same host.
Here are two functions:
# Include # Include
Ssize_t sendmsg (INT sockfd,
1. What is socket?
A socket can be considered as a programming interface between a user process and the kernel network protocol stack.Socket can be used not only for inter-process communication on the local machine, but also for inter-process
Mutex lock for processing data of threads
Mutex lock
Mutex lock is used to ensure that only one thread is executing a piece of code within a period of time.The pthread_mutex_lock statement starts to lock with mutex lock. Subsequent code is locked
First, reference the ulk's explanation above:
The mm_users field stores the number of lightweight processes that share the mm_struct data structure (see the section "the clone (), fork (), and vfork () system CILS "in Chapter 3 ). the mm_count field
Http://blogold.chinaunix.net/u3/101649/showart.php? Id = 2073912
Original Blog content
In this article, I will introduce and summarize every step of learning embedded Linux. I would like to sum up my experience, and I hope it will be convenient for
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