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

КОМЕНТАРІ • 10

  • @LalitSingh-fr7fy
    @LalitSingh-fr7fy 2 роки тому +1

    Nice

  • @KapilBodhare15
    @KapilBodhare15 Рік тому +1

    How can I move all files in single shot to another directory? Any command for that?

  • @kumartraining
    @kumartraining  4 роки тому

    www.cyberpratibha.com/mv-command-to-move-a-directory-in-linux/

  • @VulcanOnWheels
    @VulcanOnWheels 2 роки тому +1

    Hoping that you understand English...
    Why do you give your video an English title and then only speak...is it Hindi?

    • @kumartraining
      @kumartraining  2 роки тому

      Practical can be understood by everyone

    • @kumartraining
      @kumartraining  2 роки тому

      Practical can be understood by everyone

    • @VulcanOnWheels
      @VulcanOnWheels 2 роки тому

      @@kumartraining At least by those who understand English, but that ability is useless to the viewer if your video is in Hindi.

    • @harshil1003
      @harshil1003 Рік тому

      but it is good for some indian students like me

  • @vijjugamerboy9071
    @vijjugamerboy9071 2 роки тому

    Che