Linux Command notes

Source: Internet
Author: User
Linux Command notes-general Linux technology-Linux technology and application information. For more information, see the following section. #
% S/\ [. * \] // g delete all the items between [and]
#
Z RETURN
Z.
Z-
Set the current row as the head, center, and end
#
Sudo mkfs. ext3-B 4096-I 8192/dev/hda6
Sudo tune2fs-l/dev/hda6

#
Find.-type f-print | xargs grep note; find the file with the file name and note in all folders
The xargs and-exec functions the same.
#
Find ~ -Newer "/etc/passwd"-print0 | xargs-0 ls


Besides, newer compares last modification time by default?
#
Find/-name not *
Find.-name "te *" | cpio-pud download; p copies from the pipeline, d creates a directory when necessary, and u copies unconditionally
#
Du-s * | sort-rn
Du-hms * | sort-rn
Df | awk '{print $5 "\ t" $6}'; the last one is five or six columns.
Date | awk '{printf "% s @ % s-% s', $4, $6, $2, $3}'; same usage as print
#
Find/-xdev-name core-atime + 3-print search for unused core files within three days
Find/-local-name core-exec rm-f {}';'
Find./-type f-exec grep modification {} '; find modification in the file and output this line in the file
#
Ps-ef | grep vim; find vim-related processes
Kill-9 pid kills a process
#
Cp-p Reserved attributes
#
Search for multiple keywords
Grep find mycommond | grep type; find a row with the find and type in mycommond.
Egrep '(find | type)' mycommond; same as the above function

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.