在 Unix 或 Linux 系统上,你可以使用 > 或 >> 运算符将 shell 命令的输出重定向到文件。 例如,你可以使用以下命令将 ls 命令的输出重定向到文件 list.txt: ls > list.txt