ls –lR |awk '{total +=$5};END {print "Total size: " total/1024/1024 " Mb"}'
I'm trying to get the total size of the current directory including subdirectories with this command. Can't figure out why it gives me this message. Can someone provide some guidance? Thanks!
ls: –lR: No such file or directory
Total size: 0 Mb
I'm trying to get the total size of the current directory including subdirectories with this command. Can't figure out why it gives me this message. Can someone provide some guidance? Thanks!
ls: –lR: No such file or directory
Total size: 0 Mb