Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3567

Installation • Can't get login screen after upgrading to Debian12

$
0
0
Is there a good, easy to understand tutorial on how to copy files to a USB stick in Debian using terminal commands?
If you know the device name of the USB stick and the location of the file you want to copy, it should be the same as copying files between any two devices. You'll have a command of the form

Code:

cp <filename_full_path> <destination_path>
That's the same in all Debian-based distros and I believe the same in Red Hat derived and even original Unix as well.

Now, finding the path for your USB stick may be a little more complicated. I saw

Code:

fdisk -l
recently as a way list all filesystems, though I usually use

Code:

lsblk
when I don't need every detail about each entry. Your USB will usually start with sd (for instance, with my three internal drives, the first USB stick I mount is sdd), so to copy myfile.zip from my Downloads folder to the root folder of the USB stick, I'd type

Code:

cp /home/user/Downloads/myfile.zip sdd/
As with everything else, you can use wildcards to copy multiple files with a single command; if I wanted to copy everything from my "USB Backup" folder (itself in my /home), I'd use

Code:

cp "/home/user/USB Backup/*.*" sdd/

Statistics: Posted by Silent Observer — 2024-09-02 19:58 — Replies 19 — Views 1518



Viewing all articles
Browse latest Browse all 3567

Trending Articles