• 1 Post
  • 41 Comments
Joined 1 year ago
cake
Cake day: July 22nd, 2023

help-circle





  • ~ is a “aliás” to your user home directory. If you are anywhere and want to copy something into your documents folder you can do cp file.txt ~/Documents instead of cp file.txt /home/username/Documents

    So by typing rm ~ it actually deleted the /home/username directory instead of the ~ file in it.

    I think rm '~' does delete the file.