LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-26-2006, 07:18 AM   #1
SlackerJack
LQ Newbie
 
Registered: Aug 2006
Distribution: Slackware 11.0
Posts: 28

Rep: Reputation: 15
cp -R [[foldername]] ~ /tmp [[= Oh noo!]]


Hi all,

I was in my home folder as regular user and wanted to copy a folder to ~/tmp (tmp folder in my home directory).

But I did a blooper and
I executed: cp -R [[foldername]] ~ /tmp
instead of: cp -R [[foldername]] ~/tmp

Now I have roughly 340 Mb less space on partition.
Before copy I had 356768 Kb
After copy 5156 Kb
(diff = 343.37 Mb)

Size of [[foldername]] is about 40 Mb

One copy of [[foldername]] copied to /tmp/ (On root) (size of that was 40Mb. I removed it)
I searched / for copies of [[foldername]] or files >200Mb but found nothing except /proc/kcore (384 Mb)

What happened???
What exactly does this do: cp -R [[foldername]] ~ /tmp
Where's my space?

Thanks for any help
 
Old 11-26-2006, 08:06 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,640

Rep: Reputation: 144Reputation: 144
cp works like this:
cp [options] source1 source2 source3 ... destination

So you copied [[foldername]] and your home directory to /tmp.
 
Old 11-26-2006, 08:07 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
It looks like you've make copies of [[foldername] and ~ (/home/<username>) in /tmp.

You could try:

du ~

How large is it? Is it about the same size as the missing filespace?

Then check /tmp to see if you have a copy of ~ in /tmp.
 
Old 11-26-2006, 08:18 AM   #4
SlackerJack
LQ Newbie
 
Registered: Aug 2006
Distribution: Slackware 11.0
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks both!

Yeah, I see my home folder in /tmp

That sorted it out.

Thanks
 
  


Reply


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
Yet Another Noo Person iffracem LinuxQuestions.org Member Intro 1 02-12-2006 08:07 AM
kde, /tmp, /var/tmp and all that garba Linux - Software 4 06-17-2005 12:31 PM
"/tmp/sv001.tmp/setup.bin" error while installing OO1.1.0 Choey Linux - Software 0 09-16-2003 04:52 PM
Numerous scb_*.tmp files in /tmp dburk Programming 3 08-18-2003 04:28 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:03 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