Move files and Directory using mv command in Linux
Вставка
- Опубліковано 29 сер 2024
- 🔐 Ready to Level Up Your Cybersecurity Skills? 🔐
📲 Download Our FREE Cybersecurity Training App! bit.ly/kumartr...
mv command is a very basic command in Linux, used to transfer files and move files and directory in Linux from one location to another location. www.cyberprati...
#linuxtutorial #linuxcommands #mvcommandinlinux
I will explain everything about mv command so you will learn how to move folder in Linux without any headache.
Some basic conditions are below:
When you use multiple files or directories are given as a SOURCE, then the DESTINATION must be a directory, multiple files/directory contents can’t be move-in a single file. So the destination must be a folder. In this case, the SOURCE files will be moved to the target directory.
If your source is a single file/directory, and an existing directory is a destination, then the file/directory will be moved to the destination directory.
When your source and destination files/directory’s location are the same, but destination name differs from source then file and folder are renaming.
When the SOURCE is a directory and DESTINATION doesn’t exist, SOURCE will be renamed to DESTINATION. Otherwise, if the DESTINATION exists, it is moved inside the DESTINATION directory.
To move a file or directory, you need to have write permissions on both SOURCE and DESTINATION. Otherwise, you will receive a permission denied error.
For example, to move the file file1 from the current working directory to the /tmp directory you would run:
*****************************
✅Subscribe Now: / @kumartraining
*****************************
Do you Know Our Next Video Series?
Website Development Without Coding
RHCSA (RedHat System Administration Guide)
Kali Linux (a Hacking Operating System)
Ethical Hacking for Beginners Free
✅Our Blog: www.cyberprati...
✅Facebook Group: / cyberpratibha
Nice
How can I move all files in single shot to another directory? Any command for that?
mv /souce/folder/* /destination/folder
www.cyberpratibha.com/mv-command-to-move-a-directory-in-linux/
Hoping that you understand English...
Why do you give your video an English title and then only speak...is it Hindi?
Practical can be understood by everyone
Practical can be understood by everyone
@@kumartraining At least by those who understand English, but that ability is useless to the viewer if your video is in Hindi.
but it is good for some indian students like me
Che