![]() ![]() In our case we tell it to get the size of each directory present in the current path (++code>-maxdepth 1 -mindepth 1++/code>) only, and to sort it by size ( ++code>sort -r -h++/code>).Īt the end, this bash command will list the files with their sizes associated sorted from the biggest one to the smallest one in the current directory. The find utility recursively descends the directory tree for each path listed. maxdepth 1 -mindepth 1 -type d -exec du -hs + | sort -r -h We are going to delete a lot of cached data, and you probably want to not lose all your work ? A useful bash commandīefore digging into the actions I've taken, there is one command you MUST know when you want to find what files and folders are taking spaces on your machine: ![]() Before starting, be sure that all the apps you have developed have their code under a version control system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |