Skip to content

Instantly share code, notes, and snippets.

@jamesgolick
Created January 22, 2010 17:40
Show Gist options
  • Select an option

  • Save jamesgolick/283960 to your computer and use it in GitHub Desktop.

Select an option

Save jamesgolick/283960 to your computer and use it in GitHub Desktop.
[root@master2 ~]# ll foo/
total 0
[root@master2 ~]# ll bar/
total 12
-rw-r--r-- 1 root root 0 Jan 21 16:45 baz
drwxr-xr-x 2 root root 4096 Jan 21 16:45 dirinbar
[root@master2 ~]# cp -R bar/* foo/
[root@master2 ~]# ll foo/
total 12
-rw-r--r-- 1 root root 0 Jan 21 16:46 baz
drwxr-xr-x 2 root root 4096 Jan 21 16:46 dirinbar
[root@master2 ~]# cp -R bar/* foo/
cp: overwrite `foo/baz'? y
[root@master2 ~]# ll foo/
total 12
-rw-r--r-- 1 root root 0 Jan 21 16:46 baz
drwxr-xr-x 2 root root 4096 Jan 21 16:46 dirinbar
[root@master2 ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment