cancel
Showing results for 
Search instead for 
Did you mean: 
richielky
Mission Specialist
Mission Specialist
  • 1,357 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
  • 1,353 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.