Linux command
hn 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Browse Hacker News
hn
Show top stories
hn top
Show newest stories
hn new
Show best stories
hn best
Show ask HN
hn ask
Open story in browser
hn open [story-id]
说明
hn is a command-line Hacker News client. It displays stories, comments, and discussions from the popular tech news aggregator. The tool provides quick access to different story categories. It can open links and discussions in the default browser.
参数
- top
- Show top stories.
- new
- Show newest stories.
- best
- Show best stories.
- ask
- Show Ask HN posts.
- show
- Show Show HN posts.
- jobs
- Show job postings.
- open _ID_
- Open story in browser.
- --help
- Display help information.
FAQ
What is the hn command used for?
hn is a command-line Hacker News client. It displays stories, comments, and discussions from the popular tech news aggregator. The tool provides quick access to different story categories. It can open links and discussions in the default browser.
How do I run a basic hn example?
Run `hn` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does top do in hn?
Show top stories.