LinuxMoz

Linux Stuff && Coffee

Linux Copy All Files in a Directory

| Comments

How to copy all files in a directory on Linux / Unix based operating systems from the command line using the cp command (the linux file copy command).

Linux Copy All Files

First of all change into the directory you wish top copy the contents of:

1
cd /blah/dir

To copy all files in a directory, enter the following command:

1
cp * /destination/dir/

Drop me a comment below if this article on how to copy all files in a directory helped you out :)

Comments