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
Related videos on Youtube
![Vinay Kumar D](https://i.stack.imgur.com/5FVOF.jpg?s=256&g=1)
Author by
Vinay Kumar D
Updated on September 18, 2022Comments
-
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 over 7 yearsit might be that he uses a shell where cp is already alias to cp -i or something like that (similiar to what Aaron answered)