Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use lsmac to get Mac file information in the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use lsmac to get Mac file information in the Terminal
Authored by: luhmann on Apr 09, '03 11:36:10AM

Me too - and I don't get proper listings as shown above, just lots of dashes and blank spaces.



[ Reply to This | # ]
Read the manpage
Authored by: gidds on Apr 09, '03 11:55:49AM
From the manpage: By default, lsmac does not display file size and only lists the file name.  (You did read the manpage, didn't you?)  Those dashes you see are probably the flags; if the file isn't invisible, locked, stationary, an alias, a bundle, or with a custom icon, then you won't see any letters there.

Try one or more of the options:

  • -s Display file size in human-readable format (i.e. 1.2MB or 327KB)
  • -b Display file size in bytes (i.e. 12977128 bytes)
  • -o Omit folders when listing directory contents
  • -a Display all files, including files with the . prefix.
  • -p Display full file paths instead of file names
  • -l When listing file size, use physical size instead of logical size.

---

Andy/

[ Reply to This | # ]

Read the manpage
Authored by: luhmann on Apr 09, '03 03:07:55PM

So the above example should read:

% lsmac -s

not just

% lsmac

correct?

Anyone know why it produces the "FSPathMakeRef(): Error -35 returned when getting file reference from path" errors?



[ Reply to This | # ]