MX on Linux: Difference between revisions

221 bytes added ,  09:55, 21 April 2021
m
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>. You lose any contents, so it is best to only use this whenthe directory is empty.
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>
5,838

edits