User Tools

Site Tools


copy_move_delete

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
copy_move_delete [2016/08/21 11:24] walkeradmincopy_move_delete [2016/08/21 11:31] walkeradmin
Line 9: Line 9:
     To copy the file test.txt to the folder /home/pi/new     To copy the file test.txt to the folder /home/pi/new
     cp test.txt /home/pi/new     cp test.txt /home/pi/new
 +\\ 
 +
 +    To copy a directory
 +    cp -avr source_directory destination_directory
 +    
 +    To copy the directory /home/pi/dir1 to the folder /home/pi/test
 +    cp -avr /home/pi/dir1 /home/pi/test
 +    
 +    Now you will have a /home/pi/test/dir directory
 +\\ 
 +The attributes <color darkred>-avr</color> represent
 +\\ 
 +    a   Preserve the specified attributes such as directory and file mode, ownership, timestamps, etc.
 +    v   Show results
 +    r   Recursive, action all subfolders and files.
 \\  \\ 
 \\  \\ 
  
copy_move_delete.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1