In today’s post we are going to find out how to check for read-only filesystem in Linux from the CLI.
- Shell environment
Open the local shell in Linux and run the following command:
grep ro, /proc/mounts
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0 /dev/loop0 /snap/core/7270 squashfs ro,nodev,relatime 0 0
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.