terminal
Welcome to Linux Practice Terminal!
Type "help" to see available commands.
user@linux:~$
文件操作
学习使用touch、cat和echo创建和查看文件。
步骤 1
创建一个名为myfile.txt的新空文件。
输入:touch myfile.txt
touch myfile.txt
步骤 2
使用echo和>运算符将内容写入文件。
步骤 3
查看myfile.txt的内容。
步骤 4
使用echo和>>运算符追加更多内容。
步骤 5
查看更新后的文件,确认两行内容。