E
E
Evgeny Matveev2018-05-01 15:28:05
linux
Evgeny Matveev, 2018-05-01 15:28:05

How to find a large file on linux?

Which command can display a list of files with sizes on the server?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
vreitech, 2018-05-01
@fzfx

find . -type f -size +1M -exec du -h \{\} \;
instead of a symbol . specify the directory in which to search, instead of 1 specify the minimum size in megabytes. all files in the specified directory and subdirectories that are larger than the specified size and to which the user has access will be displayed with the specified size.

S
SagePtr, 2018-05-01
@SagePtr

You can use ncdu, a very handy console utility, a pseudo-graphical wrapper over du that displays folders and files by size in the form of a table and allows you to navigate through folders.

1
1001001, 2018-05-01
@1001001

it all depends on the target...
find ~ -size +100000k -exec ls -la '{}' ';'

M
moropsk, 2018-05-01
@moropsk

https://linux-notes.org/poisk-bol-shih-papok-linux/
www.commandlinefu.com/commands/view/23151/list-sub...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question