Scaricati/Verificare/IperSpaceMaxPE-6.0.1.runģ13M. Scaricati/Backup_Prisca/advert_environment.svgģ07M. type f -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I, where d stands for directory and f for files tail -10 means that I want know only the first 10 items. Finally you can use a specified path instead of the "." dot, in which the search is started from the current working directory and its recursive subfolders.Īn example of my top 10 files, launched in my home directory and the winner is: 239M. To avoid this, I redirect the correct files or directories in a text file that I can look later.įind. After trying it, I noticed a lot of annoying messages due to permission rights and at the same time the screen of the terminal very crowded. A list with the top 10 (or whatever number I need) items weighing more on my hard disk! Locate large files or directories on Linux with bash The solutionĪ discussion on Super User gave me a simple line command that fits perfectly my needs: Linux utility for finding the largest files/directories. The analyzers introduced above are good, but I wanted just an utility for finding the largest files (or directories) with the relative path, which could allow me to delete them easily. Many of them haven't received an update for a big while, but they browse your filesystem and see where the diskspace is being used at a glance. Philesight - Web-based clone of Filelight.xdiskusage - FLTK, with a treemap display.KDirStat - KDE, with a treemap display.Baobab - GTK, using pie-charts, a treeview and a treemap.tdu - Another small ncurses-based disk usage visualization utility.gt5 - Quite similar to ncdu, but a different approach.Ncdu aims to be fast, simple and easy to use, and should be able to run in any minimal POSIX-like environment with ncurses installed. It is designed to find space hogs on a remote server where you don't have an entire graphical setup available, but it is a useful tool even on regular desktop systems. NCurses Disk Usage - Ncdu is a disk usage analyzer with an ncurses interface.Looking at the home page NCurses Disk Usage, I have discovered this list of disk usage analyzers: Nevertheless the first solutions found on Internet were a list of disk analyzers. I knew of the existence of some software to analyse the disk usage with or without a GUI, but I want something new and more immediate. Some time ago, I wasn't able to understand why my partition had been reduced itself in a short time. In the article there is also a list of the most famous analyzers for linux. I have only added some code to create a text file without the annoying message "Permission denied". From a discussion on Super User, I have discovered an awesome tool that helps you to locate the largest files or directories in your computer, just typing a single command line on a bash terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |