# 用powershell持續顯示文字log檔的最新內容 我們用log4net輸出的log內容到文字檔內,通常使用notepad\+\+閱讀, 讓notepad\+\+自動提醒我們刷新內容。  但這樣就有點麻煩,而且如果有大量新的log,還要自己跳到內容的最下方去找最新的log。 在unix系統上,有一個常用的指令tail,可以直接在command console上顯示文字檔案最新更新的內容。 而在windows上,也可以透過powershell有相同的指令。 範例如下 ```shell= get-content -tail 10 -wait .\HUB_APP.log ``` * -tail \<num\> : 表示要顯示檔案最後幾行的內容 * -wait : 表示要持續輸出最新內容  當有新的內容  中斷執行可以使用 `Ctrl+C`。 清除畫面可以輸入 `cls`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up