Tip #739 Display file permissions in octal
Tip 205 is an interesting way to show file permissions in octal using sed, but this can be done much easier using the Linux stat command.From man page of Linux stat(1) command:
%A Access rights in human readable form
%a Access rights in octal
%n File name
Read more »
- TAGS:
- stat
alias aptitude at awk bash bc cal cat cd colrm comm cp csh curl cut date dd df dialog diff dirname dpkg du fc find fuser grep gs gzip history iconv kill ksh last less ln ls lsof lynx m4 md5sum mkdir mkfifo mkisofs mv mysql nc netstat openssl OSX perl ping popd ps pushd python read redirection rm scp screen sed sort ssh stat sudo svn tail tar tee test top tr uniq vim wc wget xargs