Extracting Files and / or Copy files

Nils Kassube kassube at gmx.net
Wed May 30 19:57:22 UTC 2007

Please don't answer to an existing thread, if you want to start a new one.

Jan Sneep wrote:
> I'm trying to extract a file from a tar.gz file which I downloaded onto
> my desktop.


> So how do I either ... login as "root" ... or give Extract sudo
> permissions ... or what is the equivalent to the old DOS copy
> command???

If you want to login as root, use

sudo su

or if you only want to execute one command

sudo <command>

is easier. In your case of extracting a .tar.gz file use

sudo tar xfz filename.tar.gz

The equivalent to the DOS copy command is cp -- have a look at

man cp

to find out how to use it.


More information about the ubuntu-users mailing list