Managed to delete the relative path option in linux by typing in rm .*
, now I can't change or add files to any directory. How can these be recovered? Running a ls -a
and the standard .
and ..
directories are missing. If I try to add them with mkdir
it says they already exist
1 Answer
Have you tried restarting your shell? The folder is likely not deleted.
rm .*
wouldn't be able to delete the current path because it doesn't specify the recursive -r
flag.
-
I restarted the shell and the relative paths seemed to be ok, but trying to vim any files I get E297: Write error in swap file. Doesn't seem to be a disk space issue as I was able to create several files before running the rm .* command Aug 9, 2018 at 19:53
-
rm
(without-r
) doesn't delete directories ... What sayspwd
? andls -ald $(pwd)
?