Full `root/`: no files

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
-2
down vote

favorite












All discussions I read about report on commands to list large files on all the system. None of them helped me to solve the problem.



I have a half full root/



root@C:~# df -Th
File system Tipo Dim. Usati Dispon. Uso% Mounted on
udev devtmpfs 3,9G 0 3,9G 0% /dev
tmpfs tmpfs 789M 9,6M 779M 2% /run
/dev/sda8 ext4 19G 9,8G 7,6G 57% /
tmpfs tmpfs 3,9G 66M 3,8G 2% /dev/shm
tmpfs tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
/dev/sda1 vfat 496M 65M 432M 14% /boot/efi
/dev/sda9 ext4 421G 108G 292G 27% /home
tmpfs tmpfs 789M 108K 789M 1% /run/user/1000


However:



root@C:~# du -sch /root/*
68K /root/dmesg.txt
68K totale


There are hidden directories though:



root@C:~# echo .[^.]*
.aptitude .bash_history .bashrc .cache .config .dbus .gnupg .local .nano .profile .ssh .synaptic .wget-hsts


What is the command to get a proper list of them, to list all the heavy files and delete them?










share|improve this question

















  • 6




    You have a half-full / - that likely has very little to do with /root (which is just the home directory of user root)
    – steeldriver
    Feb 9 at 1:26










  • If you're really concerned about large files, look into installing baobab as it can show you all the diskspace usage. sudo apt install baobab
    – Terrance
    Feb 9 at 3:28






  • 1




    Do not delete anything just because it is a big file and you think you do not need it. There are enough calls for help here because someone deleted important system files and asks how to restore them. BTW your / is at 57% so it isn't full.
    – muclux
    Feb 9 at 6:18










  • @steeldriver, thanks. it there a technical name for the / directory? So I can google for help.
    – Py-ser
    Feb 11 at 3:02






  • 1




    I'd call it the filesystem root directory but I don't know if that's standard terminology. You could search for large files on it using something like sudo find / -xdev -type f -size +100M -exec du -sh + - see for example What's a command line way to find large files/directories to remove and free up space?
    – steeldriver
    Feb 11 at 3:11














up vote
-2
down vote

favorite












All discussions I read about report on commands to list large files on all the system. None of them helped me to solve the problem.



I have a half full root/



root@C:~# df -Th
File system Tipo Dim. Usati Dispon. Uso% Mounted on
udev devtmpfs 3,9G 0 3,9G 0% /dev
tmpfs tmpfs 789M 9,6M 779M 2% /run
/dev/sda8 ext4 19G 9,8G 7,6G 57% /
tmpfs tmpfs 3,9G 66M 3,8G 2% /dev/shm
tmpfs tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
/dev/sda1 vfat 496M 65M 432M 14% /boot/efi
/dev/sda9 ext4 421G 108G 292G 27% /home
tmpfs tmpfs 789M 108K 789M 1% /run/user/1000


However:



root@C:~# du -sch /root/*
68K /root/dmesg.txt
68K totale


There are hidden directories though:



root@C:~# echo .[^.]*
.aptitude .bash_history .bashrc .cache .config .dbus .gnupg .local .nano .profile .ssh .synaptic .wget-hsts


What is the command to get a proper list of them, to list all the heavy files and delete them?










share|improve this question

















  • 6




    You have a half-full / - that likely has very little to do with /root (which is just the home directory of user root)
    – steeldriver
    Feb 9 at 1:26










  • If you're really concerned about large files, look into installing baobab as it can show you all the diskspace usage. sudo apt install baobab
    – Terrance
    Feb 9 at 3:28






  • 1




    Do not delete anything just because it is a big file and you think you do not need it. There are enough calls for help here because someone deleted important system files and asks how to restore them. BTW your / is at 57% so it isn't full.
    – muclux
    Feb 9 at 6:18










  • @steeldriver, thanks. it there a technical name for the / directory? So I can google for help.
    – Py-ser
    Feb 11 at 3:02






  • 1




    I'd call it the filesystem root directory but I don't know if that's standard terminology. You could search for large files on it using something like sudo find / -xdev -type f -size +100M -exec du -sh + - see for example What's a command line way to find large files/directories to remove and free up space?
    – steeldriver
    Feb 11 at 3:11












up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











All discussions I read about report on commands to list large files on all the system. None of them helped me to solve the problem.



I have a half full root/



root@C:~# df -Th
File system Tipo Dim. Usati Dispon. Uso% Mounted on
udev devtmpfs 3,9G 0 3,9G 0% /dev
tmpfs tmpfs 789M 9,6M 779M 2% /run
/dev/sda8 ext4 19G 9,8G 7,6G 57% /
tmpfs tmpfs 3,9G 66M 3,8G 2% /dev/shm
tmpfs tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
/dev/sda1 vfat 496M 65M 432M 14% /boot/efi
/dev/sda9 ext4 421G 108G 292G 27% /home
tmpfs tmpfs 789M 108K 789M 1% /run/user/1000


