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
Yes: Outputs a string of Y, which can sometimes be used to deal with many y/n selection applications. Output a lot...
Banner: Print the character title, that is, use the character to spell out a large word, it is best to maximize the
MBR, 512 bytes = 446 + 64 + 2 (446 bytes -- bootProgram64 bytes -- Partition Table 2 bytes -- aa55)MBR (Master Boot Record), which is a Chinese guide record.The first sector of the hard disk's 0 track is called MBR, Which is 512 bytes in size, and
Linux KernelCodeSeveral documents under Documentation/zh_cn are worth reading, especially for people who suffer from reading English. Thank you for your hard work!
Document Content
----------------------------
How howto participates in
To use the most commonly used mail function in Ubuntu, you need to install mailutils. The installation command is sudo apt-Get install mailutils. to use the function with attachments, you also need to install sharutils, installation command: sudo
An error is reported when the previous log message is modified:Dav request failed. It may be because the pre-revprop-change hook of the version library fails to be executed or does not exist. At least one attribute change failed. The version library
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
Linux TCP system parameter configuration
Here we apply centos5.3, and the kernel uses 2.6.18-128. el5pae #1 SMP. Some of the modifications to TCP are aimed at improving performance and load, but there is a risk of reducing stability. Some are
In Linux, it is estimated that you often use the PWD command, which is to print the current working path, that isPRINTWOrkingDIrectroy, today we also come to the C language to implement this command.To implement this function, you need to use the
Test in a virtual machine. 1. Modify the file/etc/inittab to edit the file inittab. Add the TTY: 2345: respawn:/sbin/agetty ttys0 9600 VT100 content: # vi/etc/inittab # Run Gettys in standard runlevels1: 2345: respawn:/sbin/mingetty tty12: 2345:
Linux GDB multi-thread independent debugging thread
Http://coolshell.cn/articles/3643.html
I. multi-thread debugging
Multi-threaded debugging may be the most frequently asked. In fact, the following commands are important:
Info thread to view the
1. Install jsvc
Http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.16/bin/apache-tomcat-6.0.16.tar.gz
Decompress and upload a jsvc.tar.gz file.
# Cd, USR, local, Apache, tomcat, 6.0, and bin# Tar xvfz jsvc.tar.gz# Cd jsvc-Src# Sh support/buildconf.
A few days ago, after the program occupied more than 20 GB of memory, it unexpectedly exited. To learn about the basic concept of memory, I Will repost an article:
A process (a program executed) occupies a certain amount of memory. It is used to
The computer has two fast hard disks. The original system is ubuntu. Now, we need to forcibly convert the hard disks under Windows 7 (for the reason, you know). Because ubuntu files want to be saved, so the data is transferred to one of the hard
Preface
This series of articles will combine the new energy-saving technologies that have been continuously added to various hardware (including the latest Bus Standards and peripherals such as CPU, chipset, and PCI Express) in recent years.
From
1. First modify the bootargs of the kernel and add the following content to the bootargs:
Printk. Time = yInitcall_debug
The modified bootargs is as follows:
Setenv bootargs "root =/dev/mtdblock2 rootfstype = yaffs2 init =/init console = ttysac2
The following program has been tested and proved to be available.
Bytes ----------------------------------------------------------------------------------------------------------
The POSIX Linux operating system does not provide a routine for thread
1. Double quotation marks: Echo *: output directory list, Echo "*": Output *.
Echo * | SED's // \ n/G': vertical line output (replace spaces with carriage return ).
Double quotation marks can be used to reference any character or string except the
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