in the Linux: On the signal in the blog post we wrote a mysleep, but in fact this function in the multi-threaded environment will be wrong, that is, our mysleep function is not reentrant function,Now re-examine the "mysleep" program and imagine the
The NL command is used in a Linux system to calculate the line number of a file. NL can automatically add a line number to the output file content! The default result is a bit different from Cat-n, NL can make the line number more display design,
When installing Nginx under Linux, it is common in the./configure phase to require the installation path to be set through prefix. Therefore, when you specify a different prefix in the./configure, you can install multiple nginx.It is worth noting
A simple Epoll demo that accepts multiple client connections and converts the received string to uppercase to return to the client1#include 2#include 3#include 4#include 5#include 6 #defineMaxLen 10247 #defineServ_port 80008 #defineMAX_OPEN_FD 10249
How the first section of the computer works http://www.cnblogs.com/July0207/p/5218597.htmlHow the second section of the operating system works http://www.cnblogs.com/July0207/p/5242103.htmlThe third section constructs a simple Linux system
Example 1: Create an empty directorymkdir testExample 2: Creating Multiple directories recursivelyMkdir-p/home/testExample 3: Create a directory with permissions of 777MKDIR-M 777 TestExample 4: Creating a new directory displays informationMkdir-v
Command format:ln [parameter] [source file or directory] [destination file or directory]Necessary parameters:-B Delete, overwrite previously established link-D allows super users to make hard links to directories-F Force Execution-I interactive mode,
First, the IOCTL functionThe IOCTL is used to control and configure commands to the device, and some commands also need to read and write some data, but the data cannot be read and written by Read/write, known as out-of-band data. That is,
1 . command format:Find Pathname-options [-print-exec-ok ...]2 . Command function:Used to locate files in the file tree and to make corresponding processing3 . Command parameters:The directory path that the Pathname:find command looks for. For
Example one:The contents of the Config_file file are as follows:
Sed removal Comment line: sed-i-c-e '/^#/d ' Config_file "deletes the specified file with comment lines"
Sed to remove empty line: Sed-i-c-e '/^$/d ' config_file "Delete
Problem Description:Disk 100% , after deleting large files, df-h found disk space not releasedWorkaround:The problem is that in Linux systems, deleting files via RM or File Manager will unlink the file system from the directory structure (unlink).
Let's look at an example:[Email protected] opt]#Ls-alThe Ls-al command is to list all files in the directory, including hidden files. The first character of the hidden file's file name is '. '-rw-r--r--1 root root bayi 08-02 14:54
The document is too much for force! Mistakenly deleted a few important documents, shaking and then secretly recovered, saved me!!!Http://jingyan.baidu.com/article/2f9b480d6c2bcd41cb6cc223.htmlNote several places:1) The last CD to the wrong delete
Each use of free is more confusing, for the above content is not very clear, today carefully check the following, and everyone to share the following:Let's look at the results of the free operation:Free print out the memory information is mainly
1. Switch directoriesIn Linux, one may operate in this file directory, one may go to another file directory to operate, this will need to use the directory switch, using the CD command.When it comes to directory switching, it involves path
Linux operation instructionsCtrl+alt+f3 into the text interfaceCTRL+ALT+F1 into the Desktop interfacemkdir Create File commandVI Edit File commandCD Switch Directory commandCd.. Return to Parent DirectoryLS View folder under File commandWq Saveq!
First, install VMwareStupid, next, done.Ii. creating a virtual machine system with VMware1. Double-click on VMware software, right "My Computer", select New folder:After being built, such as:2. Point file-Create a new virtual machine:The following
which can find the path where the command is located, then find can also,where/is the search from the root directory,-TYPEF is (find) the file type,-name "Cat" is the name of cat, in short, the command is to start from the root directory to search
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