Skip to main content

Posts

Showing posts with the label file permissions

File permissions

Let us go back to ls command covered in a previous post . ls command displays the list of files/sub-directories in current directory. And we also know that ls -a lists all files including the hidden files. Another commonly used option of ls is ls -l (long list) which gives us file name, its size, its date and time of creation, its owner, group and permissions. So what are these? So we see that long listing ls gives us lot of information. 3rd column tells us the name of owner (called user) of the file. - You are the owner of all files created by you. 4th column tells us the group the user belongs to. (Your admin might have put you in students group ) And 5th column tells us size of files - in bytes. 6th column is date and time of last modification of file. What are first and second columns in the list? 2nd column is number of links to the file. We talk about links later. 1st column is permissions of the file - who can read the file, who can write/modify file and who ...