diff --git a/linux_notes.txt b/linux_notes.txt index 32f36afd..0d7be76e 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -44,6 +44,17 @@ And decompress directory: gpg -d folder.tar.gz.gpg | tar -xvzf - +To mount a usb drive via terminal: +cd /mnt +mkdir media +mkdir media/usb-drive + +mount /dev/sda1 media/usb-drive + +And to unmount the usb drive: + +umount media/usb-drive + (make sure to clear your history afterwards) history -c