If I'm in another folder, how do I run a command like wget to download in ~ /home/user folder with name it has already?
So that in since we dont know user home name is it /root or is it /home/user1 or /home/user2
Like
wget www.website.com/.tmux.conf -O ~
~user2
is the home directory ofuser2
, the directory~root
is the home directory ofroot
. Then apply the solution for the duplicate to save in the correct directory. – Kusalananda Mar 26 '21 at 20:46user
", the home directory for that user is~user
. If you have further issues about this, then you must update your question to clarify what it is that you don't currently understand. It's also unclera, currently, who is running thewget
command. Is it one of the users? If so, the home directory of that user is~
or$HOME
as Artem says in their answer. – Kusalananda Mar 29 '21 at 08:50