What are the permissions of a file in unix?

To check the permissions on an existing file, you can use the "stat" command like this:

stat -c "%a %n" fu

Which will give you the full permissions:

-bash-3.00$ stat -c "%a %n" full.pl
755 full.pl

No votes yet

Comments

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <p> <img> <table> <th> <tr> <td>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]

More information about formatting options