【Dos命令行笔记】
持续更新中--------
1、win10查看文件的前n行和后n行:在Window10的PowerShell里,使用
type XXX|Select -First n 表示查找XXX文件的前n条记录,而
type XXX|Select -Last n 表示查找XXX文件的最后n条记录。
2、校验文件的哈希值hashcode命令:
get-filehash [文件路径] -Algorithm MD5 | Format-List
【举例】:
get-filehash D:\downloads_yc\NetEaseMeeting_PC_Setup_20221207152813_701242d_x64.exe -Algorithm MD5 | Format-List