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