Questions tagged as ['copy']

Noticed something a bit strange several weeks ago when I tried to Copy & Paste something off the desktop. I download items off the Internet to my desktop then use Copy & Paste into an appropriate file elsewhere. Somehow, I lose the paste function.
After a whole bunch of error, I did find a workaround by sending the file off the desktop to Trash. Once in Trash, I can Copy & Paste into ...
Copying from Windows 10 -> Ubuntu LTS 20.04
I want to use USB because the Ubuntu box is to be secure and not access any resources on the LAN nor have any online accounts.
I am running bitlocker on my Windows PC. I'm not sure if that's relevant. When I copy files I run into two different problems, say with a simple text file:
- The file extension is the same but the error message opening it is "Y ...
I am trying to copy a folder as a root user from my local machine to my server using the command
sudo scp -r simple-app.zip james@ip:/home/jobs
But I keep getting permission denied every time. And this is after I have logged into my server successfully.
I need help doing this.
I want to use an Ubuntu live CD and copy a folder between my two Windows hard disks.
However, I get an error saying that I don't have permission to do it.
How can I do this?
I am trying to copy the files modified from specific date to current date from Source server to target server with same directory structure. I have created the script for copying files from Source directory to target directory in same server. Now looking for 2 different Linux servers.
Source server: Source34.abc.net
Directory and files: /home/Amal/db/tmp/File1.txt, /home/Amal/db/work/File2.txt, /hom ...
I am trying to copy the files from source to Target folder which has been modified between 2 dates,
#!/usr/bin/ksh
source=/home/Amal/DELTA/SOURCE
target=/home/Amal/DELTA/TARGET
cd $source
find ./ -type f -newermt "2021-07-08 00:00:00" ! -newermt "2021-09-18 23:59:55" -printf "%h:%p:\0" |
while IFS=":" read path file; do
cp "$file" "$target"/"$path"
done
NOTE: Source and directory is having same ...
I am not able to copy/move files on SD card, the button is not activ.I don't know why I can't now, whit some time ago was no problem.I tryed to do this using the terminal, the code and error was this:
stefan@stefan-desktop:~$ mv /home/stefan/Desktop/tipuri_CD.pdf /media/stefan/46A4-D3FD
mv: inter-device move failed: '/home/stefan/Desktop/tipuri_CD.pdf' to '/media/stefan/46A4-D3FD/tipuri_CD.pdf'; un ...

How can I copy files to some destination folder such that
- Access rights are derived from umask, i.e. the copied files and folders should behave with this respect as if they have been newly created. - I know that one can apply chmod recursively to a directory branch and all subbranches, but that would also affect other files, not just the copied ones.
- The owner and group are taken from the destination ...
I have to copy wordpress from the give path to htcdocs directory :-/var/www/html/wordpress and I have to copy this wordpress to /opt/lampp/htcdocs . Direct copy paste is not allowed. I tried different commands and ended up with errors
Hi there I've written a script to backup my cache and etc directory. Just trying to decided whether or not to use cp or rsync. It's important that all files are copied with permissions preserved.
I Recently Installed Ubuntu Mate And Used Ubuntu As Desktop Environment I've Faced A Problem OF Copying/Creating A new Dir I've used The Both Of
- sudo mount -o remount, rw
- chmod to Change The rw Permissions
i've solved the problem in certain drive/directories but i didn't work for some others
So Please , Can I Get Any Help??

I am trying to copy a folder recursively:
cp -r build/. '\\qum-oc2-01\rw\stage\Web01\Uploads\cms\'
I am getting the following error:
cp: cannot overwrite directory '\\qum-oc2-01\rw\stage\Web01\Uploads\cms/./static/js/bannerlogo.0ce4c429.chunk.js.map' with non-directory
What am I missing here?
I want to copy files from one folder to another, but I want to make the terminal ask for confirmation of copying files before copying each file. Is there any way?
I know there is cp -i
but that only asks before overwriting.

I use copyQ to capture the words I copy and paste into ubuntu, but I'm trying to find a word I copied and pasted yesterday but I can't find it in the copyQ interface, is there a way to capture everything I copied and pasted yesterday?
This seems to be a newbie question but I can't seem to find any specific answers. I am (finally) getting rid of my Windows 7 machine but need to copy all the data files off it to my Ubuntu. I transferred all the files onto a 2TB USB external HD. However, only some of the files are copying, I think because the permissions are not correctly set on those files. The files are tif, jpg, and pdf and I can ope ...
This script creates ten image files and copy over file(s) to them.
#!/bin/bash
# script to create multiple floppy images for installing hwp30
#+on virtualbox.
# umount image in case mounted
sudo umount /media/floppy
# create ten blank 2.88mb images.
#+then mount each image and copy over file(s).
for n in {1..10}; do
mkfs.msdos -C "hwp30-${n}.img" 2880
sudo mount -o loop "hwp30-${n}.img" /me ...
[These are the files I want to copy over][1]
Example command I have tried but does not work:
cp permanent_waiver_* /existingpath/newfolder1/newfolder2
This would give me error like no such file or directory.
I need to write a bash script which copies files from a folder to subfolders named after the files. For example, there is a common directory "For all", inside there are various files and directories. Files have names with the name of the owner plus some further symbols like tom1, tom2, tom3,... or scott1, scott2, scott3. Subfolders are named after the owners: tom and scott. I need to write a script to c ...
How to copy files from one file to another file that has contents I want to keep? In other words, I want the contents of file1 to go in file2 but the info in file1 to be added to the existing stuff in file2 ? The format in file2 should ideally have file2 info first then file1. Then I want to add file3 to file2 with the contents in file2 resulting in an output format of 1. File2 contents then 2. File1 co ...