4_linux

显示此命令的所有输出并保存输出到桌面上的任意文件中



4_linux_02

保存正确输出到/mnt/find.out.1中,屏蔽错误输出



4_linux_03

建立/mnt/find.all文件,并且保存所有输出到此文件中



[student@localhost /]$ find /etd -name passwd &>> /mnt/find.all

再次保存所有输出到/mnt/find.all中,并且保持源文件内容



4_运维_04

错误数出到/mnt/find.err



4_运维_05

保存正确数出到/mnt/find.out



4_运维_06

显示所有正确输出,屏蔽错误输出



4_linux_07

找到/usr/share/mime/packages/freedesktop.org.xml

中包含ich的行,并保存这些行到/root/lines中



[student@lacalhost ~] sed -i 's/ ^\ */vim/g' /root/lines

vim替换掉/root/lines中的空格,但要保持文件中原有的内容