copy_move_delete
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
copy_move_delete [2016/08/21 11:33] – walkeradmin | copy_move_delete [2017/01/12 20:08] – walkeradmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Copy Move Delete ===== | ===== Copy Move Delete ===== | ||
+ | <color darkorange> | ||
\\ | \\ | ||
\\ | \\ | ||
- | To copy a file use <color darkred> | + | To <color darkred> |
To copy a file use: | To copy a file use: | ||
cp filename path/ | cp filename path/ | ||
Line 11: | Line 11: | ||
\\ | \\ | ||
Copying Directories (and contained files) | Copying Directories (and contained files) | ||
- | |||
To copy a directory | To copy a directory | ||
cp -avr source_directory destination_directory | cp -avr source_directory destination_directory | ||
Line 21: | Line 20: | ||
\\ | \\ | ||
The attributes <color darkred> | The attributes <color darkred> | ||
- | \\ | ||
a | a | ||
v Show results | v Show results | ||
Line 27: | Line 25: | ||
\\ | \\ | ||
\\ | \\ | ||
+ | To <color darkred> | ||
+ | To Move a file | ||
+ | mv source destination | ||
+ | |||
+ | To move a file called test.txt from /home/pi to / | ||
+ | mv / | ||
+ | |||
+ | mv works with directorys too | ||
+ | To move the folder / | ||
+ | mv / | ||
+ | \\ | ||
+ | \\ | ||
+ | To <color darkred> | ||
+ | To Delete a file | ||
+ | rm filename | ||
+ | |||
+ | To delete a directory (even if it is empty) | ||
+ | rm -R directory | ||
+ | \\ | ||
+ | \\ |
copy_move_delete.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1