I'm not quite sure what just happened, all I did was running:
~/Desktop$ mv sublime.desktop \~/.local/share/applications/
\ sign before
~/.local came up as autocomplete, so I thought it was okay to run it.
But instead of moving the desktop file to
/.local/share/applications/ (which was my intention), the command created new folder on Desktop. (The
~ was folder)
Liso@thinkpad:~/Desktop$ ls ~ backup.sql Apps
When I tried to remove
~/Desktop$ rmdir ~ rmdir: failed to remove ‘/home/liso’: Permission denied
So what am I missing actually ?
@Ravexina ask me to ran
test command to confirm whether it was a directory or a file.
Liso@thinkpad:~/Desktop$ test -d \~ && echo "it's a dir" it's a dir`