Disk is full, but can't find which folder take space [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm trying to find out which folder in my VPS take the most of disk usge, the result of df -h command show that my disk storage has 40GB and I used 38 Gb.
But when I calculate the size of root folder using ncdu (using command: ncdu /), it show that I only used 8.9 Gb:
Can anyone help me to figure out which files/folders take nearly 30 Gb of my disk

Try using this command:
du -cks *|sort -rn|head
This will list the 10 largest subdirectories of the current directory you're in. Then you can cd into the largest subdirectory and run the command again to see the sizes of the sub-subdirectories, and so on.
Source: https://serverfault.com/a/25045/297452

This sounds like an openfile issue.
try
lsof +L1 <path to dir>

Related

How can you delete specific files in /temp in site server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
My site is experiencing Internal server Errors, website shutdowns and the main cause is a full /temp directory. The support gave us a list of large temp files that come with a size exceeding 1 GB. Is there any way to delete specific files in /temp?
ls -lah /tmp
I've used this code to go to my /temp file. How can I delete specific files in it?
Change directory to tmp - cd /tmp
And delete specific files - rm -f specific.file.name
You can use find for that:
find /temp -size +1G -delete
This means the following:
/temp : location of the search (subfolders are searched too)
-size +1G : the size should be larger than 1Gb
-delete : once such a file is found, delete it.

How to find disk usage per-user in Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Given a directory d and a list of users, I want to find disk space used by each user in directory d.I cannot install any utility as it's a production environment so need a result using standard LINUX command(s)
you mean just a du -sh of /home/ ?
du -sh /home/*
1.2G /home/user001
...
The following shell script will get the disk usage, in human readable form (-h), sort the results and deliver the top 10 values:
sudo du -Sh | sort -rh | head -10
You can try -
du -shc /home/*
Where,
s :- display total size of a file or total size of all files in a directory.
h :- human readable format.
c :- display a total size usage at the end of result.

Increase /tmp directory space in linux 7 through terminal [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have problem in installing oracle DB since /tmp has no required freespace. How to increase the space of /tmp folder from terminal?
hope you have some free space in the disk. Its possible to make free space to a particular partition here its /tmp
Open the terminal and run
df -h
this will show the disk space currently you have in the system
to increase the space for the partition
type
`sudo umount /tmp`
sudo mount -t tmpfs -o size=1048576,mode=1777 overflow /tmp
this will increase the size by 1MB if you add and extra zero that is 10485760 will increase the size by 10MB. Add space upon how much you needed.

How to shrink an ext4 partition without formatting it? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Recently i installed Ubuntu 13.04 and allocated 20 GB for it. The system got installed space less than 10 GB. Now, can i shrink it to 10 GB without formatting it?
Thats to say, i don't want to have large empty space in the partition.
You could use the resize2fs command.
However, I would suggest to backup the most important files (on e.g. an USB key) before doing that (e.g. /etc/ and some of /home/ )
See also this question...
BTW, 20GB for the system partition is not that much.....

ecryptfs size different from home directory size [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm puzzled. My harddisk is full and most of the space is used by .eryptfs/$MYUSERNAME (810.4 GB). Strangly, my home directory /home/MYUSERNAME (22.2GB) consumes significantly less diskspace. Any idea what is wrong or where to look for the "missing" free space?
eCryptfs slightly pads files, and the overhead of encryption will slightly increase your over all disk usage, but certainly not to the degree you describe, 37x!
The only disk usage that really matters is that of your /home/.ecryptfs/$USER directory, which is really where the encrypted files are stored on disk. What you're seeing in terms of the usage of $HOME is really phantom -- the cleartext decryption of those files only appears in memory, and not on disk.
To see your true usage, use:
df -h /home
du -sh /home

Resources