How to find large files on Linux

The HDD usage rate of the server exceeds 95%! !! How to respond quickly when you receive an alert Investigate with this procedure and rm what you don't need

//ディスクの使用状況を確認 $ df -h

// Find a large directory of 1GB or more * Size may change depending on the situation $ du -h ./ | grep [0-9]G

//大きいファイルを直ぐ見つけたい場合はこっちの方が良いかも $ find ./ -size +1G

//重い順にソートしてファイルを表示 $ ls -lS

If you don't need the target file, delete it with the rm command.

Recommended Posts

How to find large files on Linux
Find large files / directories on Linux
How to install VMware-Tools on Linux
[Linux] How to subdivide files and folders
How to install aws-session-manager-plugin on Manajro Linux
Find files like find on linux in Python
How to display emoji on Manjaro Linux
How to install packages on Alpine Linux
How to install php7.4 on Linux (Ubuntu)
How to create large files at high speed
How to install Camunda Modeler on Manjaro Linux
How to build Java environment on Ubuntu (Linux)
One-liner to create a large number of test files at once on Linux
How to use C216 Audio Controller on Arch Linux
How to install Linux on a 32bit UEFI PC
How to register on pypi
How to allow nologin users to log in on Linux
How to find Mahalanobis distance
[AWS EC2] How to install Maven on Amazon Linux 2
How to install git on Linux such as EC2
[Tips] How to use iPhone as webcam on Linux
How to build a Python environment on amazon linux 2
[AWS] How to expand disk space on Amazon linux
A memo on how to easily prepare a Linux exercise environment
[For beginners] How to use for statements on Linux (variables, etc.)
[Linux] How to deal with garbled characters when viewing files
How to create an ISO file (CD image) on Linux
Easy copy to clipboard on Linux
How to install mysql-connector-python on mac
Notes on how to use pywinauto
How to install graph-tool on macOS
How to install wkhtmltopdf (Amazon Linux2)
How to install pycrypto on Windows
How to deploy django-compressor on Windows
Notes on how to use featuretools
How to install OpenCV on Mac
How to run matplotlib on heroku
How to install MBDyn (Linux Ubuntu)
How to install PyPy on CentOS
How to use homebrew on Debian
Misunderstanding on how to connect cnn
How to install TensorFlow on CentOS 7
Notes on how to use doctest
Notes on how to write requirements.txt
How to install Go on Ubuntu
How to install music 21 on windows
How to display a specified column of files in Linux (awk)
How to display PDF resolution and detailed information on Linux (pdfinfo)
How to get all traffic through VPN with OpenVPN on Linux
How to play music (wav / mp3) files on Raspberry Pi python
How to build my own Linux server
How to read pydoc on python interpreter
How to create * .spec files for pyinstaller.
[Kivy] How to install Kivy on Windows [Python]
How to use mecab, neologd-ipadic on colab
I want to know how LINUX works!
How to build Hello, World on #Nix
[Linux] How to use the echo command
I want to use Linux on mac
How to use the Linux grep command
How to use Google Assistant on Windows 10