常見用法

# 顯示所有內容:類似 cat
get-content log.txt

# 顯示最後 10 行,類似 tail
get-content -tail 10 log.txt

# 顯示最後 10 行,並持續顯示,類似 tail -f
# 使用 ctrl+c 可以中斷顯示
get-content -tail 10 -wait log.txt

參考資料

https://hackmd.io/@JxVi57prTMerA89BaZhvCw/Hkx4uD6vj

Last modified: 2025-03-23

Author

Comments

Write a Reply or Comment

Your email address will not be published.