Linux can use the LL command to determine the file type, mainly based on the first character of each line to judge.
-rw-r-r-"-" The beginning of all is ordinary documents;
drw-r-r-"D" begins with a directory file;
brw-r-r-"B" is a file that
1, Linux overview
Linux is a free and open source Unix-like operating system. Strictly speaking, the term Linux only represents the operating system kernel itself, but usually uses the Linux kernel to express that meaning. Linux is often used to
Prompt:
[Root@localhost ~]#
[Login user name @ Host name current directory] Prompt
~ Home Directory/root/home/aa
Prompt: # Super User $ normal user
Format of a Linux command 1, command [options] [parameters]
LS list shows the contents of the
1, motherboard information. To view the serial number of the motherboard--------------------------------------------------#使用命令 Dmidecode | Grep-i ' serial number ' #查看板卡信息 Cat/proc/pci-------------... 1, motherboard information. View the
Problem:
When you use Linux to send mail, sometimes you want to send HTML-formatted mail, if you find the HTML message sent, but the contents of the mailbox received or pure TXT format.
Reason:
Linux uses the Mail function to send the header
1. The overall difference:
A process is the basic unit that serves and allocates system resources, and threads are the basic units of tasks executing, smaller than processes.
Threads can be understood as lightweight processes, which means that
Main function
int Openport (char *dev)//Open serial port
int setport (int fd, int baud,int databits,int stopbits,int parity)//Set serial port, baud rate, data bit, stop bit, checksum
int readport (int fd,char *buf,int len,int maxwaittime)/read data,
First , prepare before upgrading
1. Nginx The configuration file nginx.conf do backup;
2. Create a new directory/root/nginx, upload the installation package and script to the directory;
second, smooth upgrade Nginx
1. Start compiling the
First, install Tomcat
1. Download Tomcat installation package apache-tomcat-7.0.62.tar.gz and jdk1.7
2. Install Tomcat, copy the apache-tomcat-7.0.62.tar.gz to the directory/usr/local/tomcat after the decompression;
3. Configure Tomcat
Configure
Another: To achieve some Linux with the same function of the command, (for example: to achieve in Linux query CPU occupancy rate, Linux command is top), you can refer to the command (top) of the Linux source code,
Transferred from
Ps-ef|grep tomcat/View Process
RM-RF tcar* Removal
Mv.. /tcar.war./Mobile
Kill-9 25383 kills the process
CTRL + C to end the current command
PWD View current path
/******************************************/
Dir View current
The first is the command to query the entire disk capacity.
You are not unfamiliar with DF, you can see the approximate occupancy.
[Root@slave2 ~]# DF
filesystem 1k-blocks Used Available use% mounted on
/dev/xvda1 41151808 7119776 31918600 19%
For me, Ubuntu's Live CD is good enough, but it's too bulky. I need a small Linux Live CD. Mention live CD can not mention Knoppix, this is made by the German Klaus Knopper version, but today I want to introduce a small damn Small Linux, size is
Linux excutable in the implementation of the default is to search the/lib and/usr/lib directories, and then according to the ld.so.conf inside the configuration search absolute path, linux default is not in the current directory search dynamic
"1" Reference: http://pydev.org/index.html
Recently installed in the ubuntu12.4 devpy plug-ins, encountered installation errors, the last found to be a plugin problem, we recommend that you use the following URL installation
Configuring Samba is a simple thing to do, but Linux is like this, and if it goes well, everything is fine. But if not smooth, then a variety of inexplicable situation. Very flying blind, after all, the Linux great God belongs to the rare
1 Open Gateway 1.1 problem descriptionAfter each reboot of the virtual machine, you need to use ifup eth0 to manually turn on the gateway, otherwise the acquired IP address is loopback 127.0.0.11.2 SolutionsModify the Onboot property in Ifcfg-eth0
Start by borrowing a diagram to illustrate the relationship between Linux applications and the kernel! [] (http://i2.51cto.com/images/blog/201807/28/ce7cdc22c42c5b93bd5604c0ba1878db.png?x-oss-process=image/
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