From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

File and directory modes

File and directory modes - Linux Tutorial

From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Start my 1-month free trial

File and directory modes

- [Instructor] Standard Linux permissions support three different modes, read, write and execute. These three modes provide different functionality for files and directories. For files, read access means a user can open and read the contents of a file. When a user has write access to a file they can write or modify the contents. When a user has execute permissions on a file it means that the file can be run as an application. Commands like LS and applications like Firefox would have their execute bit set. What happens when a command is executed is it's loaded into memory, and run until told to stop. These same three modes act differently on a directory. If a user has read access to a directory, it means they can list the contents of the directory, which includes the metadata about the files and directories in it. If a user doesn't have read access and they type in LS inside the directory, you'll see a lot of question marks…

Contents