我正在使用Codecademy来学习命令行。当我尝试使用该命令时touch file.txt,它说:
touch file.txt
“touch”不被识别为内部或外部命令、可操作程序或批处理文件。
我在论坛上搜索了一下,发现可以使用echo.>file.txt,并且有效。
echo.>file.txt
我想知道为什么该touch命令不起作用。这是因为我使用的是 Windows 而不是 Mac 吗?有人可以向我解释一下吗?谢谢!
touch
这是我笔记本电脑上的截图......
command-line command touch
command ×1
command-line ×1
touch ×1