How to use cp command in Linux with Examples Explaination

Поділитися
Вставка
  • Опубліковано 29 сер 2024
  • 🔐 Ready to Level Up Your Cybersecurity Skills? 🔐
    📲 Download Our FREE Cybersecurity Training App! bit.ly/kumartr...
    Today, I will explain in Hindi How to use cp command in Linux with Examples, cp command is a short form of copy, and used to copy files and directories in Linux.
    You can use cp command in Linux/Unix based operating system including centOs, RHEL, Ubuntu, Fedora, Kali Linux, and Arch Linux, etc.
    I know how to copy files in Linux by using cp command, but on same when I tried to copy Documents directory, and I got the following error “cp: -r not specified; omitting directory ‘Documents'”
    Are you facing the same problem?
    Are you a new user of Linux and don’t know , I cover how to copy the directory in Linux with all possibilities.
    So you will not face any problem in future to copy directory in Linux
    *****************************
    ✅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
    #linuxtutorial #linuxcommands #cpcommand

КОМЕНТАРІ • 14

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

    Thanks sir

  • @khushhalibarnoliya5497
    @khushhalibarnoliya5497 3 роки тому

    Thanku sir aapne bhut ache se alg alg trh se btaya ki cp command ko kese use kr skte h

  • @OSKHAROL
    @OSKHAROL 4 роки тому +2

    Nice to see

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

    I hav a doubt let's say there are 2 files A and B and I want to copy something from A and paste it in B but not by replacing wat is in B wats the command for that??

  • @Sunil66851
    @Sunil66851 2 роки тому +2

    I have done same thing for copying the file as u said , but it is showing -r not specified omitting directory , so wht is the reason for tht ?

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

      Your are going to copy a directory so you are getting this error,
      use cp -r

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

      @@kumartraining ok

  • @rajurajesh7165
    @rajurajesh7165 2 роки тому +2

    Would have been better if English was used

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

    Hey sir i want to cont.. You plz