sed command and disk management practice

Centos7 system /etc/grub2.cfg delete all files beginning with an empty white space of ⾏ ⾏ therefore especially white characters.
sed command and disk management practice

Delete the / etc / fstab files all begin with #, after ⾯ ⾄ less with ⾏ perform while the ⼀ empty white characters # and therefore especially the white space character.
sed command and disk management practice

In centos6 system /root/install.log per ⼀ ⾏ ⾏ therefore especially increased number #.
sed command and disk management practice

⾏ therefore especially not to perform while the # # sign at the beginning of the increase in / etc / fstab files in
sed command and disk management practice

Processing / etc / fstab path Use sed command and remove their names of Contents group names.
sed command and disk management practice

Using sed withdrawn IPv4 address Lee ifconfig command in the unit
sed command and disk management practice

Statistics /etc/init.d/functions number of occurrences of each word in the file, and sort (Using grep and sed two kinds Remedies were achieved)
sed command and disk management practice

Replace a file / etc / passwd in this root: x: 0: 0: root: / root: / bin / bash root for the second row of test? The third root for the test?
sed command and disk management practice

After the first line plus one blank line
sed command and disk management practice

After each line plus one blank line
sed command and disk management practice

View sda1 sda1 file system information is provided to mount the xfs file system
sed command and disk management practice

inode number of depletion leads to how troubleshooting
sed command and disk management practice

blkid View xfs ext4 file system type or other type uuid, etc.
sed command and disk management practice

Partitioning tool
sed command and disk management practice

2G ⼀ create a system of files, zoomed ⼩ block is 2048 bytes, may be reserved 1% Use space, the file system
ext4, label is TEST, the partition boot claim automatically mount ⾄ / test of Contents, and the default there acl mount
options
sed command and disk management practice

Extended testlv ⾄ 7G, requires archlinux Using household files can not be lost
sed command and disk management practice

Create a snapshot of testlv, and try to snapshot-based backup data validation snapshot function
sed command and disk management practice

Guess you like

Origin blog.51cto.com/14451139/2428532