terminal
Welcome to Linux Practice Terminal!
Type "help" to see available commands.
user@linux:~$
掌握重定向
学习使用>和>>将命令输出重定向到文件。
步骤 1
使用重定向将"Hello World"写入新文件。
输入:echo Hello World > output.txt
echo Hello World > output.txt
步骤 2
向同一个文件追加"Second line"。
步骤 3
将ls的输出重定向到名为filelist.txt的文件。
步骤 4
查看filelist.txt的内容来验证。
步骤 5
将date的输出重定向到timestamp.txt。
步骤 6
验证时间戳是否已保存。