[LINUX] Check the file size with du -sh *



du -sh *

Execution result


3.3M  hogehoge
 60K  hogehoge
140K  hogehoge
616K  hogehoge
 52K  hogehoge
100K  hogehoge
167M  hogehoge
 72K  hogehoge
 68K  hogehoge
 76K  hogehoge
 72K  hogehoge
 66M  hogehoge
124K  hogehoge
108K  hogehoge
 68K  hogehoge
368K  hogehoge
124K  hogehoge
 92K  hogehoge

Different from df

Although it was easy, I misunderstood it as the df command and took a little time, so I made a note.

Recommended Posts

Check the file size with du -sh *
Check the existence of the file with python
Check the code with flake8
Extract the xz file with python
Follow the file hierarchy with fts
Download the file deployed with appcfg.py
Open the file with the default app
Align the size of the colorbar with matplotlib
Let's read the RINEX file with Python ①
Check the correlation with Kaggle's Titanic (kaggle③)
Try rewriting the file with the less command
Download the file with PHP [Under construction]
I made a program to check the size of a file in Python
Read data with python / netCDF> nc.variables [] / Check data size
Increase the font size of the graph with matplotlib
Create a PDF file with a random page size
Adjust file permissions with the Linux command chmod
Check the date of the flag duty with Python
Save the object to a file with pickle
Convert the character code of the file with Python3
I tried to touch the CSV file with Python
Check when the version does not switch with pyenv
A4 size with python-pptx
File operations with open — "../"
File upload with django
Domain check with Python
Check version with python
Check what line caused the error with apply () (dataframe, Pandas)
How to check ORM behavior in one file with django
[Python] Read the csv file and display the figure with matplotlib
Access the file with a relative path from the execution script.
Check the memory status of the server with the Linux free command
Check the scope of local variables with the Python locals function.
Check the operating status of the server with the Linux top command
Read the VTK file and display the color map with jupyter.
I tried to divide the file into folders with Python
Try to decipher the garbled attachment file name with Python