LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-29-2010, 06:09 AM   #1
davidbassett
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
please explain how i get out of this problem


hi i am new at this linux system,i have been copying dvd's and now i do not have enough room in my temporary folder,but i cannot find out how to delete the folders and make space to continue,if you can help sorry but a step by step guide it will have to be,i would appreciate it very much,thanks Dave
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-29-2010, 06:49 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Post

Greetingz!

Well, for starters I'm going to assume you know how to open a "terminal" (you might have to look around for a shortcut).

Once you find the "terminal", you're going to type some "commands", okay?

The first command is this

cd /tmp

That "changes directory" (cd) to the "/tmp" directory.

Then you're going to ask the system which directories within the /tmp directory are the biggest, by typing the following command;

du -k * | sort -rn | head -n 11

That will give you the top 11 directories, sorted by size.

From there you will use a very, very, very, dangerous command (if used improperly)

rm -r directory_name

The "rm" command deletes things (rm = remove). However, this isn't Windows-land anymore, Davey, so there is NO Recycle Bin.

When you delete something via the "rm" command, it's gone. For good.

To learn more about the "cd" "du" "sort" "head" and "rm" commands, just type the following at the command line;

man command_name


On a side note, there's a few things about forums you should read up on; I have links within my "Signature" (the bottom of my post) to a few peices of documentation you may find very helpful in the near future.

Also, please keep in mind that we *love* to know when we've been helpful, and would appreciate it if you marked any helpful posts.

Cheers!

Last edited by xeleema; 08-29-2010 at 06:51 AM.
 
2 members found this post helpful.
Old 08-29-2010, 07:20 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,550

Rep: Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898
xeleema has pointed you in the right direction, but my first question back at you would be:

How would you have done this on your previous system? (ie if you were in MS Windows (assuming this is previous experience) how would you have done it there)
 
Old 08-29-2010, 09:51 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
I don't see why you find it impossible to remove them, unless the files are owned by root. Open your /tmp directory, select the files, right-click, "move to trash". Note: the space won't be freed until the trash can is emptied.
 
Old 08-30-2010, 02:46 AM   #5
tommyttt
Member
 
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

Rep: Reputation: 34
Um, Xeleema, perhaps you should check your signature block. It doesn't contain any links, course my eyes might be getting old and missed something.

Quote:
On a side note, there's a few things about forums you should read up on; I have links within my "Signature" (the bottom of my post) to a few peices of documentation you may find very helpful in the near future.
Tom
 
Old 08-30-2010, 03:41 AM   #6
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
I write my posts to be the "thread killer", to try and answer the question, and provide links as to why things work a certain way .
Great effort in post number 2, xeleema, the following command is really helpful for me !
Code:
du -k * | sort -rn | head -n 11
 
Old 08-30-2010, 03:08 PM   #7
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Quote:
Originally Posted by tommyttt View Post
Um, Xeleema, perhaps you should check your signature block. It doesn't contain any links, course my eyes might be getting old and missed something.
@tommyttt
My apologies, the text is quite small.
If you do a Ctrl-F in your browser, then search for the following (without quotes);
"posting for great justice!"

Then your browser should highlight the line that has the links.
The first link is to the Linux-specific section of Google (it's *awesome!*), and the second is to Eric S. Raymond's "How to Ask Questions The Smart Way", which although a lengthy read, gives valuable insight into how we human beings interact with one another within the faceless ether that is the Internet.

There's also a link above those two called "It's the brand-spanking new Reputation system!", which links to the FAQ section on what those little green boxes under our names mean.

@anishakaul
Quote:
Originally Posted by anishakaul View Post
Great effort in post number 2, xeleema, the following command is really helpful for me !
Code:
du -k * | sort -rn | head -n 11
I typically have that command as an alias within my .bashrc / .bash_profile / .profile / .kshrc.
I call it "ducks", as it's easy to remember and type!

If anyone has any other UNIX, Linux, or Internet "101" type links, I'll check them out and add them to my signature (as space allows).

Have a good one everybody!

Last edited by xeleema; 08-30-2010 at 03:11 PM.
 
Old 08-31-2010, 01:08 AM   #8
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
tommyttt

It is time to update the last sentence of your signature Isn't it ??
 
  


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
Difficult to explain problem with full page zoom in Firefox ravi.xolve Linux - Software 5 04-11-2009 03:25 AM
Hard to Explain Compiz Problem (see screenshot) rignes Ubuntu 2 03-06-2008 02:44 PM
Difficult to explain-Console Cursor Problem justanothersteve Linux - General 2 04-28-2006 05:04 PM
Odd audio problem...can anyone explain this? ksoma Linux - Hardware 14 01-02-2004 08:31 AM
hi this my problem explain raheelforme Linux - Networking 1 12-11-2003 01:54 AM

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

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration