LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2003, 02:18 AM   #1
ronss
Member
 
Registered: Mar 2002
Location: phoenix,az
Distribution: red hat linux enterprise-centos
Posts: 766

Rep: Reputation: 31
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?????????????
 
Old 08-31-2003, 02:24 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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.
 
Old 08-31-2003, 02:32 AM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
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"
 
Old 08-31-2003, 03:04 AM   #4
ronss
Member
 
Registered: Mar 2002
Location: phoenix,az
Distribution: red hat linux enterprise-centos
Posts: 766

Original Poster
Rep: Reputation: 31
thanks . working on it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copying a file enrique_arong Linux - Newbie 5 07-29-2004 12:21 PM
File copying questions Jonasx Linux - Newbie 5 01-08-2004 12:38 PM
Question on File System and File Copying hey_joe Linux - Newbie 2 11-05-2003 10:30 AM
Copying a File... Nefarious Linux - General 3 11-28-2002 12:23 AM
Copying a file tgonetwork Linux - Newbie 3 01-16-2002 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration