web | Java

如何查看文件内容,命令有哪些?查看文件第1行到3行,查看文件最后一行。

千锋教育

cat\less\more\head\tail head -3 test.txt sed '1,3p' test.txt