Apologies if this seems too basic or has been asked before (I didn't find an answer when I searched but this is also my first time using this website) but I'm a complete beginner who is using Unix for lab research work (in biology- I've never taken a computer science course in my life) at university and this is my literal third day using the system.
I need to save a .txt output file that I have on our server to my personal computer and I'm not sure how. I've seen some resources online already that said I could use the command scp
but I'm not sure if that does the action I'm wanting (essentially saving the document to my desktop like you would do with a .doc on word) or how to make sure I'm directing it to the right place. These files are very large and take multiple days to run through all of the data so it's important that whatever command I use doesn't risk data loss so I don't ruin the data and have to start over. This is my best attempt at what I think the command should look something like-
scp myname@host:FileName.txt ~/Desktop/
However when I tried this my computer told me it couldn't find the file I had requested. Any advice? I'm not married to using the scp
command either if that isn't the best way of doing it. I don't think I can download any additional programs to save the file for me so that isn't an option, but I do know there's a get
command and I'm sure there's other ways too. It just feels really frustrating that I can't seem to figure out something so simple that there isn't a tutorial for it.
I'd really appreciate your feedback, thanks
FileName.txt
is in the home directory of usermyname
. Otherwise you need to specify the path to the file, e.g.scp myname@host:/path/to/FileName.txt ~/Desktop/
.