LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2006, 09:28 AM   #1
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Rep: Reputation: 30
Cool how to get free spaces in home directory


Hi dear,
my home dirctory 100% used no free spaces.
how to get free spaces in home directory ?
Could someone help ?
... thanx
Mohammed Hammam
 
Old 08-06-2006, 09:35 AM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
move some files somewhere else.
 
Old 08-06-2006, 09:46 AM   #3
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
Hi slackhack,
I moved some items. It is now 97% there is noitem to move. How I reduce the size more ?
... thanx
Mohammed Hammam
 
Old 08-06-2006, 09:56 AM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
You might find that you've got some fairly large hidden files. From the command line, I'd try cd-ing into .Trash, for example:
Code:
cd ~/.Trash
ls -lh
There might be a lot of big files in there that you've deleted but not removed from the recycle bin.

Also, to identify big files in a directory, I find du -sh * to be particularly useful e.g.
Code:
cd ~
du -sh *
0       data
8.0K    Desktop
1.8M    documents
0       evolution
8.0K    exec
324K    OSGBConv.zip
4.0K    run
0       scratch
8.3M    temp

Last edited by pwc101; 08-06-2006 at 10:00 AM.
 
Old 08-06-2006, 10:02 AM   #5
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
how to delete them ? are they important not to be deletd ?
 
Old 08-06-2006, 10:39 AM   #6
Xyem
Member
 
Registered: Apr 2005
Distribution: Fedora Core 4
Posts: 100

Rep: Reputation: 15
Code:
rm -rf ./
will ( attempt ) to delete everything in the current directory. Fails on files if the logged in user doesn't have the required permissions.
 
Old 08-06-2006, 11:20 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
If you have a setup where you have a swap partition and the (/) root partition, then you can also free space in some other directories. The /tmp partition can be cleared out before shutting down the computer.
 
Old 08-06-2006, 11:25 AM   #8
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
be careful when using rm, especially with the rm -rf (recursive and force) flags - you can quite easily remove an entire filsystem, and rm is very efficient - once it's gone, that's pretty much it, unless you want to do some real detective work.

Quote:
Originally Posted by hammam12
are they important not to be deletd ?
well, that depends on whether you need your files or not. The files in /home will be each user's personal file (I don't know if you're the only user or not). So if you were to do rm -rf from within /home, then you'd delete all the personal files of every user on your system. Whether they're important is something only you can decide.
 
  


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
free up spaces in slackware? csvke Slackware 10 01-20-2005 04:37 AM
replacing all spaces in filenames of a directory merlin23 Linux - Newbie 1 01-11-2005 07:52 AM
backup from directory with spaces dennis_89 Linux - Networking 7 06-21-2004 10:14 PM
directory-names with spaces... Schmurff Linux - Newbie 2 03-07-2004 11:06 AM
cd to a directory with spaces? GT_Onizuka Linux - Newbie 3 08-28-2003 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:51 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
Open Source Consulting | Domain Registration