题目;
1:按照格式显示当前时间,并保存到指定文件中:
Command:date +%T | tee time.txt;
2:显示/etc/passwd文件的第15~18行内容:
Command: head /etc/passwd -n 18 | tail -n 4;
3:显示/bin目录中,包含大写大写字母的文件,保存到指定文件中,并统计行数:
Command: ls /bin/【【::upper】】 | tee bin_westos_file_txt | wc -l ;
4:在student用户下查找/etc/passwd ,屏蔽错误输出:
Command:find /etc/ -name passwd 2> file;
5:在student用户下查找/etc/passwd ,分别保存正确输出和错误输出到指定文件:
Command:find /etc/ -name passwd > tmp/westos.out 2> /tmp/westos.err;
6:4:在student用户下查找/etc/passwd ,保存所有输出到指定文件:
Command:find /etc/ -name passwd | tee /tmp/westos.all