I was making mnt directory in home-directory and when I try delete it, I didn't realize my relative path was root(/). Eventually I deleted mnt directory in root... How can I restore /mnt? My file system is ext4.
2 Answers
As long as nothing was mounted to it, /mnt
is just a directory like any other.
Run sudo mkdir -m 755 /mnt
to recreate it with default permissions.
Simply by doing sudo mkdir /mnt
.
/mnt
normally is an empty directory used to mount something there.
$ ls -l /mnt
total 0
$ ls -ld /mnt
drwxr-xr-x 2 root root 4096 Okt 18 2017 /mnt
sudo
command when it's your intentions to do something for the entire system, and not your personal space. Usingsudo
in your personal space can break the normal access. Welcome to AU!