LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 05: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, 05: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: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
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 05:51 AM.
 
2 members found this post helpful.
Old 08-29-2010, 06:20 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
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, 08:51 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
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, 01: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, 02:41 AM   #6
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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, 02: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: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
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 02:11 PM.
 
Old 08-31-2010, 12:08 AM   #8
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
tommyttt

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


Reply



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

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

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