COMP 206 Lecture Notes - Lecture 5: File System Permissions, Chmod, Environment Variable
Document Summary
Week 3: lecture #5: command line part iii, permissions and. Files belong to a user and a group, usually the creators. Permissions for these files exist on three levels, user, group and all. Files can be accessed via read, write and execute. One can change permissions using the chmod command, using the following abbreviations: In bit form, having a permission enabled in a position in the string is equivalent to a. 1" bit and a disabled permission is equivalent to a 0" bit. When a shell is started, the os setups an environment for the shell, defined by environment variables. Du tells you how much disk space you have. Hostname displays the name of current machine. Passwd is used to set or change password script file records everything that appears on screen to file until command. Which reports the path or location of the given file.