~pcwiz Posted August 22, 2008 Share Posted August 22, 2008 What unit of file size do the UNIX utilities in OS X generally use? For example, when "ls -l" displays the file sizes of files in a directory, what unit is used, and how would I convert it to megabytes (MB)? Link to comment Share on other sites More sharing options...
MacUser2525 Posted August 22, 2008 Share Posted August 22, 2008 What unit of file size do the UNIX utilities in OS X generally use? For example, when "ls -l" displays the file sizes of files in a directory, what unit is used, and how would I convert it to megabytes (MB)? Just bytes if you want it in MB then add h for human readable I believe it stands for. macuser2525s-p35-ds3r:~ MacUser2525$ ls -l /Volumes/video/torrents/Rescue.Me.S05M0* -rw-r--r-- 1 MacUser2525 staff 146489717 Aug 8 22:17 /Volumes/video/torrents/Rescue.Me.S05M01.720p.HDTV.X264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 146533264 Aug 8 22:39 /Volumes/video/torrents/Rescue.Me.S05M02.720p.HDTV.x264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 146015332 Aug 8 22:52 /Volumes/video/torrents/Rescue.Me.S05M03.720p.HDTV.x264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 146304252 Aug 8 23:08 /Volumes/video/torrents/Rescue.Me.S05M04.720p.HDTV.x264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 145929620 Aug 8 23:56 /Volumes/video/torrents/Rescue.Me.S05M05.720p.HDTV.X264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 145926670 Aug 8 23:50 /Volumes/video/torrents/Rescue.Me.S05M06.720p.HDTV.X264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 146040662 Aug 8 23:37 /Volumes/video/torrents/Rescue.Me.S05M07.720p.HDTV.X264-DIMENSION.mkv macuser2525s-p35-ds3r:~ MacUser2525$ ls -lh /Volumes/video/torrents/Rescue.Me.S05M0* -rw-r--r-- 1 MacUser2525 staff 140M Aug 8 22:17 /Volumes/video/torrents/Rescue.Me.S05M01.720p.HDTV.X264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 140M Aug 8 22:39 /Volumes/video/torrents/Rescue.Me.S05M02.720p.HDTV.x264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 139M Aug 8 22:52 /Volumes/video/torrents/Rescue.Me.S05M03.720p.HDTV.x264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 140M Aug 8 23:08 /Volumes/video/torrents/Rescue.Me.S05M04.720p.HDTV.x264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 139M Aug 8 23:56 /Volumes/video/torrents/Rescue.Me.S05M05.720p.HDTV.X264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 139M Aug 8 23:50 /Volumes/video/torrents/Rescue.Me.S05M06.720p.HDTV.X264-DIMENSION.mkv -rw-r--r-- 1 MacUser2525 staff 139M Aug 8 23:37 /Volumes/video/torrents/Rescue.Me.S05M07.720p.HDTV.X264-DIMENSION.mkv Link to comment Share on other sites More sharing options...
Recommended Posts