
If any of the “rwx” characters is replaced by a ‘-‘, then that permission has been revoked. This permission is given only if the file is a program. The ‘x’ means you can “execute” the file. The ‘w’ means you can “write”, or modify, the file’s contents. The ‘r’ means you can “read” the file’s contents. Each of the three “rwx” characters refers to a different operation you can perform on the file.
And, of course, the final column gives the filename.ĭeciphering the security characters will take a bit more work.įirst, you must think of those nine characters as three sets of three characters (see the box at the bottom). The next column shows the date and time the file was last modified. The next column shows the size of the file in bytes. In my case I want to give the “aditya314” group of people special access to these files. The next column shows the group owner of the file. In this case it is me, my userID is “aditya314”. The next column shows the owner of the file. The next nine characters (rw-r–r–) show the security we’ll talk about them later. The first character will almost always be either a ‘-‘, which means it’s a file, or a ‘d’, which means it’s a directory. There’s a lot of information in those lines. SORT command in Linux/Unix with examples. AWK command in Unix/Linux with examples. Sed Command in Linux/Unix with examples. #FINDING THE PERMISSIONS ON A FILE MAC COMMAND LINE HOW TO#
How to Change Root Password in Kali Linux?.How to Change the username or userID in Kali Linux?.groupadd command in Linux with examples.Linux Virtualization : Linux Containers (lxc).Linux Virtualization : Resource throttling using cgroups.SetUID, SetGID, and Sticky Bits in Linux File Permissions.ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.
GATE CS Original Papers and Official Keys.