Quantcast
Channel: How to force ls terminal command to show results in Bytes while I have set the default to ls -h in bash profile? - Super User
Browsing all 4 articles
Browse latest View live

Answer by DavidPostill for How to force ls terminal command to show results...

Is there other command I can use to get file size? Use one of the following: wc -c file -c prints the byte count. \ls -ln file \ escapes the ls alias. Linux: stat --format="%s" file OS X: stat -f "%z...

View Article



How to force ls terminal command to show results in Bytes while I have set...

I am following the snippet here to improve my terminal command in Mac OSX. It sets the default value of ls results to human readable by exporting alias ls='ls -GFh' to bash profile file. This is very...

View Article

Answer by levif for How to force ls terminal command to show results in Bytes...

For people reaching this topic and willing to stick to ls tool, I would suggest:\ls -lb-n (in ls -ln) would be too numerical for my eyes, I'd rather keep user/group readable with -b.Or more...

View Article

Answer by Alan Zhiliang Feng for How to force ls terminal command to show...

Running "ls" through the full path will show you the file sizes in bytes:/bin/ls -lVerified on macOS 10.15 with Bash.

View Article
Browsing all 4 articles
Browse latest View live




Latest Images