1, Find / greater than 1M and type etc directory of all files regular files
2, packing / etc / files for all conf end of the list below, compressed package name for the day time, and copied to the / usr / local / src directory backup .
-cvf the tar date +%F
.tar /etc/*.conf
CP 2020-03-22.tar / usr / local / the src
. 3, taken using the IPv4 address sed ifconfig command in the unit
4, delete / etc / fstab file to all # the beginning of the beginning of the line, followed by a blank character of the line behind at least # blank characters and
5, deal with / etc / fstab path, using the sed command remove its directory name and base name
linux operation and maintenance package sed to use file and text Three Musketeers
Guess you like
Origin blog.51cto.com/14671983/2480841
Recommended
Ranking