
本文共 3188 字,大约阅读时间需要 10 分钟。
Linux���������������������������������������
Linux���������������������������������������������������������������������������������������������������������������������������������������������������File Descriptor, FD���������������������������������������������������������������������������������������������������������������������������������
���������������������
������������������������������������������������������������������������������������������������������������������������������������
������cat /proc/PID/fd
���������������������������������������������������������������������0123���������������������������������������������������������������������������������������
������������������������
������������������������������������������������������������������������������������������������������������������������������������������������������������
���������������������������������
date > date.txt
������������������������date.txt
������������
���������������������������������������������
yum install httpd > /dev/null
������������������������������������������������������������������������&
������������stdout
���stderr
������������������������>
���������������������������stdout
���
������������������������������
mail -s "������������" alice < word.txt
���������������������������������word.txt
���������������������������&>
���������stderr
���������������/dev/null
������������������������
��������������������� chaining
���������Piping������Linux������������������������������������������������������������������������������������������������
pipe���������������
���������������������������������������������������������������������������������������������������������
���������������������������
cat /etc/passwd | tail -3
������������/etc/passwd
���������������������������
���������������������
ps aux | grep 'sshd'
������������������������sshd
���������������������������������
������������������������
cat /etc/passwd | tee user.txt | tail -5
������������/etc/passwd
���������������������user.txt
���������������������������������
���������������������������
xargs
���������������������������������������������������������������������������������������xargs
������������������������
���������������������
touch file{1..5}
���������������������������file1
���file5
���
���������������������
ls
���������������������������������������
���������������������
cat file.txt | xargs rm -rvf
������������������������file.txt
������������������������������������������cat file.txt | rm -rvf
������������������������������������������������������xargs
������rm
������������
cat file | xargs rm -rvf
������������ls
������������������������������
������
������������������������������Linux���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
