Go to the root directory of the current user, Vi. bashrc, and add the following statement:
PS1 = '#' // For the root user
PS1 = '$' // for common users
In this way, only the prompt # Or $
You can also add other content in single quotes. The
The Assembly syntax in Linux should be GNU assembly (at&t assembly ). The followingArticleIntroduced at&t Assembly related knowledge:
X86 inline assembly in Linux:
Http://www.ibm.com/developerworks/cn/linux/sdk/assemble/inline/
Linux
The difference between environment variables and local variables is whether they are inherited. The following is an example of environment variables:
Exportfather parent process:
#! /Bin/sh # Father scriptecho "this is the father" file = "A Good
1. Common files
For example, to determine the/user/bin/file and/bin/date file types, run the following command:
# File/user/bin/file/bin/date
2. Directory files
Note: file names starting with "." indicate hidden files, which can be listed
I think there are even more people who have never heard of the zmodem protocol, not to mention convenient tools like RZ/Sz.
Good things are not exclusive. Here is a bit of my knowledge.
The following section is copied from the help of securecrt:
1. share files on Windows
First, share a folder on Windows, such as E: \ impo.
Create a directory/mnt/win145 on centos6.1 and mount the shared file to this directory.
# Mount-O username = administrator //
A half a month ago, I installed a Linux server for my company, and then I installed Oracle 10 GB and WebLogic 10 on it. I wanted to write the Weblogic installation process separately, but I installed it in text mode. Because I encountered a problem
Installation and configuration of Samba
Configuration process:
1. find/etc/samba/smb. in the conf configuration file, set workgroup = mygroup in the [Global] field. This is the global parameter defined. mygroup is the name of the Working Group under
1. Nic is not working properly
1) Use the lsmod command to determine whether the NIC is loaded
# Lsmod
2) if not loaded, use the dmesg command to determine whether hardware is detected.
# Dmesg
3) Use ifconfig to determine whether the network
Today, I learned how to write makefile in C language programming in Linux. This is just a simple example:
Assume that the following file is in the practice Directory: Main. c hello1.c hello2.c hello1.h hello2.h several program files, to compile and
// Transplant the linked list of Linux kernel (3.0.13) to Windows, and VS is compiled. // To be fully tested // to be added hlist
# Include # include # include /* transplant Linux implement */# define container_of (PTR, type, member) (type *) (\
Baidu Linux dnw can find a lot of download information. The download file contains two files, one is the dnw USB driver secbulk, and the other is the dnw application. The two files must be compiled separately.
The method used to compile secbulk is
After studying the kfifo code of kernel 2.6.26 today, I feel that the code can be implemented smartly. The subscript at the end of the queue header is not restricted by the length of the queue. Even if the subscript at the queue header is greater
Some string conversion functions provided in the Linux kernel:
LIB/vsprintf. c
[HTML]
View plaincopyprint?
1. Unsigned long simple_strtoull (const char * CP, char ** endp, unsigned int Base)
2. Unsigned long simple_strtoul (const char * CP,
If I installed a camera in Linux, I used to get it during Skype. However, I cannot use a camera to take pictures in Skype. So today I have to go over it. Record the general process.
First, install the kernel module corresponding to your camera. The
Install SSL first, compile and install Apache, and then configure the certificate.
1. Download Apache and OpenSSLWeb: http://www.apache.orgHttp://www.openssl.org2. Extract# Tar zxvf httpd-2.0.54.tar.gz# Tar zxvf openssl-0.9.7g.tar.gz3. Compile and
Author: Li Zhimin, Shanghai Center lecturer of Huaqing vision embedded College.
From the Linux kernel, a new driver management and registration mechanism is introduced: platform_device and platform_driver. Most device drivers in Linux can use this
--- Excerpt from laruence's private dish-
Http://linux-vbird.bluedata.org/linux_base/0320bash.htm#variable
Although
Http://blog.csdn.net/zhuying_linux/article/details/6633022
Http://blog.csdn.net/longxibendi/article/details/6125075
But the statement
Errors such as "undefined derefence" will be reported in the curl library in Linux, static library in GCC or G ++ static llink libcurl, therefore, you must pay attention to the selection of the compilation library during use (note the static
11. During each Linux Startup, The. bashrc file under the user's home directory will be executed. You can add some content to this file so that the corresponding content will be executed during each Linux Startup.If you remotely log on to 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