richielky
Mission Specialist
Mission Specialist
  • 840 Views

Create Wrong Folder Name Label ‘~’ in /

If we accidentally create a wrong folder name label as  ‘~’ in / as a root user, how can we remove them safely?

If we issue a # rm –fr ~ will it remove the whole of ‘/home/root’ folder?

Labels (1)
0 Kudos
1 Reply
Alexandre
Starfighter Starfighter
Starfighter
  • 836 Views

Hello

Try to use   back slash    \~ 

To avoid any issue try at first something like :    ls \~   or rmdir \~

only at last    rm -rf \~

Join the discussion
You must log in to join this conversation.