However:



root@C:~# du -sch /root/*
68K /root/dmesg.txt
68K totale


There are hidden directories though:



root@C:~# echo .[^.]*
.aptitude .bash_history .bashrc .cache .config .dbus .gnupg .local .nano .profile .ssh .synaptic .wget-hsts


What is the command to get a proper list of them, to list all the heavy files and delete them?










share|improve this question













All discussions I read about report on commands to list large files on all the system. None of them helped me to solve the problem.



I have a half full root/



root@C:~# df -Th
File system Tipo Dim. Usati Dispon. Uso% Mounted on
udev devtmpfs 3,9G 0 3,9G 0% /dev
tmpfs tmpfs 789M 9,6M 779M 2% /run
/dev/sda8 ext4 19G 9,8G 7,6G 57% /
tmpfs tmpfs 3,9G 66M 3,8G 2% /dev/shm
tmpfs tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
/dev/sda1 vfat 496M 65M 432M 14% /boot/efi
/dev/sda9 ext4 421G 108G 292G 27% /home
tmpfs tmpfs 789M 108K 789M 1% /run/user/1000


However:



root@C:~# du -sch /root/*
68K /root/dmesg.txt
68K totale


There are hidden directories though:



root@C:~# echo .[^.]*
.aptitude .bash_history .bashrc .cache .config .dbus .gnupg .local .nano .profile .ssh .synaptic .wget-hsts


What is the command to get a proper list of them, to list all the heavy files and delete them?







command-line root






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 9 at 1:21









Py-ser

121111




121111







  • 6




    You have a half-full / - that likely has very little to do with /root (which is just the home directory of user root)
    – steeldriver
    Feb 9 at 1:26










  • If you're really concerned about large files, look into installing baobab as it can show you all the diskspace usage. sudo apt install baobab
    – Terrance
    Feb 9 at 3:28






  • 1




    Do not delete anything just because it is a big file and you think you do not need it. There are enough calls for help here because someone deleted important system files and asks how to restore them. BTW your / is at 57% so it isn't full.
    – muclux
    Feb 9 at 6:18










  • @steeldriver, thanks. it there a technical name for the / directory? So I can google for help.
    – Py-ser
    Feb 11 at 3:02






  • 1




    I'd call it the filesystem root directory but I don't know if that's standard terminology. You could search for large files on it using something like sudo find / -xdev -type f -size +100M -exec du -sh + - see for example What's a command line way to find large files/directories to remove and free up space?
    – steeldriver
    Feb 11 at 3:11












  • 6




    You have a half-full / - that likely has very little to do with /root (which is just the home directory of user root)
    – steeldriver
    Feb 9 at 1:26










  • If you're really concerned about large files, look into installing baobab as it can show you all the diskspace usage. sudo apt install baobab
    – Terrance
    Feb 9 at 3:28






  • 1




    Do not delete anything just because it is a big file and you think you do not need it. There are enough calls for help here because someone deleted important system files and asks how to restore them. BTW your / is at 57% so it isn't full.
    – muclux
    Feb 9 at 6:18










  • @steeldriver, thanks. it there a technical name for the / directory? So I can google for help.
    – Py-ser
    Feb 11 at 3:02






  • 1




    I'd call it the filesystem root directory but I don't know if that's standard terminology. You could search for large files on it using something like sudo find / -xdev -type f -size +100M -exec du -sh + - see for example What's a command line way to find large files/directories to remove and free up space?
    – steeldriver
    Feb 11 at 3:11







6




6




You have a half-full / - that likely has very little to do with /root (which is just the home directory of user root)
– steeldriver
Feb 9 at 1:26




You have a half-full / - that likely has very little to do with /root (which is just the home directory of user root)
– steeldriver
Feb 9 at 1:26












If you're really concerned about large files, look into installing baobab as it can show you all the diskspace usage. sudo apt install baobab
– Terrance
Feb 9 at 3:28




If you're really concerned about large files, look into installing baobab as it can show you all the diskspace usage. sudo apt install baobab
– Terrance
Feb 9 at 3:28




1




1




Do not delete anything just because it is a big file and you think you do not need it. There are enough calls for help here because someone deleted important system files and asks how to restore them. BTW your / is at 57% so it isn't full.
– muclux
Feb 9 at 6:18




Do not delete anything just because it is a big file and you think you do not need it. There are enough calls for help here because someone deleted important system files and asks how to restore them. BTW your / is at 57% so it isn't full.
– muclux
Feb 9 at 6:18












