Magicly deleted all files in /etc path.
How could these operations even possible delete all my files?
I've tried to clear my postgres files on my macbook, but unluckly removed all my /etc files.
I input "rm" command to remove it but no permission. Then I tried to get the root role, that got my files deleted. Magic "sudo su" command, isn't it.
macosuser@MacBook-Pro 12 % rm /etc/postgres-reg.ini
override rw-r--r-- root/wheel for /etc/postgres-reg.ini? y
rm: /etc/postgres-reg.ini: Permission denied
macosuser@MacBook-Pro 12 % sudo su
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
sh-3.2# rm -rf /etc/postgsymlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
res-reg.ini cd /etc/
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
^C
sh-3.2# ls
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
sh-3.2# pwd
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Thanks