Sunday, 19 October 2014

Linux OS command to copy folder/directory and all its contents to another folder/directory


root@Microknoppix:~/vmware#
root@Microknoppix:~/vmware#
root@Microknoppix:~/vmware# pwd
/root/vmware
root@Microknoppix:~/vmware# cp -avr /root/vmware /media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup

knoppix@Microknoppix:~$
knoppix@Microknoppix:~$
knoppix@Microknoppix:~$ sudo su
root@Microknoppix:/home/knoppix# cd /media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup#
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup#
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup#
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup# ls -alh
total 2.0K
drwxrwxrwx 3 knoppix knoppix 72 Oct 20 05:38 .
drwx------ 53 knoppix knoppix 2.3K Oct 20 05:28 ..
drwxrwxrwx 3 root root 88 Oct 20 05:24 vmware
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup# ls -alh
total 2.0K
drwxrwxrwx 3 knoppix knoppix 72 Oct 20 05:38 .
drwx------ 53 knoppix knoppix 2.3K Oct 20 05:28 ..
drwxrwxrwx 3 root root 88 Oct 20 05:24 vmware
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup#


root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup#
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup# ls -alh
total 2.0K
drwxrwxrwx 3 knoppix knoppix 72 Oct 20 05:38 .
drwx------ 53 knoppix knoppix 2.3K Oct 20 05:28 ..
drwxrwxrwx 3 root root 88 Oct 20 05:24 vmware
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup# cd vmware
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup/vmware# ls -alh
total 0
drwxrwxrwx 3 root root 88 Oct 20 05:24 .
drwxrwxrwx 3 knoppix knoppix 72 Oct 20 05:38 ..
drwxrwxrwx 3 root root 344 Oct 19 23:46 Windows_XP_Professional
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup/vmware# cd Windows_XP_Professional
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup/vmware/Windows_XP_Professional#
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup/vmware/Windows_XP_Professional# ls -alh
total 3.9G
drwxrwxrwx 3 root root 344 Oct 19 23:46 .
drwxrwxrwx 3 root root 88 Oct 20 05:24 ..
drwxr-xr-x 3 root root 80 Oct 17 15:06 caches
-rw-r--r-- 1 root root 598K Oct 19 23:46 vmware.log
-rw------- 1 root root 8.5K Oct 19 23:46 Windows XP Professional.nvram
-rw------- 1 root root 3.9G Oct 19 23:46 Windows XP Professional.vmdk
-rw-r--r-- 1 root root 0 Oct 17 14:50 Windows XP Professional.vmsd
-rwxr-xr-x 1 root root 2.7K Oct 19 23:46 Windows XP Professional.vmx
-rw-r--r-- 1 root root 3.9K Oct 17 15:05 Windows XP Professional.vmxf
root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup/vmware/Windows_XP_Professional#

root@Microknoppix:/media/sda2/home/knoppix/Downloads_4617/vmware_xp_backup/vmware/Windows_XP_Professional#  

No comments:

Post a Comment