5,838
edits
Line 702: | Line 702: | ||
To make a new folder in the current directory, type <tt>sudo mkdir folder_name</tt>. | To make a new folder in the current directory, type <tt>sudo mkdir folder_name</tt>. | ||
To remove a directory type in a particular path, type <tt>rmdir /path/directory</tt>. | To remove a directory type in a particular path, type <tt>sudo rmdir /path/directory</tt>. Normally, you need to remove all contents before you can remove the directory. If you are sure it is safe to remove directory and contents in one go, type tt>sudo rmdir -r /path/directory</tt>, but remember the contents are gone for ever, so be absolutely sure you have specified the right folder! | ||
To copy folders/files from one directory to another use <tt>cp -R --update --preserve /home/pi/CumulusMX/backup/daily /media/pi/data/CumulusMX/archive</tt> | To copy folders/files from one directory to another use <tt>cp -R --update --preserve /home/pi/CumulusMX/backup/daily /media/pi/data/CumulusMX/archive</tt> |
edits