OK; I got into a small pickle. I set a new file area, in Mystic, to'~/files/userromadds'. For some reason, what Mystic did in this situation is add a sub-directory in my ~/mystic (main bbs) directory named '~'. Inside of that /home/pi/mystic/'~'
rm -r ~ , poof goes my system. I think if I type:
rm -r '~' , poof goes my system.
Re: CLI Linux help, directories and rm -r..
By: paulie420 to All on Wed Dec 01 2021 02:12 pm
Hey Paulie,
OK; I got into a small pickle. I set a new file area, in Mystic, to '~/files/userromadds'. For some reason, what Mystic did in this situati add a sub-directory in my ~/mystic (main bbs) directory named '~'. Insi that /home/pi/mystic/'~'
rm -r ~ , poof goes my system. I think if I type:
rm -r '~' , poof goes my system.
OK, I would do this (avoid rm -r).
You should be able to change into that directory with cd \~ (when you
are in it's parent).
ls -al (make sure its empty, and do what you need to do to make it
empty.)
"cd" to the parent
rmdir \~ (if it fails it wont below up your home directory :)
OK, I would do this (avoid rm -r).
You should be able to change into that directory with cd \~ (when you are in it's parent).
ls -al (make sure its empty, and do what you need to do to make it empty.)
"cd" to the parent
rmdir \~ (if it fails it wont below up your home directory :)
Yes, what he said above.
Remember that ~ is a reserved alias for home, but if you managed to make
a folder with that char, you would need to escape it, like you would for other special chars, like - for example.
The other way you could do it, seeing as you have a desktop environment
on that pi (right?) is just run nautilus to the parent directory and
then just select and delete that folder as you would in the file manager for any other directory, if that makes it feel safer.
I can understand the hesitation to try rming with the escape character, but you could just rename the directory the same way.
if this command shows you what's in the directory:
ls <slash><tilde>
then this command will rename it to newdir:
mv <slash><tilde> newdir
OK, I would do this (avoid rm -r).
You should be able to change into that directory with cd \~ (when you
are in it's parent).
rmdir \~ (if it fails it wont below up your home directory :)
Sysop: | CyberNix |
---|---|
Location: | London, UK |
Users: | 22 |
Nodes: | 10 (0 / 10) |
Uptime: | 35:27:12 |
Calls: | 903 |
Files: | 4,771 |
Messages: | 715,489 |