frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: Why do readmes still use $ in copy-pasteable commands?

2•garyfirestorm•2h ago
I often encounter this in docs/readmes `$ ls -lt` often renders with a copy button that you can easily click and when you paste it in terminal it shows up as `$ ls -lt` with an unnecessary $ causing an error $ command not found or something like that... wouldn't it make sense to just have `ls -lt` and not add the $ in front of it?

Comments

rzzzwilson•2h ago
The "$" prompt is shorthand to indicate the command is run as a non-root user. If you see "# ls -lt" that indicates the command should be run as root. The problem lies with whoever set up the copy button to include the prompt as part of the copied command.
garyfirestorm•2h ago
this is a widespread problem - many libraries, git repos follow this convention unfortunately
gibbitz•1h ago
How do you specify this on GitHub markdown?
perrygeo•1h ago
It's used in documentation mostly to distinguish the command from stdout. And it's verbatim what you see if you copy-paste from most default bash shells.

Modeling Uncertainty for Better Outcomes

https://win-vector.com/2025/08/08/modeling-uncertainty-for-better-outcomes/
1•jmount•3m ago•0 comments

Gold, Frankincense, and Silicon

https://daringfireball.net/2025/08/gold_frankincense_and_silicon
1•danaris•6m ago•0 comments

Life, Work, Death and the Peasant, Part IIIb: Children and Childrearing

https://acoup.blog/2025/08/08/collections-life-work-death-and-the-peasant-part-iiib-children-and-childrearing/
1•Khaine•7m ago•0 comments

The Day Novartis Chose Discovery

https://www.alexkesin.com/p/the-day-novartis-chose-discovery
1•irsagent•11m ago•0 comments

Chatbots Can Go into a Delusional Spiral

https://www.nytimes.com/2025/08/08/technology/ai-chatbots-delusions-chatgpt.html
1•eemolo•17m ago•0 comments

Edison's plan to pay Eaton fire victims could mean less litigation, compensation

https://www.latimes.com/environment/story/2025-07-25/edisons-program-to-pay-eaton-fire-victims-leaves-questions
1•PaulHoule•17m ago•0 comments

Do You Remember What You Read?

https://aethermug.com/posts/do-you-remember-what-you-read
1•mrcgnc•19m ago•0 comments

Substack Raised Another $100M

https://daringfireball.net/2025/08/substack_100_million_raise
1•mooreds•19m ago•1 comments

Linux LED "Candle" Simulator

https://gitlab.com/unixispower/c-toys/-/blob/main/src/candle.c
1•xk3•21m ago•0 comments

Why F# could be the next mainstream programming language (2024)

https://blog.snork.dev/posts/why-f--could-be-the-next-mainstream-programming-language-.html
15•smoothdeveloper•24m ago•17 comments

GPT-5 critics are dead wrong

https://nerds.xyz/2025/08/gpt5-backlash-missing-the-point/
3•BeauNer•29m ago•1 comments

The Fastest Site in the Tour de France

https://csswizardry.com/2025/07/the-fastest-site-in-the-tour-de-france/
1•OuterVale•32m ago•0 comments

Show HN: Launched a Waitlist for Network for Developers

https://v0-launch-waitlist-page.vercel.app/
1•AbdMog•33m ago•0 comments

James Webb Space Telescope revisits a classic Hubble image of over 2.5k galaxies

https://www.space.com/astronomy/james-webb-space-telescope/james-webb-space-telescope-revisits-a-classic-hubble-image-of-over-2-500-galaxies
1•bookofjoe•34m ago•0 comments

Courts service 'covered up' IT bug that caused evidence to go missing

https://www.bbc.com/news/articles/cwye2q00k51o
2•1659447091•35m ago•0 comments

Tesla gets rideshare license in Texas for robotaxi service

https://finance.yahoo.com/news/tesla-gets-rideshare-license-texas-151800656.html
2•cosmicgadget•41m ago•1 comments

First 25 years of the SuperAging Program

https://alz-journals.onlinelibrary.wiley.com/doi/10.1002/alz.70312
1•geox•43m ago•0 comments

UAE offers free open-source AI as alternative to US and China

https://restofworld.org/2025/chatgpt-alternative-uae-falcon-ai/
3•colinprince•45m ago•2 comments

Dial-up Internet to be discontinued

https://help.aol.com/articles/dial-up-internet-to-be-discontinued
52•Kye•47m ago•11 comments

Trump Administration Threatens to Take over Harvard's Patents

https://www.wsj.com/us-news/education/harvard-patents-trump-d4297409
9•jaredwiener•51m ago•3 comments

Major Japan newspaper sues 'free-riding' AI firm Perplexity

https://www.japantimes.co.jp/news/2025/08/08/japan/crime-legal/yomiuri-sues-free-riding-ai-firm/
4•anigbrowl•53m ago•0 comments

How Europe is vying for rare earth independence from China

https://www.bbc.com/news/articles/cm2zp6m4gy7o
3•rguiscard•1h ago•0 comments

Show HN: I made a safe anonymous message app

https://subrosa.vercel.app/
1•martianmanhunt•1h ago•1 comments

Some Turbulence at CalyxOS

https://lwn.net/Articles/1033042/
1•BallsInIt•1h ago•0 comments

Show HN: AI that writes correct LangGraph persistence code via self-validation

https://github.com/botingw/langgraph-dev-navigator
1•botingw_job•1h ago•1 comments

An Engineer's Perspective on Hiring

https://jyn.dev/an-engineers-perspective-on-hiring/
2•zdw•1h ago•0 comments

Google Finance testing new AI features

https://blog.google/products/search/google-finance-ai/
3•DocFeind•1h ago•0 comments

Self-Loathing AI

https://www.johndcook.com/blog/2025/08/08/self-loathing-ai/
3•zdw•1h ago•0 comments

A Routine Vaccine May Lower Dementia Risk by as Much as 20%

https://www.sciencealert.com/a-routine-vaccine-may-lower-dementia-risk-by-as-much-as-20
7•amichail•1h ago•1 comments

The Troubling Decline in Conscientiousness

https://www.ft.com/content/5cd77ef0-b546-4105-8946-36db3f84dc43
6•jnord•1h ago•0 comments