Sometimes you may find it useful to display the access rights of files or directories in octal form instead of
rwx
or perhaps you want to display both.
Instead of using good old
ls -l
command, in most modern Linux distributions (if not all) you will find stat
, an utility that displays file or filesystem status.
When run without arguments but followed by a given filename,
stat
will display a good deal of information about the file or directory. If used with the -c
option, stat allows you to specify an output format. It is precisely this option that’s of particular interest to us.
To display all files in the current working directory followed by the access rights in octal form, type:
Sample Output
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Read more: http://adf.ly/1n5YJD
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
No comments:
Post a Comment