K
K
Kirill Larin2021-12-07 18:10:35
linux
Kirill Larin, 2021-12-07 18:10:35

How to move everything from folder to folder in linux?

How to move everything in a folder to another folder?

For example from /var/www/ to /var/backup/ in the terminal

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Korytko, 2021-12-07
@heemsing

This can be done with the mv operation
mv /var/www/fileName.file /var/backup
From the terminal, you can call the detailed manual for the operation by entering "man mv"

D
Drno, 2021-12-07
@Drno

https://g.zeos.in/?q=%D0%BF%D0%B5%D1%80%D0%B5%D0%B...
mv command

D
Dvach, 2021-12-07
@Dvach

In this example,
mv /var/www/* /var/backup/
* - any sequence of characters, i.e. all files fit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question