[错误命令 2>>文件] 为什么我>>右边加了空格也是对的呢
[root@default ~]# datecang 2>> test.log [root@default ~]# cat test.log -bash: datecang: command not found [root@default ~]# datecang 2>> test.log #加了空格 [root@default ~]# cat test.log -bash: datecang: command not found -bash: datecang: command not found [root@default ~]# datecang 2>>test.log #没加空格 [root@default ~]# cat test.log -bash: datecang: command not found -bash: datecang: command not found -bash: datecang: command not found