Linked Questions

0 votes
1 answer
12k views

Copying a folder using terminal [duplicate]

I want to know how to copy a folder from a desktop to an external disk like pen-drive using terminal in Ubuntu 16.04. The name of the disk is /dev/sdb1 in my system. What is the exact command for ...
Amithkumar A's user avatar
1 vote
3 answers
5k views

Copy all files from one folder to another [duplicate]

I want to copy all the images from one folder to another. I have tried this !cp -r /content/COVID-19\ Radiography\ Database/COVID-19 /data but this creates a folder COVID-19 in the data folder, and I ...
Talha Anwar's user avatar
-6 votes
2 answers
28k views

How to copy files in Terminal as root user [duplicate]

I have 7000 files I would like to copy to a folder from home/Videos to /usr/share/someplace. How do I do this?
Adwaremanmanman's user avatar
1 vote
1 answer
5k views

How to copy everything from one directory to another using 'cp' command? [duplicate]

I know that we can copy things from one directory to another using the command: cp -Ri /path/one/* /path/two/* Here: R = recursive i = interactive My questions: Does this command copy everything? ...
rtecxs's user avatar
  • 183
-6 votes
1 answer
2k views

Move whole content from a flash drive into system using terminal [duplicate]

I am working on an project which is based on system security.I want to move all data from a flash drive into my system hidden folder.But I don't know how can i do this in a single terminal command(...
Nitin's user avatar
  • 101
103 votes
7 answers
153k views

How can I view a progress bar when running rsync?

I am using Ubuntu 12.04 as a repo and would like to view a progress bar when using rsync from the command line. I tried the option suggested in this article (-P), but I prefer to see a progress bar ...
Joseph Smith's user avatar
  • 1,153
0 votes
2 answers
3k views

Copy all from a folder into the project root directory

I have a web project with the following structure: application/ dumps/ nginx/ logs/ .git/ docker-compose.yml Dockerfile README.md .gitignore For several reasons, I would like to dissolve the ...
Maik Lowrey's user avatar
0 votes
1 answer
508 views

How Can I Merge Multiple Directories into One keeping the subdirectories

I have multiple directories and each one contains multiple subdirectories. How do I send all subdirectories to the same directory?
Victor H. De Oliveira Côrtes's user avatar
1 vote
1 answer
294 views

How to: Command line directory duplication?

I use terminal/the command line on a daily basis for front end web development. As an example: Today, from the command-line I was trying duplicate a project to make a responsive web page design ...
ConstantFun's user avatar
0 votes
2 answers
309 views

Run a command for all directories [duplicate]

I have a lot of directories that contain some text files and I would copy all files (of all directories) in a new directory. I'm looking for a bash command that do this. How can I do it?
linofex's user avatar
  • 554