I need to transfer files from my local machine to my Arduino Yun.
I have tried:
scp /Users/SSCirrus/Documents/index.html [email protected]:/root
scp ~/Users/SSCirrus/Documents/index.html [email protected]:/root
# No such file or directory (referring to my desktop)
I have confirmed that the filepath is accurate. What's wrong here?
asked Jun 11, 2015 at 7:19
1 Answer 1
Try ~/Documents/index.html
The ~
represents the current user's home directory, so ~/Documents
is the Documents folder for the current user. It means you don't have to make sure you have spelled the user's home directory exactly right.
Other options are:
$HOME/Documents/index.html
Documents/index.html
(if you are in your home directory)cd ~/Documents
then just useindex.html
... the list goes on ...
answered Jun 11, 2015 at 17:22
~/Documents/index.html