TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

On OS X, why does sudo ls show hidden (dot) files?

124 pointsby Zirroalmost 10 years ago

8 comments

darkralmost 10 years ago
The problem with such thoroughly robust StackOverflow answers as this; when I stumble across one as I occasionally do, so taken aback am I by it&#x27;s succinct completeness that it becomes irreversably embedded into my limited brain space.<p>I am afraid that one day I will come across an answer so comprehensive I will forget how to ride a bicycle.
评论 #9774998 未加载
评论 #9775107 未加载
评论 #9775824 未加载
frou_dhalmost 10 years ago
Per Rob Pike, the very existence of &quot;hidden&quot; named dotfiles was a bug that snowballed: <a href="https:&#x2F;&#x2F;plus.google.com&#x2F;+RobPikeTheHuman&#x2F;posts&#x2F;R58WgWwN9jp" rel="nofollow">https:&#x2F;&#x2F;plus.google.com&#x2F;+RobPikeTheHuman&#x2F;posts&#x2F;R58WgWwN9jp</a>
评论 #9775308 未加载
评论 #9775230 未加载
评论 #9775289 未加载
评论 #9775090 未加载
azernikalmost 10 years ago
Code archaeology needs to become an actual academic discipline.
trippy_biscuitsalmost 10 years ago
Why can no one read a man page anymore? They even have them on the internet these days.<p><a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;mac&#x2F;documentation&#x2F;Darwin&#x2F;Reference&#x2F;ManPages&#x2F;man1&#x2F;ls.1.html" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;mac&#x2F;documentation&#x2F;Darwin...</a><p>-A List all entries except for . and ... Always set for the super-user.
评论 #9775706 未加载
segmondyalmost 10 years ago
For security reasons. Nothing should be hidden from root.
评论 #9775037 未加载
kazinatoralmost 10 years ago
Also here: <a href="http:&#x2F;&#x2F;unix.stackexchange.com&#x2F;questions&#x2F;211689&#x2F;sudo-ls-not-showing-hidden-files-on-linux&#x2F;211701#211701" rel="nofollow">http:&#x2F;&#x2F;unix.stackexchange.com&#x2F;questions&#x2F;211689&#x2F;sudo-ls-not-s...</a>
bkstaalmost 10 years ago
root ls always shows dotfiles on BSD
评论 #9774845 未加载
hobarreraalmost 10 years ago
AFAIK, this is standard on any Unix platform, not just OS X. I also fail to see why this is <i>news</i>, this behaviour is decades old.
评论 #9775276 未加载