Results 1 to 3 of 3
I have a lot of experience with most unix variants except BSD. Recently I built a FreeNAS system and I've encountered a problem.
For longer than I care to admit ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-12-2013 #1Just Joined!
- Join Date
- Jul 2007
- Posts
- 11
ls long listing -stop the du madness
I have a lot of experience with most unix variants except BSD. Recently I built a FreeNAS system and I've encountered a problem.
For longer than I care to admit I've used the long version of the ls command (ls -l) to give me a quick listing of a directory so I can see not only what files/directories are located there, but also their permissions.
Tried it on the FreeNAS box and it takes over a minute to return a listing. This is not a hardware/resource issue. The BSD long listing essentially does a du which for a directory with many files can take a while. On all the other systems I've worked on (SCO, Linux, Xenix, AIX, AUX, Solaris(IIRC), etc) this doesn't happen.
Is there a equivalent command in BSD that will behave similar to what I used to? Perhaps some hidden option in ls that will suppress the du action?
- 02-12-2013 #2Linux Enthusiast
- Join Date
- Apr 2012
- Location
- Virginia, USA
- Posts
- 561
You can port over the GNU version of ls:
FreshPorts -- misc/gnuls
- 02-12-2013 #3Just Joined!
- Join Date
- Jul 2007
- Posts
- 11
Thanks mizzle! That worked perfectly.


Reply With Quote
