How to cp files from sources to destination without using alias or non-alias and without getting confirmation/prompts?

5,083

Command Without Alias

Any unix command can be prefixed with \ to get the non-alias version.

With Alias

#-(0) :: /dev/shm/test2 > ls
total 0
-rw-------. 1 root 0 Feb 24 16:29 a
-rw-------. 1 root 0 Feb 24 16:29 b
-rw-------. 1 root 0 Feb 24 16:29 c
-rw-------. 1 root 0 Feb 24 16:29 d

Without Alias

#-(0) :: /dev/shm/test2 > \ls
a  b  c  d
Share:
5,083

Related videos on Youtube

Vinay Kumar D
Author by

Vinay Kumar D

Updated on September 18, 2022

Comments

  • Vinay Kumar D
    Vinay Kumar D almost 2 years
    $ cp /source/* /destination/ 
    cp: overwrite `/destination/file1.conf`
    

    Aim is to copy files from source to destination without getting prompt or using non-alias(/) method.

  • Dennis Nolte
    Dennis Nolte over 7 years
    it might be that he uses a shell where cp is already alias to cp -i or something like that (similiar to what Aaron answered)