02-19-2022, 08:23 PM
Quote:sudo date -s "$(wget --method=HEAD -qSO- --max-redirect=0 google.com 2>&1 | sed -n 's/^ *Date: *//p')"
|
Unix Sync Time - Unix
|
|
02-19-2022, 08:23 PM
Quote:sudo date -s "$(wget --method=HEAD -qSO- --max-redirect=0 google.com 2>&1 | sed -n 's/^ *Date: *//p')"
06-14-2026, 03:58 PM
How to Copy Linux Folders to a Windows USB Drive
If you've ever tried copying files from a Linux server to an external drive (formatted as NTFS or exFAT) using rsync, you likely ran into a wall of "Operation not permitted" errors. This is because Windows filesystems don't support Linux file permissions or symbolic links. 1. Mount Your Drive First, create a mount point and connect your drive. (Note: Verify your device identifier with sudo fdisk -l, as it may change depending on your setup.) Code: sudo mkdir -p /media/usb2. The "Safe Copy" Command Use this command to bypass permission errors and convert shortcuts (symlinks) into real files: Code: sudo rsync -ahL --progress --no-owner --no-group --no-perms /home/me/nb/ra /media/usb/Why these flags?
3. Safely Unmount Always flush the data buffers and unmount before unplugging to prevent data corruption: Code: synchttps://www.forum4hk.com |
|
« Next Oldest | Next Newest »
|