Tagged Questions
3
votes
3answers
89 views
What filesystem should be used when transfering files between Linux systems?
I often need to move files between two Linux computers via USB. I use gparted to format the USBs. When I formatted the USB to use FAT32, the USB was unable to copy symlinks, so I had to recreate the ...
2
votes
3answers
1k views
How to clone/copy all file/directory attributes onto different file/directory?
I want to copy the attributes (ownership, group, ACL, extended attributes, etc.) of one directory to another but not the directory contents itself.
This does not work:
cp -v --attributes-only A B
...
9
votes
2answers
220 views
How can I copy a file and create the target directories at the same time?
I want to cp aaa/deep/sea/blob.psd to bbb/deep/sea/blob.psd
How do I do the copy if the deep and sea directories don't exist under bbb so that the copy both creates the directories that are needed ...
3
votes
1answer
1k views
bash force copy over same file
Our sysadmin has created a backup system that creates snapshots of the hard drive.
When I try to restore an older version from the snapshot:
cp /path/to/snapshots/foo.bar /path/to/folder/foo.bar
...
0
votes
1answer
666 views
How to copy files nested in directories that match a pattern?
I'm looking to copy files from subdirectories that match this pattern
vendor/plugin/*/tasks/*.rake
into a folder
lib/tasks
I think that this could be done several ways, but wanted to see if a ...