---
title: "Comment by Manh Nguyen Danh on \"Permissions in Linux\" | Hashnode"
description: "Thanks for great article! I have a question: Read(r)- To read the contents of a file or a directory Execute(x)- Run or execute a file or view the contents of a"
url: "https://hashnode.com/posts/permissions-in-linux/62d4e7982f40e31decd8ec13/comment/62da27d059f0dc59d51f1cf8"
---

[Discussion](https://hashnode.com/posts/permissions-in-linux/62d4e7982f40e31decd8ec13)

Comment [Permissions in Linux](https://hashnode.com/posts/permissions-in-linux/62d4e7982f40e31decd8ec13)

[Manh Nguyen Danh](https://hashnode.com/@rainiverse)

[Jul 22, 2022](https://hashnode.com/posts/permissions-in-linux/62d4e7982f40e31decd8ec13/comment/62da27d059f0dc59d51f1cf8)

Thanks for great article! I have a question:

> Read(r)- To **read the contents** of a file or a directory
> 
> Execute(x)- Run or execute a file or **view the contents** of a directory

What's the difference betwwen two kinds of read the contents?

[mani nekkalapudi](https://hashnode.com/@maninekkalapudi)

[Jul 23, 2022](https://hashnode.com/posts/permissions-in-linux/62d4e7982f40e31decd8ec13/comment/62da27d059f0dc59d51f1cf8#reply-62db939dcf7a8a6d54f0649b)

Thanks for reading [Danh Mạnh Nguyễn](https://hashnode.com/posts/permissions-in-linux/62d4e7982f40e31decd8ec13/comment/@rainiverse)!

For a directory, both the read(r) and execute(x) permissions are required to read its contents. This is true for the write permissions as well.

In short, to perform any actions on a directory like listing the contents(read), writing/renaming/deleting a file in it, we need execute (x) permissions for that user or group.

I'll update the post to highlight this particular point. Thanks again for commenting!
