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 05-24-2020, 04:24 PM   #1
eco_bach
Member
 
Registered: Dec 2016
Posts: 242

Rep: Reputation: Disabled
Free up space- /home directory confusion


Hi
Some confusion about my home directory.
If I issue
Code:
du -chd 1 | sort -h
I get
Quote:
0 ./dev
0 ./proc
0 ./sys
4.0K ./cdrom
4.0K ./lib64
4.0K ./root
4.0K ./srv
16K ./lost+found
28K ./mnt
132K ./tmp
2.5M ./run
13M ./bin
13M ./sbin
19M ./etc
163M ./boot
909M ./lib
2.3G ./var
2.4G ./snap
6.2G ./opt
14G ./media
16G ./usr
522G ./home
563G .
563G total

However if I navigate to /home on the Desktop I see

Quote:
Editor (3.6GB)
Foo (41.8 Free space 17.8GB)
Systemback (0 items)
Timeshift (76.2 GB)
Adding up the contents of /home is obviously a LOT less than ./home (522G)

Can someone clarify the discrepancy?
 
Old 05-24-2020, 05:51 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
What you see on the destop is the logged-in user's home, I would think. In a terminal, run du -sh /home/* to see what's in /home and how much space it occupies.
 
Old 05-25-2020, 02:12 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by eco_bach View Post
However if I navigate to /home on the Desktop I see
The Desktop is not your $HOME.
The desktop is actually a directory in your home dir:
$HOME/Desktop
So the 500GB are sowmewhere in $HOME/otherdirectories
 
Old 05-25-2020, 09:12 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
@ondoho. I guess the OP means their file manager (Nautilus, Nemo, Dolphin, Thunar, Caja, whatever) when speaking of the desktop, not the Desktop folder specifically. Yes, capitalizing Desktop is confusing.

@OP. Even if you're the only user of this system, there are many hidden directories in $HOME that won't be shown in the file manager by default. E.g ~/.cache, ~/.config, ~/.local, etc. Try running du from inside the $HOME and see.
 
Old 05-26-2020, 12:50 AM   #5
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Post df -h

Or try this command below, run it as root.

find / -type d -size +1G -exec ls -la {} \;
 
  


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
No more free space! df 99.9%, du 29% usage - missing free space ? Topper_BG Linux - General 14 02-08-2012 02:40 PM
Help removing free space to create Raw free space nightmare55 Linux - Newbie 11 10-01-2009 03:07 AM
No free space to install but there is free space? HellBound Linux - Laptop and Netbook 6 01-23-2009 09:51 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

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

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