Java code ------------- grep: multi-file search text ----------------- grep & amp; #39; 123 & amp; #39; * search for all files in the current directory that contain 123 grep & amp; #39; 123 & amp; #39; aaa. log to find the string 123ww in a file...
Java code ------------- grep: multi-file search text --------------- grep '000000' * find all files in the current directory that contain 123 of grep '000000' aaa. log to query the string 123 www.2cto.com ---------- more: view the text -----------------------
More filename use more to open the file shift + g to the end of the file u flip up half page d flip down half page/123456: search down the string 123456 and then press n to continue searching? 123456: Search for the string 123456 up and then press n to continue searching for more-s filename // page-by-page display of text B pages up www.2cto.com space pages down more + 20 testfile ---------------- vi: text editor ------------------------------ vi abc.txt create (or open) a file in the vi editor n + 1 back to the first line shift + g to the last line (G) I: edit a before the cursor: start editing after the cursor: w save the file but do not exit vi: q! Do not save the file, force exit vi ------------------ other --------------------- tail aaa.txt-1000f monitor the last 1000 rows of sed's/NULL // g' filename> filename. bak sed command: replace NULL in file with space -------------------- system operation --------------------------- ls www.2cto.com cd pwd display current path ps View process kill killing process Ctrl + z pending process mkdir New folder rm delete file rm-f filename force delete without prompting rmdir delete folder cut segmented display text cp copy file mv move less view file content df check disk space du check directory space lay down du-sh www.2cto.com cat View text file content set-o emacs ------------------ other two --------------------- cat connects the archive string and transmits it to the basic output find. -name "123.txt" search for the file whereis named" 123.txt" in the current directory and subdirectory to find the absolute path of the file zheyiw
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