Как переименовать файлы в Linux с помощью командной строки в терминале?

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

Let VAL show you how to use the command line in the Linux terminal to rename files.

GROW YOUR CAREER WITH LINUX ️
(Learn and get certified by the experts at the Linux Foundation with this affiliate link)

To rename a single file you can use the mv command. First type mv, then a space, the name of the file, a space, and the new name you wish the file to have. Then press Enter.

You can use ls to check the file has been renamed.

To rename multiple files, first install rename by entering sudo apt install rename.

Now if you want to change a load of jpg files to jpeg. Then type


rename 's/.jpeg/.jpg/' *.jpeg

Support the Channel

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.


Смотрите видео Как переименовать файлы в Linux с помощью командной строки в терминале? онлайн без регистрации, длительностью 01 минут 37 секунд в хорошем hd качестве. Это видео добавил пользователь Virtual Assistant for Linux 21 Август 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 28 раз и оно понравилось 1 людям.