Skip to content
Out of interest, I programmed this bash script which helps me to copy anything from "Ubuntu Desktop" or any absolute path to usb drive or any other drive.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

🙌 Ubuntu: Copy Folder to USB or Any Other Drive

Copy folders from Desktop or other any absolute path to USB or any other drive in UBUNTU.

I programmed this script out of need. My motive was to copy a folder with files directly from my Desktop to USB.

⭐️ You just need to change "user" variable to your ubuntu "user" name.

// Change User
user=your current user's name

Note: This works fine for just folders (directories). And, all the files in that directory will get copied.

You can’t perform that action at this time.