File Permissions - chmod

Discussion in 'Beginner Tutorials' started by Rob, Jul 9, 2013.

  1. Saptarshi Nag

    Saptarshi Nag Member

    Messages:
    34
    Likes Received:
    21
    Trophy Points:
    8
    the link says it all! :)

  2. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,162
    Likes Received:
    987
    Trophy Points:
    113
    I hope that helps. Explaining to people how a folder is executable is hard to explain.
    Saptarshi Nag and Haider92 like this.
  3. hindu tadakamalla

    hindu tadakamalla New Member

    Messages:
    1
    Likes Received:
    1
    Trophy Points:
    1
    thank u..u made it very simple for me
    DevynCJohnson likes this.
  4. plotozoidz

    plotozoidz New Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    stat

    If you want a bit more information than ls -l file/directory provides, you can use the command stat. Lets say i have a file called file1.txt:

    Code:
    ls -l file1.txt
    outputs:
    -rw-r--r-- 1 username username 71 Mar 24 20:45 file1.txt

    Code:
    stat file1.txt
    outputs:
    File: `file1.txt'
    Size: 71 Blocks: 24 IO Block: 4096 regular file
    Device: 14h/20d Inode: 6029568 Links: 1
    Access: (0644/-rw-r--r--) Uid: ( 1000/username) Gid: ( 1000/username)
    Access: 2014-03-24 21:37:49.826768784 +0000
    Modify: 2014-03-24 21:50:23.618789336 +0000
    Change: 2014-03-24 21:50:23.618789336 +0000
    Birth: -

    As you can see stat gives more detail, including the numeric 'chmod' value: 0644
    Handy if you want to check the corresponding numeric value permission of a file or directory!
    Last edited: Mar 24, 2014

Share This Page