linux operation and maintenance package sed to use file and text Three Musketeers

1, Find / greater than 1M and type etc directory of all files regular files
linux operation and maintenance package sed to use file and text Three Musketeers
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
linux operation and maintenance package sed to use file and text Three Musketeers
CP 2020-03-22.tar / usr / local / the src
linux operation and maintenance package sed to use file and text Three Musketeers
. 3, taken using the IPv4 address sed ifconfig command in the unit
linux operation and maintenance package sed to use file and text Three Musketeers
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
linux operation and maintenance package sed to use file and text Three Musketeers
linux operation and maintenance package sed to use file and text Three Musketeers
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