Find the answer to your Linux question:
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.
  1. #1
    Just 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?

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    913
    You can port over the GNU version of ls:
    FreshPorts -- misc/gnuls

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    11
    Thanks mizzle! That worked perfectly.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •