Linux wget command example
Wget is a useful GNU command line tool for downloading files from the Internet. The utility can use common protocols (such as HTTP, HTTPS, and FTP) to download files from the server. It runs in the background (non-interactive) and can be used for scripts and cron jobs. GNU Wget, which is written by HrvojeNik Shiji, is currently in TimR ühsen, Darshit Shah, and Giuseppe Scrivano.
official document can be viewed here.
Note: It is important to note that there is also a shared in the output of the Free-m command, but by looking at multiple hosts, this is 0, and then looking for data to confirm that the shared memory in the free command is obsolete and useless. Therefore, the view of shared memory cannot be confirmed by this item.
Iv. IPCS and Ipcrm
IPCs
IPCS is a tool for displaying the state of interprocess communication facilities under
Linux CD commands can be said to be the most basic Linux command statements, other command statements to operate, are based on the use of the CD command.So, learn Linux commonly used commands, first of all, learn how to use the CD command techniques.
1. Command format:CD [Directory name]
2. Command function:Toggle current directory to DirName
3. Common example
Original articles, reproduced please indicate reproduced the words and sources, thank you!This gives an example of a simple socket network programming under Linux, communicates with the TCP protocol, listens on the server, sends the data to the client after receiving the client's connection, and the client prints and closes after receiving the data. There are detailed instructions in the program, in which t
Transferred from: http://blog.csdn.net/kikilizhm/article/details/7858405This gives an example of a simple socket network programming under Linux, communicates with the TCP protocol, listens on the server, sends the data to the client after receiving the client's connection, and the client prints and closes after receiving the data. There are detailed instructions in the program, in which the specific struct
together by columns;
Cat File112
Cat File2ColinBook
Paste File1 file21 Colin2 bookThe default delimiter is a tab character, and you can use the-D to indicate the delimiterPaste File1 file2-d ","1,colin2,book
WC statistic line and character tools
Wc-l File//statistic line numberWc-w File//statistics number of wordsWc-c file//Statistics character count
Sed text replacement weapon
First place replacementSeg ' s/text/replace_text/' file//replace the first matching text of each lineGlobal sub
3 int, sirugo);Command line: insmod Xxx.ko a = 105. Symbol Export① if a function or global variable in a kernel module wants to be used by another module, it must be exported② kernel symbol export using macrosExport_symbol (symbol name)EXPORT_SYMBOL_GPL (symbol name)Note: Where EXPORT_SYMBOL_GPL can only be used for modules that contain GPL licenses6. Kernel Module Simple Example① Module Code:#include staticint hello_init () { PRINTK (kern_warni
directly after the '/extension_dir ' search, found after this may be:Extension_dir = "./"To be modified to:Extension_dir = "/var/www/php/lib/php/extensions/" (note where the so file is located)extension=openssl.so (so module file name)Last Save exit! : wq!Then you restart the Apache server! (there is said that people do not, but also a command, I think the configuration is good to restart or peace of mind!) )You can use the command to view the next PHP run load:/var/www/php/bin/php-m|grep OpenS
Linux If the firewall is just installed when we commonly used port is not added, that is, can not access, then how to add the common port to the firewall through the state, the following we take 80 port as an example. Recently I was learning Linux. Build a LNMP environment. Everything is fine during the test. Then restart Lin
0. PrefaceFrom the beginning of learning C language began to contact Makefile, consulted a lot of makefile information but always feel no real master makefile, if you write a makefile always feel very laborious. So deliberately using the blog to summarize the relevant knowledge of makefile, through examples to illustrate the specific use of makefile. The example says that makefile roughly divides into 4 parts 1. Only a single C file 2. Contains multi
Linux decompression syntax and example
We know that there are only two types of compressed files in windows, one is zipping and the other is .rar. However, Linux can be used in different regions in Linux, and there are too few users who use .zipand .rar in linux. In additio
Example of importing and exporting Common Data Pump in Windows Linux
Examples of importing and exporting Oracle databases in normal/Data Pump Mode in Windows/Linux Environments
Examples of importing and exporting Oracle databases in normal/Data Pump Mode in Windows/Linux Environments
1
There are various methods to beautify Linux terminal Display. here we will share a code example using the command line terminal interface of Python colorized Linux, including a simple method to execute Python programs in Linux, if you need a friend, refer to the following to see the effect:
In
the application to implement memory-mapped, application code such as the following: #include After the application implements the mapping, the output shared memory content is read first and then written. The shared memory content is then emptied and the shared memory is reset.After compiling the driver and application, insert the driver first. When the device node is created, the final execution of the application looks successful. For example, the
Linux I/O multiplexing
Linux everything is file, whether we are stored on the disk of character files, executable files or our access to the computer's I/O devices are abstracted into a file, such as the standard input device defaults to the keyboard, we operate in the standard input device, In fact, the operation is the default open a file descriptor is 0 of the file, and all software operation hardware n
released, but as the form of the cache, to facilitate the next tune-up. This performance should be enhanced, but as I don't need it today, I can only release him:To perform the operation:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5C/93/wKioL1Ud-EbCZFD8AAEFDJ8eOFA529.jpg "title=" Free2.png "alt=" Wkiol1ud-ebczfd8aaefdj8eofa529.jpg "/>After the execution of the command we can change the echo 0 back.You can see that a lot of memory has been freed up.Summary: We often encounter this
Reprint: http://www.cnblogs.com/aLittleBitCool/archive/2011/10/18/2216646.htmlAsynchronous Io, a very interesting thing, from the interface, the package is more powerful, there is time to study the internal implementation, you can consider alternative select in the project.Libaio is an asynchronous non-blocking interface under Linux that provides a way to read and write files in an asynchronous, non-blocking manner, with high read and write efficiency
file test1 (the control scope of the directory permissions), but can not edit it (file Permissions control range). That should be swollen to do, or can not complete the collaborative work AH. Then we set the file permissions to 777 , so that the file for anyone can be read, writable, editable, plus the control of directory permissions, no, no problem. There is also a way to change the file groups they create microsoft so that they can work together, which seems to be a realistic approach. Howev
This article describes how to use Python to call the system Shell in Linux, including reading a row of files using Python and shell, for more information about how to mount a file system, you must directly call the Shell command to complete some simple operations. So how can we use Python to call Linux Shell commands? The following describes several common methods:
1. OS module
1.1. exec method family of O
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