Questions tagged [copy]
407 questions
134
votes
7 answers
how do you copy a directory and its contents to a new location under a new directory name?
I'm new to the Linux command line and am trying to get to grips with the copy command at the moment.
Can anyone please tell me if it's possible to copy a directory with its subdirectories and associated files to a new directory with a new name, e.g.…
Edmuntu
- 1,353
74
votes
7 answers
How do I copy a file larger than 4GB to a USB flash drive?
I am trying to copy a 6GB file to a USB flash drive but it won't copy.
VJ Ranga
- 1,539
51
votes
5 answers
Copy and paste doesn't work in the terminal
Before you go marking this as a dupe, I know about Ctrl+Shift+C and Ctrl+Shift+V
I try to use them, and it doesn't work. On one particular Ubuntu computer, normal copy paste commands do not work: They do not work locally, and they do not work via…
j0h
- 15,365
45
votes
2 answers
Copy file to current directory?
How to copy a file in current directory? e.g. I have a file at /abc/xyz and I am in the current directory mno -- I want to copy a file from /abc/xyz/file.txt into mno.
cp command:
cp /cp_file_path /Destination_path
But what about destination…
Avani badheka
- 2,506
31
votes
3 answers
Copying files from PC to Pendrive gets stuck at the end on Ubuntu 16.04
I don't know why it's happening only to me. Whenever copying bigger or sometimes smaller < 1GB files from PC to pendrive literally gets stuck at the end.
Rajesh Chaudhary
- 931
25
votes
1 answer
No progress bar when copying files with newer versions of Nautilus (Ubuntu 17.10 and later)
When copying or moving files on Ubuntu 17.10, I can't see any progress bar. I checked as well all opened windows but I can't see any progress window.
Please any ideas or suggestions would greatly be appreciated.
Ken
- 1,913
21
votes
1 answer
What conv=fsync does in dd command-line utility
I am copying yocto build linux image to sd-card from Ubuntu 14.04 system. The command is:
$ sudo dd bs=4M if=filename.rpi-sdimg of=/dev/sdX conv=fsync
What does mean here of
conv=fsync
I red from here
Synchronize output data and metadata just…
TonyParker
- 393
19
votes
2 answers
Create a copy of virtualenv locally without pip install
Sometime there is a need to create a copy of exiting virtualenv to test extra features of our project.
In such a case we need to create a copy of the existing environment and add few more requirements.
One of the way to create a copy of existing…
Saurav Kumar
- 15,174
17
votes
4 answers
text highlighting (select to copy) stopped working in the terminal
I have a weird effect in one workstation: suddenly, the system does not allow me to copy text from a terminal to paste it somewhere else by simpling selecting it.
I can still paste into the terminal the text that I select in other windows. The…
Arabarra
- 171
17
votes
2 answers
Ctrl + C & Ctrl + V not working in 16.04
I am not able to copy paste using keyboard shortcuts (CTRL+V and CTRL+C). It is not working globally on my Ubuntu 16.04. CTRL+A is working fine however. How can I fix it? I would be able to add a custom shortcut? If yes, please tell me how.…
user227495
- 4,309
17
votes
1 answer
Copy and paste issue with Ubuntu 19.10
Since updating on Ubuntu 19.10 I have to copy a text twice to insert it. This issue occurs when I want to copy a password from a file opened inside LibreOffice Writer to Firefox.
How can I solve the problem?
tuxine
- 171
- 1
- 5
15
votes
3 answers
How do I copy the contents of every file in a list into another file?
I have a list of filenames inside a file called list_of_files.txt.
I want to copy the contents of each file in that list into another file called all_compounds.sdf.
How should I do this from the command line?
Ramita Rajaa
- 151
15
votes
5 answers
Recursively copy files from one directory to another
I have all my music in a folder /media/kalenpw/MyBook/Music/ABunchOfOtherFoldersWithFilesInside. I want to copy all of the mp3s to /media/kalenpw/HDD/Music so I used:
cp -R /media/kalenpw/MyBook/Music/*.mp3 /media/kalenpw/HDD/Music
however this…
kalenpw
- 754
15
votes
3 answers
Do these file managers warn you when you try to copy files that there isn't enough space for?
If I try to copy 400 GB of files onto a drive that only has 390 GB of free space, will I be warned at the beginning of the operation? Or will I find out at the very end, when the space has run out?
I'm primarily interested in Nautilus, but I'd also…
Fiksdal
- 2,181
15
votes
1 answer
Copy file with smbclient and path to directory
I'm stuck in NT_STATUS_BAD_NETWORK_NAME error but can't understand what I'm doing wrong.
My objective: copy a file from ubuntu to windows in a simple command line to be called by php.
The problem: when I add more than one folder to the path it…
cassiano
- 253