How to copy all files with same extension to flash-disk in command line in Linux

Written by Administrator on Monday March 23, 2020

To copy files in linux we obvisously use command cp. In case we have a folder with files with same extension and want to copy all of them to connected flash-disk, we can use mask: *. For example, I have several .hccapx files and want to copy them on flash-disk:

$ cp *.hccapx /media/lovermann/DISK1/

Now, let's check, if files are copied:

As we see, all files were successfully copied to flash-disk. Well done!

Category: linux Tags: terminal hccapx copy