Linux Move and Rename files and folders mv command
How to Move files and folders
How to Rename files and folders
Command Syntax
1. Move Files or Folder
mv [OPTION] [SOURCE] [DESTINATION]
ex:
mv -v Example1 Example2 /var/Dest
Move all files or folders
mv -v * /var/Dest
Move all C files
mv -v *.C /var/Dest
2. Rename File or Folder
mv [OPTION] [SOURCE NAME] [NEW NAME]
ex:
mv -v Example1 Example2
-v verbose: prints the list of renamed files along with their new names
-n “no action:” a test mode or simulation which only shows the files that will
be changed without touching them
-f a forced overwrite of the original files
Nguồn:https://ftlinuxcourse.com/
Xem thêm Bài Viết:
- Trải nghiệm mới hay ho với hướng dẫn cài Mac Os trên vmware
- Bật mí cách cài đặt ssl miễn phí lên Let’s Encrypt
- Tuyệt chiêu tạo usb boot kali linux đơn giản dành cho bạn
- Hướng dẫn chi tiết từ A – Z các bước cài đặt Python trên Windows 10
- Bật mí quy trình cài đặt Kali Linux trên Vmware đúng chuẩn và chi tiết
Comments