EXEC and Xargs screen curl

Source: Internet
Author: User
Tags custom name

Xargs used in bulk operations behind pipe symbols
Find. -mtime +10 |xargs RM-RF
ls-d./ |xargs-n1-i{} mv {} {}_bak
Both exec and find use
Find files with the current directory creation time greater than 10 days and delete: Find. -mtime +10-exec RM-RF
Batch Change file name: Find./
-exec mv {} {}_bak
Xargs can turn multiple lines into a row of cat 1.txt|xargs

Screen is the equivalent of a virtual terminal, which does not exit due to network interruption, each login can enter the screen
How to use: Directly enter the screen command
Screen-ls View the screen that is already open
Ctrl +a then press D to exit the screen session, just exit, and not end. End words Enter Ctrl +d or enter exit
After exiting, you also want to log in to a screen session again, using Sreen-r Screenid if there is only one screen direct screen-r
Screen-s aming; login words screen-r aming

Curl is a tool for simple testing of Web Access under the Linux system command line, with a few common options you need to master
Curl-xip:port www.baidu.com #-X can specify IP and port, omit write hosts, convenient and practical
Curl-iv http://www.qq.com #-I can drop the content of the access, only show the status code,-V can show the detailed process
Curl-u User:password http://123.com #-u can specify user name and password
Curl Http://study.lishiming.net/index.html-O #可以下载
You can also use the-O custom name
Curl-o index2.html http://study.lishiming.net/index.html

EXEC and Xargs screen curl

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.