今天看《Linux/Unix系统编程手册》,发现用cat > 命令也可以直接创建文本文档:
cat > testcatcreate.txttesttest
[2]+ Stopped cat > testcatcreate.txt
[root@localhost others]# cat testcatcreate.txt testtest[root@localhost others]#