你可以使用 head 命令,将其输出存储在文件中,并读取该文件。http://unixhelp.ed.ac.uk/CGI/man-cgi?head Windows 的相应命令在这里:“tail”命令的 Windows 等效命令。