Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-21-2018, 04:29 PM   #1
Registered: May 2018
Posts: 137

Rep: Reputation: Disabled
How to move a tarbal from home directory into usr/local/src

How might I go about moving a tarball from my home directory into the usr/local/src directory via the command line? I need to get a tarball there and I can't just copy paste it but I do have sudo permissions. So is there a way I can move it with sudo via the terminal?
Old 08-21-2018, 04:34 PM   #2
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
with super user permissions assume root or sudo
sudo mkdir -p /usr/local/src
sudo mv tarball /usr/local/src/

Last edited by Drakeo; 08-21-2018 at 04:36 PM.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 08:43 AM
Compiling in /usr/local/src yougene Linux - Newbie 10 11-27-2005 08:23 AM
Reducing size of /usr/local/src jrdioko Linux - Software 8 06-09-2005 10:42 PM
Can I mount, say, /usr/src , /apps , and /home on one hda1??? kornerr Linux - Newbie 13 02-01-2005 02:43 AM
denied access to move files into /usr/src directory Larry O Linux - Newbie 4 01-17-2005 11:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:01 AM.

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