课程: Linux: Files and Permissions

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Permissions using numeric notation

Permissions using numeric notation - Linux教程

课程: Linux: Files and Permissions

Permissions using numeric notation

- [Instructor] There are two different methods of setting permissions in Linux, numeric and symbolic. Let's talk about numeric mode now. When we do a long listing with ls, we see several things. We see the permissions, ownership, timestamp, filename, and a few other smaller bits, such as size. There are 10 characters on the left-hand side of the listing. The first character shows the type. If it's a dash, it's a file. If it were a directory, it would be the letter d. if it were a symbolic link, it would be an l. If it were a character device, a c. A p for a pipe and a b for a block device. The next nine characters are divided up into groups of three. The first group is the user owner of the file. The user owner in this case is user1. The user owner has read, write, and execute permissions. The second group of three is for the group owner. The group owner in this case is accounting. The accounting group has read and execute…

内容