Nettet11. jul. 2013 · cd /home du -sm * awk '$1 > 1000' This will show all directories in /home that contain more than 1000MB. If your version of du doesn't support -m, you can use du -sk and adjust the awk bit to look for more than 1,000,000KB instead... Share Follow answered Jul 11, 2013 at 16:55 twalberg 59k 10 89 83 Add a comment 5 Nettet23. des. 2013 · OK, this fixes the problem for spaces in directory names. It still fails for other whitespace. I’ll admit that it is very hard to write complex commands that handle filenames that contain newlines correctly, but this also fails for names that contain tabs. … or quote characters (").). Also, before I fixed it, it could have failed for filenames …
How to get and display the size of directories in Linux
NettetLast File Manager: # every time you want size to be calculated (nothing is cached) vifm: ga or gA to (re)calculate size (it's cached per directory basis); on recalculation the first command uses cached sizes of directories, while the second command ignores them and traverses whole directory subtrees. E.g. Vifm: Nettet11. apr. 2012 · du -h -d 1 / to get the root directories size – prayagupa Mar 15, 2024 at 19:05 @Marcel -d 0 gives you a total for the current dir, not subdirectories, as OP asked for. @Andrew_1510 if -d is not working, try --max-depth= instead. More info at: linux.die.net/man/1/du – Mladen B. Feb 3, 2024 at 8:19 for short you can use; du . -hd … harmant christophe
How to Search and Find Files Recursively in Linux?
Nettet15. des. 2016 · create a file full of /dev/zero, large enough to the maximum size you want to reserve for the virtual filesystem format this file with an ext3 filesystem (you can … Nettet29. jul. 2024 · Method-2: Find the size of a directory in Linux with ncdu command. The ncdu (NCurses Disk Usage) is a curses-based version of the well-known ‘du’ command, and provides a fast way to see which directories are consuming your disk space. The ncdu command scans the given directory and displays their files and folder sizes … The ducommand stands for disk usage. This command is included by default in most Linux distributions. You can display the size of your current directory by typing duin the command line: The system should display a list of the contents of your home directory, with a number to the left. That number is the size of … Se mer By default, thetreecommand is not included in some versions of Linux. To install it, enter the following: 1. For Debian / Ubuntu 1. For CentOS … Se mer The ncdu tool stands for NCurses Disk Usage. Like the treecommand, it is not installed by default on some versions of Linux. To install it, enter the following: 1. For Debian / Ubuntu 1. For CentOS / RedHat The ncduutility … Se mer chantilly electrician