List of the largest files and folders

To get the list of the largest files and folders, we use several commands together :

Commands:

du: The ‘du’ command in Linux is used to estimate file and directory space usage.
pipline( | ): The Pipe is a command in Linux that lets you us…


This content originally appeared on DEV Community and was authored by Ali Reza

To get the list of the largest files and folders, we use several commands together :

Commands:

  • du: The 'du' command in Linux is used to estimate file and directory space usage.
  • pipline( | ): The Pipe is a command in Linux that lets you use two or more commands such that output of one command serves as input to the next.
  • grep: Grep is a useful command to search for matching patterns in a file.
  • sort: SORT command is used to sort a file, arranging the records in a particular order.
  • head: The 'head' command in Linux is used to display the first part of files

du -ah / | grep -v "/$" | sort -rh | head -9


This content originally appeared on DEV Community and was authored by Ali Reza


Print Share Comment Cite Upload Translate Updates
APA

Ali Reza | Sciencx (2024-07-27T12:23:04+00:00) List of the largest files and folders. Retrieved from https://www.scien.cx/2024/07/27/list-of-the-largest-files-and-folders/

MLA
" » List of the largest files and folders." Ali Reza | Sciencx - Saturday July 27, 2024, https://www.scien.cx/2024/07/27/list-of-the-largest-files-and-folders/
HARVARD
Ali Reza | Sciencx Saturday July 27, 2024 » List of the largest files and folders., viewed ,<https://www.scien.cx/2024/07/27/list-of-the-largest-files-and-folders/>
VANCOUVER
Ali Reza | Sciencx - » List of the largest files and folders. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/27/list-of-the-largest-files-and-folders/
CHICAGO
" » List of the largest files and folders." Ali Reza | Sciencx - Accessed . https://www.scien.cx/2024/07/27/list-of-the-largest-files-and-folders/
IEEE
" » List of the largest files and folders." Ali Reza | Sciencx [Online]. Available: https://www.scien.cx/2024/07/27/list-of-the-largest-files-and-folders/. [Accessed: ]
rf:citation
» List of the largest files and folders | Ali Reza | Sciencx | https://www.scien.cx/2024/07/27/list-of-the-largest-files-and-folders/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.