Whoa, whoa, whoa. Slow down there, baronbeefdip.
1) what will be the names of the flash drive and the partition?
Good question. Try checking the output of "dmesg" and maybe "fdisk -l /dev/[sh]d[a-z] | grep dev".
You could follow
stress_junkie's advice. If you plug in a new USB device, just "dmesg|tail -50" to check the last device name that was recognized by the system.
2) Will it copy hidden files?
"Hidden" files, as in those files that have a dot as their first character? Yes.
3) How do I copy files/directories with spaces in their names?
Well, for starters, don't create them. They're a hassle. However, you can do it like so;
Code:
sudo cp -p "/source/directory with spaces/" "/destination/directory with spaces/"
Note that the command you put in
your previous post will not work. Your quotes are in the wrong spot.
Quote:
Originally Posted by baronobeefdip
i just inserted the flash drive that has all of the files that i copied which were unprivileged
|
Sounds like your USB stick is using vfat (maybe FAT32) as a filesystem. That filesystem does not have support for UNIX-style permissions/ownership, so everything will "default" to the username+group+umask of the user that mounts the device. To correct that (if your interested), you would have to do something like this;
Code:
mount -t vfat -o uid=uid_number,gid=gid_number,umask=007 /dev/device /mount/point
uid_number == The User ID Number for the user that will "own" all files on that filesystem.
gid_number == Same as above. The "Group ID number" specified is what will "own" the filesystem.
007 == Read the manpage for umask. A 007 umask will give the "owner" and "group" full access to the mounted filesystem, while the last digit (7), will prohibit anyone that's not the "owner" and not a member of that group from accessing the files.
Quote:
Originally Posted by baronobeefdip
but it looks like it mounted
|
That's great. Pop open a Terminal (xterm, konsole, gnome-console, eterm. Whichever you like) and run the following command;
That will tell you what's mounted where. Your USB thingy might be mounted to a sub-directory of
/media. (If there's an Ubuntu die-hard reading, feel free to correct me if I'm wrong.)
Quote:
Originally Posted by baronobeefdip
an icon comes up in places but there's no icon on the desktop and it's inaccessible when i try to access it through places how do i mount it so i can access it through command line
|
Well, I'm no fan of GUIs. So I tend to disable services that auto-mount devices for me. I would recommend you use the "df" command to see if the USB thingy is mounted, then just browse to that location.
As for there not being an icon on your desktop....well, I can't help you there.
Quote:
Originally Posted by baronobeefdip
but now how do i copy the contents of a directory to a directory (copy all of whats inside the folder into another directory, not the folder itself)
|
Okay....if you want to copy
everything in a directory,
but not the directory itself,
and you want to copy all the hidden files, too. That's a bit tricky.
This should work;
Code:
sudo cp -p "/source/directory with spaces/*" "/destination/directory with spaces/" && \
sudo cp -p "/source/directory with spaces/.??*" "/destination/directory with spaces/"