PDA

View Full Version : [ubuntu] i want to know about command copy file ?



tonjaa
May 26th, 2009, 08:43 AM
if i want to copy file to root of folder how to use command ?
i new for linux ubuntu many time i download themes or some file but i can't in stall file to
folder in true way. now i want to install Ubuntulooks Engine they write tell copy file libubuntulooks.so and libubuntulooks.la to /usr/lib/gtk-2.0/2.*.*/engines as root (substitute "2.*.*" with your version number)
that i want to know command to copy file to folder . or structure of command .
please tell me by step. thank you.

Boondoklife
May 26th, 2009, 12:28 PM
if i want to copy file to root of folder how to use command ?
i new for linux ubuntu many time i download themes or some file but i can't in stall file to
folder in true way. now i want to install Ubuntulooks Engine they write tell copy file libubuntulooks.so and libubuntulooks.la to /usr/lib/gtk-2.0/2.*.*/engines as root (substitute "2.*.*" with your version number)
that i want to know command to copy file to folder . or structure of command .
please tell me by step. thank you.


Ok I think I understand what you are trying to ask, if you copy things into a restricted part of the drive then use the sudo command.
sudo cp filename /usr/lib/filename

What is your native language?

tonjaa
May 26th, 2009, 01:20 PM
thank you very much. for human beings

tonjaa
May 26th, 2009, 05:53 PM
what's wrong ? i use command like this but i can't to copy file to engines .
tonjaa@tonjaa-desktop:~$ sudo cp libubuntulooks.so libubuntulooks.la /usr/lib/gtk-2.0/2.10.0/engines/
[sudo] password for tonjaa:
cp: cannot stat `libubuntulooks.so': No such file or directory
cp: cannot stat `libubuntulooks.la': No such file or directory
what is true command to copy ?
please tell me the way.

SuperSonic4
May 26th, 2009, 05:56 PM
It means those two files you specified are not in ~/Desktop. Was is a tarball you extracted? If so they usually decompress into their own folder so you might need to cd to that directory.

You can check the contents of the directory you are in by typing
ls

Also it's customary to wrap terminal output in code tags like
sudo make me a sandwich

tad1073
May 26th, 2009, 05:57 PM
you have to cd into the directory where the file lives.

example

cd /directory/of/some/file.file
sudo cp /directory/of/some/file.file /directory/of/some/file.file.1

themusicalduck
May 26th, 2009, 06:01 PM
You want to install the Ubuntulooks engine? Isn't that in synaptic? Surely it'd be easier to install it from there.

System > Administration > Synaptic Package Manager

Or even just type


sudo apt-get install gtk2-engines-ubuntulooks

into a terminal.

I'm assuming that that is the actual package you want.

ugm6hr
May 26th, 2009, 06:05 PM
If you prefer to use GUI, try

gksudo nautilus

Copy & paste as usual.

Remember to close window when done, since nautilus will not alert you if you delete critical system files in this mode.

tonjaa
May 27th, 2009, 08:25 AM
thank you very much for all answe r .
for human beings.

Richiegs
October 20th, 2009, 07:13 AM
Can anyone tell me how to copy a file on the desktop into /tmp as root?
I am new to Ubuntu. Many thanks in advance.

KeLa
October 20th, 2009, 11:33 AM
Open terminal and then write
sudo cp ./Desktop/filename.ext /tmp

Boondoklife
October 20th, 2009, 06:00 PM
you have two easy options, you can use `sudo cp FILE /tmp` or `gksudo nautilus`.
The later will give you a browsable interface instead of all command line.