@steeldriver, thanks. it there a technical name for the / directory? So I can google for help.
– Py-ser
Feb 11 at 3:02




@steeldriver, thanks. it there a technical name for the / directory? So I can google for help.
– Py-ser
Feb 11 at 3:02




1




1




I'd call it the filesystem root directory but I don't know if that's standard terminology. You could search for large files on it using something like sudo find / -xdev -type f -size +100M -exec du -sh + - see for example What's a command line way to find large files/directories to remove and free up space?
– steeldriver
Feb 11 at 3:11




I'd call it the filesystem root directory but I don't know if that's standard terminology. You could search for large files on it using something like sudo find / -xdev -type f -size +100M -exec du -sh + - see for example What's a command line way to find large files/directories to remove and free up space?
– steeldriver
Feb 11 at 3:11










1 Answer
1






active

oldest

votes

















up vote
-1
down vote













Try this one (from path /root)



find $PWD -xdev -ls | awk 'print $7" t"$11' | sort -rn | less


It will show you all files at your current directory sorted from bigger ones to smaller ones.






share|improve this answer






















  • This breaks on file or directory names with whitespaces. Btw, find $PWD isn't really necessary, find uses $PWD by default if no other path is given. A better alternative would be du -ah . | sort -nr | less.
    – dessert
    Feb 9 at 8:25







  • 1




    @dessert When using du -h I also suggest using sort -h.
    – PerlDuck
    Feb 10 at 11:42











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004417%2ffull-root-no-files%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
-1
down vote













Try this one (from path /root)



find $PWD -xdev -ls | awk 'print $7" t"$11' | sort -rn | less


It will show you all files at your current directory sorted from bigger ones to smaller ones.






share|improve this answer






















  • This breaks on file or directory names with whitespaces. Btw, find $PWD isn't really necessary, find uses $PWD by default if no other path is given. A better alternative would be du -ah . | sort -nr | less.
    – dessert
    Feb 9 at 8:25







  • 1




    @dessert When using du -h I also suggest using sort -h.
    – PerlDuck
    Feb 10 at 11:42















up vote
-1
down vote













Try this one (from path /root)



find $PWD -xdev -ls | awk 'print $7" t"$11' | sort -rn | less


It will show you all files at your current directory sorted from bigger ones to smaller ones.






share|improve this answer






















  • This breaks on file or directory names with whitespaces. Btw, find $PWD isn't really necessary, find uses $PWD by default if no other path is given. A better alternative would be du -ah . | sort -nr | less.
    – dessert
    Feb 9 at 8:25







  • 1




    @dessert When using du -h I also suggest using sort -h.
    – PerlDuck
    Feb 10 at 11:42













up vote
-1
down vote










up vote
-1
down vote









Try this one (from path /root)



find $PWD -xdev -ls | awk 'print $7" t"$11' | sort -rn | less


It will show you all files at your current directory sorted from bigger ones to smaller ones.






share|improve this answer














Try this one (from path /root)



find $PWD -xdev -ls | awk 'print $7" t"$11' | sort -rn | less


It will show you all files at your current directory sorted from bigger ones to smaller ones.







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 9 at 8:23









dessert

20k55795




20k55795










answered Feb 9 at 7:24









droijals

1




1











  • This breaks on file or directory names with whitespaces. Btw, find $PWD isn't really necessary, find uses $PWD by default if no other path is given. A better alternative would be du -ah . | sort -nr | less.
    – dessert
    Feb 9 at 8:25







  • 1




    @dessert When using du -h I also suggest using sort -h.
    – PerlDuck
    Feb 10 at 11:42

















  • This breaks on file or directory names with whitespaces. Btw, find $PWD isn't really necessary, find uses $PWD by default if no other path is given. A better alternative would be du -ah . | sort -nr | less.
    – dessert
    Feb 9 at 8:25







  • 1




    @dessert When using du -h I also suggest using sort -h.
    – PerlDuck
    Feb 10 at 11:42
















This breaks on file or directory names with whitespaces. Btw, find $PWD isn't really necessary, find uses $PWD by default if no other path is given. A better alternative would be du -ah . | sort -nr | less.
– dessert
Feb 9 at 8:25





This breaks on file or directory names with whitespaces. Btw, find $PWD isn't really necessary, find uses $PWD by default if no other path is given. A better alternative would be du -ah . | sort -nr | less.
– dessert
Feb 9 at 8:25





1




1




@dessert When using du -h I also suggest using sort -h.
– PerlDuck
Feb 10 at 11:42





@dessert When using du -h I also suggest using sort -h.
– PerlDuck
Feb 10 at 11:42


















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004417%2ffull-root-no-files%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491