Share your knowledge at the LQ Wiki.
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 11-26-2006, 08:18 AM   #1
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, 09:06 AM   #2
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,609

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

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

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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, 09:18 AM   #4
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.



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

All times are GMT -5. The time now is 09:57 PM.

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