Re: du Weirdness - how is this possible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"ls .?*" is another "ls -A" equivalent.

Hidden files or directories are hidden. What part of that are some people missing. You have to tell the system to expose those "hidden" items for many operations such as listing files, which this abuse of "du" is showing. (Isn't "ls -l" simpler? I alias that to "ll" and "lla" is "ls -lA".

This thread is amusing and bemusing for the willful disregard for standard 'ix behavior since virtually the beginning of 'ix time.

{^_-}

On 20180313 16:28, Ed Greshko wrote:
On 03/14/18 05:22, Ed Greshko wrote:
The later command is basically creating a list of files (a shell function) and doing
a "du" on each file individually.


Here is another example to show you what is happening....

[egreshko@meimei test-dir]$ ls
stuff  test  test1  test2

[egreshko@meimei test-dir]$ cat stuff
tes
te
te*

[egreshko@meimei test-dir]$ grep te stuff
tes
te
te*

[egreshko@meimei test-dir]$ grep te* stuff
[egreshko@meimei test-dir]$

But if I change to a directory which contains no files....

[egreshko@meimei test-dir]$ cd .hidden

[egreshko@meimei .hidden]$ ls

[egreshko@meimei .hidden]$ grep te* ../stuff
tes
te
te*



_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux