TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why is it so hard to find a file in Ubuntu? (2011)

38 点作者 ukz超过 9 年前

17 条评论

zanny超过 9 年前
The only criticism I could have of Linux filesystems is that user mounted devices show up in &#x2F;run?&#x2F;media&#x2F;&lt;user&gt;&#x2F;&lt;device&gt; rather than ~&#x2F;media&#x2F;&lt;device&gt;. Otherwise everything a user does or makes is showing up under ~ somewhere, and the superuser&#x27;s stuff resides in a mix of &#x2F;etc, &#x2F;root, and &#x2F;usr.<p>Well, I&#x27;ll take that back, the fact the config folder is hidden by default is also kind of sucky, and the habit of some software putting configuration data in ~&#x2F;.local&#x2F;share and some applications putting non-config data in ~&#x2F;.config is extremely annoying but should be solved on a per-application basis.<p>Just a few offenders on my desktop in config:<p>* Chrome&#x2F;ium stores extensions in .config rather than share. Those take up 600MB each in my config folder on my system.<p>* Qupzilla has a profile network cache of 32MB in config.<p>* Brackets has 14MB of cache data in config.<p>* Clementine puts its indexing databases in config.<p>* Spideroak puts everything in config - its index database and snapshots.<p>I&#x27;m not as familiar with offenders putting configurations into share, but I know at least KDE&#x27;s kscreen puts monitor layouts in share&#x2F;kscreen when they belong in config&#x2F;kscreen.<p>I&#x27;d like to see Ubuntu, Arch, or Fedora (the big distros with the market share to push for best practices) enforce disk quotas on config directories - ie, a program cannot use more than 5MB of space there, akin to localstorage&#x27;s limit and the intent to use it as a config store rather than persistent data store which is what indexdb &#x2F; share are.<p>Also, .config should just be config. No dot. Users need to configure their stuff, they should be able to see it.
评论 #10902654 未加载
评论 #10903491 未加载
AdmiralAsshat超过 9 年前
Coming from a Windows background, I can understand the initial learning curve in getting used to the Linux filesystem. I still don&#x27;t quite grasp it all myself.<p>With that said, who the hell goes looking for stuff in C:\Program Files? The exe&#x27;s live there, but most Windows programs create shortcuts on the Desktop&#x2F;Start Menu, so you&#x27;re rarely going to go into the program&#x27;s directory itself unless you need to modify a .INI file.
评论 #10902165 未加载
评论 #10902369 未加载
qwertyuiop924超过 9 年前
Ubuntu actually does make it hard to find files. Is it in &#x2F;usr&#x2F;bin? &#x2F;usr&#x2F;local&#x2F;bin? &#x2F;bin? &#x2F;sbin? &#x2F;etc&#x2F;bin? &#x2F;opt? &#x2F;god-knows-what-directory?<p>Honestly, on linux, there should be &#x2F;usr&#x2F;local&#x2F;bin, which is never touched by system management, for source installations, &#x2F;sbin for emergency recovery tools, and &#x2F;usr&#x2F;bin for EVERYTHING ELSE. This is pretty much the only thing that fdo got right.
评论 #10902860 未加载
cpplinuxdude超过 9 年前
Interesting. I think the posts contains a lot of useful information, however I believe this kind of response is detrimental toward user acquisition.<p>It&#x27;s very much akin to the tech guy walking into a sale&#x27;s person&#x27;s office, to fix their immediate need. The tech guy is thinking all he has to do is teach the person to think for themselves, problem solved. All the sales guy is thinking is is &quot;oh god, please don&#x27;t teach me anything&quot;.<p>Personally I find locate and slocate very useful in linux to find the files I am after. Going over these might be more useful. That or whatever third party tools are available, with a UI and good UX, to achieve a similar goal.
评论 #10903125 未加载
评论 #10903594 未加载
评论 #10902365 未加载
jrcii超过 9 年前
I would pose a more general question, why is it so hard to find a file in Linux? Across all distributions I&#x27;ve found in difficult to predict where a particular binary or configuration file will be, and this is one of the reasons I prefer BSD (NetBSD in my case) -- the file system feels much more organized and the locations are predictable.
Mikeb85超过 9 年前
Dunno, I personally think Linux has a much more organized and common-sense file structure than Windows. The home folder keeps most user data in a nice, organized place, and generally programs installed from the repos are in a consistent place. Sometimes &#x27;installers&#x27; put programs in strange places, but that&#x27;s the price of freedom I guess...
评论 #10902881 未加载
angdis超过 9 年前
I think the underlying problem here is the expectation that you, the user, should be able to find stuff by looking &quot;in&quot; particular places. This is perfectly reasonable if you&#x27;re dealing with a fairly limited set of files or executables, but that era has been slipping away for the last 5 years or more.<p>It is no surprise that the question comes from 2011. I believe that was near when Unity came out and Ubuntu did away with mouse menus to find &quot;Programs&quot; in favor of just searching for what you have. A lot of folks did not like it at first but I think its no longer an issue.
评论 #10903141 未加载
chriswarbo超过 9 年前
The major difference between Program Files and, say, &#x2F;usr, is that the former is split up according to &quot;which program it belongs to&quot; and the latter according to &quot;what kind of file it is&quot;. Each scheme has its merits, and both are quite fuzzy (&quot;is this helper a part of my program, or standalone?&quot; &quot;should this asset go in &#x27;share&#x27; or &#x27;lib&#x27;?&quot;).<p>Interestingly, the &#x2F;nix&#x2F;store directory on NixOS is split according to package, so acts rather like Program Files. However, I try to keep my browsing of &#x2F;nix&#x2F;store to a minimum, since it currently contains ~25000 top-level directories. Search (eg. wildcard paths) is still necessary, even with this level of categorisation!
BuckRogers超过 9 年前
Usually I install packages wherever they go by default but if installing by hand I put it in the home folder and run it from there. Most programs are under &#x2F;usr though, but it&#x27;s true you never know.<p>I had to give up on Linux as a daily driver due to my fairly complex (multimouse, multimonitor) desktop setup. I suspect that some of the X11 code hasn&#x27;t been touched in 20 years. This is why OSX and Windows make sense. For the user in the OP, the $100 or so dollars may be money well spent if that works for him. After much hacking I figured it&#x27;s not equipped to handle my setup but I use it as my development platform and server both servers via SSH.
pvaldes超过 9 年前
Is just that you are not using your OS correctly. Learn a few commands of bash and you&#x27;ll never look back.<p>... Or just create a link in your desktop pointing to the desired file or dir. Is ironic to say that files are hard to find in the first SO that allowed you to have as many soft and hard links to a file in your desktop as you want.<p>... Or browse the files in your file manager. In many cases you can even have thumbnails to help you finding the photos or videos that you want.<p>... Or just open firefox, write &quot;file:&#x2F;&#x2F;&#x2F;home&#x2F;my-user-name&quot; and browse your files. when &quot;my-user-name&quot; is the real name of your user<p>... Or use the main menu in your desktop<p>... Or use emacs dired and tumme
melted超过 9 年前
The &quot;problem&quot; is much more prevalent than people think. Switchers come from Windows to Mac and expect it to function exactly like Windows. When it turns out Mac has its own ways of doing things, they&#x27;re disappointed. It doesn&#x27;t matter that quite often the &quot;Mac&quot; way of doing things is actually better or at least more consistent, they just expect it to be exactly like Windows. Well, guess what, folks, you can &quot;drill with a saw and saw with a drill&quot;, but you shouldn&#x27;t expect a good user experience unless you use the tools the way they are meant to be used.
asdf13超过 9 年前
Read the first chapter based on linux in &#x27;Counter Hack reloaded&#x27; by Ed Skoudis. yes the book is focused on security however after reading it I found the file system in linux makes far more logical sense to me than windows.<p>from a big picture perspective. <a href="http:&#x2F;&#x2F;www.ubuntugeek.com&#x2F;linux-or-ubuntu-directory-structure.html" rel="nofollow">http:&#x2F;&#x2F;www.ubuntugeek.com&#x2F;linux-or-ubuntu-directory-structur...</a> (taken from the article)<p>on a side note I added links from that page that are useful<p>my own .02 cents is: &gt;updatedb<p>&gt;locate xyz.xyz
auvrw超过 9 年前
<p><pre><code> which &lt;executable&gt; dpkg -L &lt;package&gt; </code></pre> will find anything that&#x27;s in program files.<p>i think this is a really good post, though, b&#x2F;c it demonstrates something that happens when we use engineered things on all levels: &quot;different&quot; is (perhaps falsely) equated with &quot;difficult.&quot;<p>i suppose it would be possible to make a package that uses FUSE or something to provide a &#x2F;prog_files with a similar directory structure to what a windows user would expect, but... nah : )
agumonkey超过 9 年前
It wasn&#x27;t easier under Windows. Either the badly configured indexed search or the hard to find, slow tree walk. It&#x27;s gotten usable by win10 I think.
imh超过 9 年前
I wish I&#x27;d seen something like this when I first started using ubuntu. As with most things linux, it&#x27;s very sensible if you know what to look for (which is the hard part).
fnordfnordfnord超过 9 年前
I don&#x27;t agree that it is so much easier to find a file on Windows, but yeah searching for files on Linux could be a lot more user (or new user) friendly.
draw_down超过 9 年前
The answers to this are condescending and terrible.
评论 #10902997 未加载