A
A
Atlanta2018-09-23 16:27:30
bash
Atlanta, 2018-09-23 16:27:30

How to move several files to another folder at once in the linux terminal?

After this command ( ~$ ls | grep '.jpg' ) I have a list of files that I want to move to another folder. Please tell me how to do this without moving one file at a time?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Teslaman, 2018-09-23
@Atlanta_Boston

mv ./*.jpg /papka/eshe_odna/finish/
Actually, this command alone is enough, grep is not needed.

T
textmode, 2018-09-23
@textmode

If the option of moving by mask is not suitable, there is a way to specify specific files:
mv {file1,file2,file3} /destination_folder/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question