PowerShell实用命令

查看用户配置文件路径

$profile

 

创建用户配置文件

new-item -type file -path $profile -force

 

修改当前窗口字符集 代码页标识符(https://learn.microsoft.com/zh-cn/windows/win32/intl/code-page-identifiers)

chcp 65001

  

追踪文件更新内容(等同于Linux下的 tail -f )

Get-Content .\server.log -Wait -Tail 5 -encoding utf8

 

posted @ 2023-07-13 12:58  安培昌浩  阅读(40)  评论(0)    收藏  举报