How Do You Use the Copy Command in the Linux Terminal?

Опубликовано: 21 Август 2021
на канале: Virtual Assistant for Linux
49
1

cp (Copy) is a command used for copying files and directories in Linux.

To copy a file with the cp command pass the name of the file to be copied and then the destination.

For example, by running the below-mentioned command will copy a file background.jpg to a Pictures/ directory.

cp background.jpeg Pictures/

If you want to copy the file under a different name, you need to specify the desired file name.

cp background.jpeg new-logo.jpeg

To copy multiple files, pass the names of files followed by the destination directory to the cp command.

cp new-logo.jpeg thisfile.txt ~/Documents/

To copy a directory, including all its files and subdirectories, use the -r (recursive) option.

For example, we are copying the directory Documents to Docs_bckp.

cp -r Documents/ Docs_bckp/



VAL utilises the following open source software.
GIMP for thumbnail.
Openshot for video editing.
Mimic for speech.
Kazam for screen recording.
Terminology for terminal emulator.
Featherpad for text editor.
Midnight Commander for managing files.
MX Linux operating system.


Смотрите видео How Do You Use the Copy Command in the Linux Terminal? онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Virtual Assistant for Linux 21 Август 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 49 раз и оно понравилось 1 посетителям.