Quote:
Originally Posted by otter2244
I'm really not sure. How would I check to make sure that I'm in the working directory?
And I am extremely new to command line arguments so what is the corrent way to put in the filename? I have been entering it like this C:\dir\dir\file.txt?
|
You might be messing up the path name. Try this:
1. Type
pwd and look at the output. It tells you what directory you're in. pwd stands for "print working directory".
2. Type
ls or
ls -al to see if your file is in the current directory.
3. Let's assume it is in this directory and it's a file called
tracklist.txt, and you want to scp it to a server with the IP of 123.45.67.890.
4. Type this
Quote:
scp tracklist.txt otter@123.45.67.890:
|
The above copies tracklist.txt to your home directory on the server with the IP 123.45.67.890
Note that you need to have an account on said remote server in order for you to be able to scp to it. (scp means "secure copy").
5. If you want to copy to a specific directory on the remote server other than just the home directory, then include the path name at the end of the above mentioned command:
scp tracklist.txt otter@123.45.67.890:/home/otter/some-other-directory
Remember, if you don't have an account on the destination server, then you won't be able to copy.