$ -al /root/ -al /root > /root/test.txt
/root/test.txt 命令不工作的原因是:
$ bash -c /root/test.txt
#!/bin/ -al /root > /root/test.txt
$ +x test. ./test.
$ bash <<> -al /root > /root/> EOF
$ /root/test.txt | bash
$ -al /root | /root/test.txt > /dev/
/dev/null 阻止 tee 把内容输出到终端: