SYST13416 Lecture Notes - Lecture 4: Chmod, Chief Operating Officer, Umask
Document Summary
How to go to home directory from another directory: / goes up one directory, then another directory to the root. To go from home directory and move a file in the unix directory, go to the docs directory we created in the previous assignment. home/mehrdad/unix/doc>touch file1 mv file1 /bin. _w_ write permission to owner r__ to group, _ _ x execute to others. The file system permission groups are owner, group, others. The file system permission types are read, write, execute. https://www. linux. com/learn/understanding-linux-file-permissions chmod command modifies the permissions. Sample permission string: chmod 640 file1 means that the owner has read and write permissions, the group has read permissions. Please note that the numbers 6, 3, and 0 are a binary representation. Anything +x or -x is a symbolic value, and either adds or removes permissions. u+x means only the owner can get permissions. To give only write permission to owner, group, and others we use the command: chmod a=w file1.