EverKB

Knowledge Base Ever

Kako pregledati veličinu datoteke svakog direktorskog sloja na Linuxu

2019-11-21 14:30:56

oznaka: Linux,du, Veličina datoteke direktorija

Kad utvrdimo da postoji previše datoteka za tvrdi disk za čišćenje, moramo znati veličinu svakog direktorija i njegovih poddirektorija. Za dobivanje možemo upotrijebiti sljedeću naredbu:
[root@Service001 var]# du -h --max-depth=1
4.0K	./opt
12K	./kerberos
104K	./spool
4.0K	./crash
8.0K	./empty
4.0K	./local
4.0K	./games
112M	./cache
138M	./lib
24K	./db
4.0K	./adm
4.0K	./nis
217M	./log
4.0K	./gopher
12K	./tmp
4.0K	./yp
4.0K	./preserve
466M	.

oznaka

CentOS7 CentOS PHP Linux Python3 Python MySQL JavaScript MariaDB YUM Redis MySQL8 caching_sha2_password HTML mysql_native_password PHP7 CSS margin PHPUnit Framework ss5.passwd at-symbol Error Control Operator IIS password SOCKET vps daemon process MongoDB4 sudoers center Fatal Errors Phalcon SQL Server 2017 WiFi .htaccess DATE_SUB set_error_handler TestCase Compiling PHP frequency conflict PHPUnit ss5.conf apr Elasticsearch7.3 HTTP particles.js Slim Vincent Garreau daemon MongoDB Sudo Failed to build these modules: _uuid ip command pg_bha.conf SQL Server width DATE_ADD MySQL-python scrollbar Tcp BBR Compiling Apache Frameworks libpython3.7m.so.1.0 PHPStorm ss5-3.8.9 Apache2.4 Elasticsearch NodeJs show VIM CURLOPT_POSTFIELDS Minimal ISO substr Bluetooth Failed to build these modules: _ctypes INTERVAL PECL SQL Date Funcitons Wi-Fi date sub root Tag Cloud CodeIgniter font-size Laravel ss5 apache httpd dual network interfaces horiz-align node.js ShadowsocksR vertical-align CURLFille mb_substr PyCharm SUBDATE BarManager exec IntelliJIDEA PEAR SOCKS5 Proxy Server WebStorm date add remi Tag Chrome find jQuery PHP5.5 src Apache du nginx Shadowsocks-Python V2Ray cURL hide MariaDB10.4 PostgreSQL sub folder availability eth0 Install MongoDB pdo_sqlsrv SOCKS5 Web Server date mssql-tools register_shutdown_function Symfony File Upload JetBrain php-fpm sqlsrv Zend Framework ADDDATE DevExpress network interface Shadowsocks-Libev unixODBC-devel height Port 80 string Aura error_get_last INDENTIFIED BY password policy requirements SOCKS Web Development data msodbcsql Redis5 SVN Fedora Media Writer jemalloc SQLAlchemy absolute Deepin mysqlclient Shadowsocks toggle convert FuelPHP