LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   copying file (https://www.linuxquestions.org/questions/linux-software-2/copying-file-87530/)

ronss 08-31-2003 02:18 AM

copying file
 
hi

have created a directory on the desktop, uncompressed a tar.gz file and archived the filed into this directory. i want to move this director to /usr file, i tryed cut-pasted, cut -copy, cannot do it. most of the time it says i have no permission, so i got to be entered as root. how do i copy this directory to usr file?????????????

megaspaz 08-31-2003 02:24 AM

cd to the directory where the file is, open up a command line terminal, and su into root. and use the command:

cp filename /usr

or you can go into your graphical menu and find the super user file manager. kde has one. in rh7.3 using kde, it's in K Start > System.

Skyline 08-31-2003 02:32 AM

To copy the whole directory:

Open a shell -

su
root password

cp -Rfdp path_to_newdirectory /usr

You'll have to substitute the full PATH to the new directory youve created on the desktop in place of "path_to_newdirectory"

ronss 08-31-2003 03:04 AM

thanks . working on it


All times are GMT -5. The time now is 08:18 AM.