December 1999
Beginner
528 pages
11h 10m
English
Let’s create a file using the touch command
$ touch myfile
Now do an ls -l on the directory
$ ls -l
-rw-r--r-- 1 dave admin 0 Feb 19 22:05 myfile
We have created an empty file, and as expected the first dash tells us that we have an ordinary file. You’ll find that most of your file creations will be for ordinary files and symbolic links (more on symbolic links later).
| User permissions | Group permissions | Other permissions |
| r w - | r - - | r - - |
The next three permission bits (rw-) are your permissions, the owner of the file. The following (r--) are the group permissions that you belong to, in this case the group admin. The last three (r--) are the rest of the world, or anybody else. My default group admin, of which I am a member, ...
Read now
Unlock full access