Friday, May 23, 2008

Neat BASH Trick

http://www.lockergnome.com/linux/2003/07/11/many-ways-to-see-numeric-permissions/

<blockquote>

“The above command will output the octal permissions followed by
the filename:

600 testfile

 

“Or use: stat -c "%a %n" *

</blockquote>