linux,

Check for read-only filesystem in Linux

Mar 29, 2022 · 1 min read · Post a comment
Check for read-only filesystem in Linux

In today’s post we are going to find out how to check for read-only filesystem in Linux from the CLI.

Prerequisites

  • Shell environment

Solution

Open the local shell in Linux and run the following command:

grep ro, /proc/mounts

Example output:

tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
/dev/loop0 /snap/core/7270 squashfs ro,nodev,relatime 0 0

Conclusion

If you can think of any other alternative command, please do let me know in the comment section below.
On a side note, follow our official channel on Telegram.