Full `root/`: no files
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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?
command-line root
add a comment |Â
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?
command-line root
6
You have a half-full/
- that likely has very little to do with/root
(which is just the home directory of userroot
)
â steeldriver
Feb 9 at 1:26
If you're really concerned about large files, look into installingbaobab
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 likesudo 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
add a comment |Â
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?
command-line root
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
command-line root
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 userroot
)
â steeldriver
Feb 9 at 1:26
If you're really concerned about large files, look into installingbaobab
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 likesudo 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
add a comment |Â
6
You have a half-full/
- that likely has very little to do with/root
(which is just the home directory of userroot
)
â steeldriver
Feb 9 at 1:26
If you're really concerned about large files, look into installingbaobab
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 likesudo 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
add a comment |Â
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.
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 bedu -ah . | sort -nr | less
.
â dessert
Feb 9 at 8:25
1
@dessert When usingdu -h
I also suggest usingsort -h
.
â PerlDuck
Feb 10 at 11:42
add a comment |Â
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.
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 bedu -ah . | sort -nr | less
.
â dessert
Feb 9 at 8:25
1
@dessert When usingdu -h
I also suggest usingsort -h
.
â PerlDuck
Feb 10 at 11:42
add a comment |Â
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.
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 bedu -ah . | sort -nr | less
.
â dessert
Feb 9 at 8:25
1
@dessert When usingdu -h
I also suggest usingsort -h
.
â PerlDuck
Feb 10 at 11:42
add a comment |Â
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.
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.
edited Feb 9 at 8:23
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
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 bedu -ah . | sort -nr | less
.
â dessert
Feb 9 at 8:25
1
@dessert When usingdu -h
I also suggest usingsort -h
.
â PerlDuck
Feb 10 at 11:42
add a comment |Â
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 bedu -ah . | sort -nr | less
.
â dessert
Feb 9 at 8:25
1
@dessert When usingdu -h
I also suggest usingsort -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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
6
You have a half-full
/
- that likely has very little to do with/root
(which is just the home directory of userroot
)â 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