Skip to content

Uncovering Hidden Treasures: Uncovering Huge Files in Linux



Efficiently managing disk area is a vital capacity for each skilled Linux purchaser and newbie alike. A standard downside confronted by all of us is finding giant data which takes up invaluable disk area. On this article, we are going to discuss other ways to seek out giant data in your Linux system, which can make it easier to to get invaluable disk area.

How do you filter out the large data from the publicity command?

The uncover command in Linux is a strong software program program for locating data and folders based mostly on particular parameters. When used with the suitable choices, it’s attainable to simply discover a considerable amount of data hidden in reminiscence in your Linux system. To view giant data utilizing the uncover command, use the next syntax:

uncover <path_to_search> -type f -size <size_limit>

Contained in the above syntax:

  • -type f Specifies that the expose command ought to solely seek for data.
  • -size <size_limit> Specifies the size of the file to seek for.

For instance, when it’s good to search the present guidelines for data bigger than 1 GB, you’ll use the next command:

uncover . -type f -size +1G

Publicity Command is lifesaving software program for finding particulars giant and small. To be taught extra concerning the other ways to make use of the publicity command, see our data on different methods to make use of the publicity command. By default, the uncover command moreover searches subdirectories. greatest to make use of -xdev Flag it to stop it from going inside subdirectories.

how do you discover out the large data from the du command

The du command (which stands for Disk Utilization) is one other extraordinarily efficient and versatile command-line software program program used to research disk utilization on Linux techniques. By making use of the right selections, it is possible for you to to make the most of this command to go looking giant data and folders. To filter out giant data utilizing the du command, use the following syntax:

du -a -h <path_to_directory> | sort -h -r

Let’s analyze the syntax:

  • du: command is used to see the disk utilization
  • -a: Current all data and folders
  • -h– Current file dimension in human readable format (eg MB, GB, KB)
  • <path_to_directory>: specify the trail of the guidelines that you could scan the disk area
  • |: Generally referred to as the pipe character, ship the output of 1 command to the following command in consequence
  • sort:type the output of any command
  • -h: Kinds by the human-readable numeric worth of the file dimension
  • -r: reverse sorted output

For instance, if you wish to get giant data in a file ~/Paperwork/check guidelines, you’ll use this Linux command:

du -a -h ~/Paperwork/check | sort -h -r

How do you get the majority of knowledge utilizing the ls command

The ls command is a rudimentary however very environment friendly command used to alphabetically look at the contents of a listing. Nevertheless it’s also attainable to make use of it to guidelines all the big data inside an inventory, utilizing some flags. The syntax for looking bulk data utilizing the ls command is as follows:

ls <path_to_directory> -l -h -S

Contained in the above syntax:

  • <path_to_directory> Record refers back to the path, the place you’ll find a considerable amount of data contained in the Linux file system. If this parameter is ignored, ls will search inside the present guidelines.
  • -l The flag reveals all the main points of every entry.
  • -h Shows file dimension in kilobytes, megabytes, and many others.
  • -S Kind the output in reverse descending order.

For instance, if there may be a considerable amount of data to be discovered inside the present guidelines in your Linux system, you should use the next command:

ls -l -h -S


Understanding the quantity of disk area consumed by giant knowledge is essential for environment friendly system administration. On this article, we have now explored utterly other ways to seek out giant data in Linux techniques. By way of using the uncover command, the du command, or the ls command with particular selections, giant quantities of information could be found and efficiently managed, releasing up invaluable disk area.

questions requested incessantly

How do I discover the ten biggest issues of information in Linux?

To see the highest ten data in Linux, use this command: du -a -h <path_to_directory> | sort -n -r | head -10

How can I get all data with particular permissions in Linux?

To get all the knowledge with specific permission set, use this command: uncover <path_to_directory> -perm <permissions> -type f, Choice <path_to_directory> With Guidelines you may search, and <permissions> Absolutely mod with permissions.


To entry further data, kindly confer with the next link