Home > OS >  CentOS from desktop and copy files from the Downloads to U disk, the file path what said?
CentOS from desktop and copy files from the Downloads to U disk, the file path what said?

Time:09-18

First of all, U disk has hung

I use the
Sudo cp/home/Downloads/XXX (name)/MNT this path I can't, tried several times, and online help!!!!!

In addition, if the copy from the desktop to the U disk, this directory and how to say?

The more detailed, the better, thank you very much,
(when U disk still hangs, the CPU is still in high speed combustion)

CodePudding user response:

Make sure the usb device file is which, you can use sudo fdisk -l view, general is/dev/SDC/dev/SDB * *, such as/dev/sdb1

And then confirm the mount path, if you sure have a mount, execution of the df command to see mount which mount point, such as/MNT, now mostly seems to automatically mount, can hang a child directory under the/media,

After confirm the good path can directly cp,

If df after view the findings don't mount, then use the mount first mount it to a certain path, such as mount/dev/sdb1/MNT and then directly copied to/MNT

CodePudding user response:

Mainly to solve the demand! You just want to put the file on the desktop and the download file copy out bai, you first use the FTP tool, or other tools remote to centos server, and then to the computer, and from the copy to the U disk of a computer

CodePudding user response:

reference 1/f, mountain pepper PI response:
make sure the usb device file is which, you can use sudo fdisk -l view, general is/dev/SDC/dev/SDB * *, such as/dev/sdb1

And then confirm the mount path, if you sure have a mount, execution of the df command to see mount which mount point, such as/MNT, now mostly seems to automatically mount, can hang a child directory under the/media,

After confirm the good path can directly cp,

If df after view the findings don't mount, then use the mount first mount it to a certain path, such as mount/dev/sdb1/MNT and then directly copied to/MNT under line

That excuse me I have a file on the desktop, copy to the U disk need to know the file path, that how to find the path?

CodePudding user response:

reference 1/f, mountain pepper PI response:
make sure the usb device file is which, you can use sudo fdisk -l view, general is/dev/SDC/dev/SDB * *, such as/dev/sdb1

And then confirm the mount path, if you sure have a mount, execution of the df command to see mount which mount point, such as/MNT, now mostly seems to automatically mount, can hang a child directory under the/media,

After confirm the good path can directly cp,

If df after view the findings don't mount, then use the mount first mount it to a certain path, such as mount/dev/sdb1/MNT and then directly copied to/MNT under line

U disk has been hang under the/MNT

CodePudding user response:

reference 4 floor @ AS ℡ response:
Quote: reference 1/f, mountain pepper PI response:
make sure the usb device file is which, you can use sudo fdisk -l view, general is/dev/SDC/dev/SDB * *, such AS/dev/sdb1

And then confirm the mount path, if you sure have a mount, execution of the df command to see mount which mount point, such as/MNT, now mostly seems to automatically mount, can hang a child directory under the/media,

After confirm the good path can directly cp,

If df after view the findings don't mount, then use the mount first mount it to a certain path, such as mount/dev/sdb1/MNT and then directly copied to/MNT under line

U disk has been hang under the/MNT

I am using cp/home/user/desktop/(filename suffix)/MNT but no! Whether or not the user can be removed, or there are other ways to check the path to the file on the desktop, thank you very much

CodePudding user response:

refer to fifth floor @ AS small wet skin of tofu reply:
Quote: refer to the 4th floor @ AS ℡ response:
Quote: reference 1/f, mountain pepper PI response:
make sure the usb device file is which, you can use sudo fdisk -l view, general is/dev/SDC/dev/SDB * *, such AS/dev/sdb1

And then confirm the mount path, if you sure have a mount, execution of the df command to see mount which mount point, such as/MNT, now mostly seems to automatically mount, can hang a child directory under the/media,

After confirm the good path can directly cp,

If df after view the findings don't mount, then use the mount first mount it to a certain path, such as mount/dev/sdb1/MNT and then directly copied to/MNT under line

U disk has been hang under the/MNT

I am using cp/home/user/desktop/(filename suffix)/MNT but no! Whether or not the user can be removed, or there are other ways to check the path to the file on the desktop, thank you very much


Seem too long not to see, to hear you say that I feel you are too strange to some basic concepts, the cp command two parameters are specific file path is not a casual copying is done according to the actual path to write, others is/home/user you are not necessarily the path of the most simple way is to use the desktop system, to operate like Windows, the command line, the first CD to the directory, copy when use a relative path or the PWD see what directory is in,

CodePudding user response:

Linus: thank you, I will study

CodePudding user response:

U disk in general may be/dev/SDC, specific you can use the ls/dev/sd * look at last letter

U disk cannot be used directly, need to give it an entry, also is the mount point
Mount/dev/SDC/MNT

This time you can use the cp copying files
Sudo cp/home/Downloads/XXX (name)/MNT

CodePudding user response:

refer to the eighth floor yolyry response:
U disk in general may be/dev/SDC, specific you can use the ls/dev/sd * look at last letter

U disk cannot be used directly, need to give it an entry, also is the mount point
Mount/dev/SDC/MNT

This time you can use the cp copying files
Sudo cp/home/Downloads/XXX (name)/MNT

Thank you, to learn Linux I still have a long way to go, I'll try??

CodePudding user response:

refer to 6th floor mountain pepper PI response:
Quote: refer to fifth floor @ AS small wet skin of tofu reply:

Quote: refer to the 4th floor @ AS ℡ response:
Quote: reference 1/f, mountain pepper PI response:
make sure the usb device file is which, you can use sudo fdisk -l view, general is/dev/SDC/dev/SDB * *, such AS/dev/sdb1

And then confirm the mount path, if you sure have a mount, execution of the df command to see mount which mount point, such as/MNT, now mostly seems to automatically mount, can hang a child directory under the/media,

After confirm the good path can directly cp,

If df after view the findings don't mount, then use the mount first mount it to a certain path, such as mount/dev/sdb1/MNT and then directly copied to/MNT under line

U disk has been hang under the/MNT

I am using cp/home/user/desktop/(filename suffix)/MNT but no! Whether or not the user can be removed, or there are other ways to check the path to the file on the desktop, thank you very much


Seem too long not to see, to hear you say that I feel you are too strange to some basic concepts, the cp command two parameters are specific file path is not a casual copying is done according to the actual path to write, others is/home/user you are not necessarily the path of the most simple way is to use the desktop system, to operate like Windows, the command line, the first CD to the directory, copy when use a relative path or the PWD see what directory is in,

Thank you, I'll learn Linux, thank??
  • Related