The typical way to view file permissions is to use the 'ls' command with the long listing options enabled, For example, to see the file permissions for everything in the current directory, type:
ls -lsa
Create a file and set it's permissions to 222
In Linux the chmod command is used to set file permissions.
File permissions in Linux are not represented in binary format, but rather octal format. The first digit represents owner permissions, second digit is group permissions, and the final one is permissions for everyone. Read permissions are assigned a 4, write permissions are assigned a 2, and execute permissions are assigned a 1. A 6 permission allows read and write (4+2).
gerp
It lists the directories (folders) only in a given path, and also lists the file permissions and file sizes for those folders.
There is generally only 1 standard command for permissions on a file or directory - chmod. You can affect permissions by other commands such as changing the ownership or group ownership of a file or directory. Other commands may be specific to different versions of Unix and Linux, so are not listed here.
If you're talking Linux, then a terminal would do you just fine. chmod is used to change file permissions. Ex: chmod 755 /filename You could probably use a file manager to do that as well. In Windows, right click and properties (there are advanced permissions as well that would only be accessible to an administrator).
Each file and directory can be marked read-only, writable, and executable. Each file / directory will contain three sets of permissions that can be marked as such, namely the owner, other users in the owners group, and users not in the group.
The chmod command. For it's usage, consult it's manual page with the... $ man chmod command....
@Linux : for an example : for a file named " lastlog " Here are its permissions : -rw-r--r-- 1 root root 29492 Dec 1 15:12 lastlog Which means-- here( r )stands for -----Read (w)stands for -----Write and (x)stands for -----Execute Permissions respectively In Detail: User has rw- Permissions(read,write permissions and no execute permission) Group has r-- Permissions and Others have r-- Permissions for the file lastlog* . Extra info : root root ----Means that it is owned by root user(first root) and it belongs to group root (second root). Hope it helped.
read, write, execute
Under Windows I believe the only file system with full support for this is NTFS. On the Mac its standard HFS+ file system has always supported this. On Unix and Linux all native file systems supported this.