linux基本命令 创建文件 touch

xiaoxiao2021-02-28  89

touch :

主要用来创建新的(空的)文件,或者是更改当前文件的创建时间。 使用touch命令的时候需要确保用户有当前目录的写权限。

命令:

touch abc.txt

创建文件还有其他命令:

使用vi命令:vi abc.txt

使用追加 >命令: echo "hello" > abc.txt

转载请注明原文地址: https://www.6miu.com/read-54834.html

最新回复(0)