08-30-2010
When you say "copy a file" do you mean you want to copy one specific file one time or do you mean you have a reoccurring need to copy files?
Using scp is almost always the best option. It's secure, it's reliable and since you probably already have ssh set up, you probably don't need to set anything up that isn't already set up. If copying to/from windows you need to initiate the scp connection from an scp client (PuTTY is great) on the windows box for the no-need-to-set-anything-up claim to be true.
If you're trying to set up a regular automated copy, scp is still #1. You need to read up on using ssh keys for authentication. (Again the PuTTY manual is a good starting point if you're working from a windows perspective)
Other alternatives include putting the file on a web server, ftp server, smb server etc... but the conditions in which one of those would be better than scp are few. Could you tell us a little about why you don't want to use scp? Scp is the secure successor to rcp which is the remote version of cp, so I really think scp is what you want.
8 More Discussions You Might Find Interesting
1. Where do I download LINUX & UNIX?
where can i get a free copy of unix? any kind... (5 Replies)
Discussion started by: gregtampa
5 Replies
2. UNIX for Dummies Questions & Answers
hi, i am on linux 8. i wanted to copy a file from my a:\filename to my linux 8 /tmp directroy. how do i do this or any directions as in how to accompilsh. thanks (6 Replies)
Discussion started by: yls177
6 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
I have simple question as i am beginner , I have to copy one file from cd(compact disc) to my linux box on some directory. With which command and how can i do that?
Thanks
sam71 (2 Replies)
Discussion started by: sam70
2 Replies
4. UNIX for Dummies Questions & Answers
Dear All,
I am working with windoes OS but remote a linux machine. I wonder the way to copy an paste some part of a huge file in linux machine.
the contain of file like as follow:
...
dump annealling all custom 10 anneal_*.dat id type x y z q
timestep 0.02
run 200000
Memory... (2 Replies)
Discussion started by: ariesto
2 Replies
5. Shell Programming and Scripting
Hi Experts,
I want to copy a file from a Linux machine to another Linux machine or a windows machine shared drive.
I mean to say..
cp filename //hostname/shareddrive.
I don't want to mount. Is there any way we can do it.
Regards
Naree
Double post. Replies here moved to... (0 Replies)
Discussion started by: naree
0 Replies
6. SuSE
Hi Experts,
I want to copy a file from a Linux machine to another Linux machine or a windows machine shared drive.
I mean to say..
cp filename //hostname/shareddrive.
I don't want to mount. Is there any way we can do it.
Regards
Naree (1 Reply)
Discussion started by: naree
1 Replies
7. IP Networking
I have two PCs with Ubuntu 10.4 and DOS 5.0, which are connected with a 9 pins serial cable.
I need to copy some files from the Linux box to the DOS box.
I tried UUCP but it's too difficult and i didn't found a working client for DOS.
Can you help me? Thanks for any reply! (10 Replies)
Discussion started by: mghis
10 Replies
8. Shell Programming and Scripting
Hi experts
cp bin root src /mnt
but not copy bin/bigfile
any help?
( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum)
Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies
LEARN ABOUT ULTRIX
systemd-machine-id-commit.service
SYSTEMD-MACHINE-ID-COMMIT.SERVICE(8) systemd-machine-id-commit.service SYSTEMD-MACHINE-ID-COMMIT.SERVICE(8)
NAME
systemd-machine-id-commit.service - Commit a transient machine ID to disk
SYNOPSIS
systemd-machine-id-commit.service
DESCRIPTION
systemd-machine-id-commit.service is an early boot service responsible for committing transient /etc/machine-id files to a writable disk
file system. See machine-id(5) for more information about machine IDs.
This service is started after local-fs.target in case /etc/machine-id is a mount point of its own (usually from a memory file system such
as "tmpfs") and /etc is writable. The service will invoke systemd-machine-id-setup --commit, which writes the current transient machine ID
to disk and unmount the /etc/machine-id file in a race-free manner to ensure that file is always valid and accessible for other processes.
See systemd-machine-id-setup(1) for details.
The main use case of this service are systems where /etc/machine-id is read-only and initially not initialized. In this case, the system
manager will generate a transient machine ID file on a memory file system, and mount it over /etc/machine-id, during the early boot phase.
This service is then invoked in a later boot phase, as soon as /etc has been remounted writable and the ID may thus be committed to disk to
make it permanent.
SEE ALSO
systemd(1), systemd-machine-id-setup(1), machine-id(5), systemd-firstboot(1)
systemd 237 SYSTEMD-MACHINE-ID-COMMIT.SERVICE(8)