How to I copy file in terminal?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

How to I copy file in terminal?

Postby grebarton on Sat Jan 26, 2008 9:56 am

What do I type in the terminal to copy a file from my desktop to replace a file in a restricted access folder?

It wont let me just drag and drop because of needing to be root.
Level 1
Level 1
Posts: 6
Joined: Mon Jan 21, 2008 3:54 pm

Linux Mint is funded by ads and donations.

Re: How to I copy file in terminal?

Postby catweazle on Sat Jan 26, 2008 12:39 pm

Possibility 1 :
Code: Select all
sudo cp /path-with-file-to-copy/file /path-to-copy-to/

Possibility 2 :
Code: Select all
gksudo nautilus
gives you nautilus with root access
Level 2
Level 2
Posts: 52
Joined: Sat Dec 15, 2007 4:27 am

Return to Newbie Questions

Who is online

Users browsing this forum: cholq, cogsncogs and 27 guests