![]() ![]() This tool offers a customizable user interface using which a user can change to represent the tool outputs.We can select only a specified directory to get scanned and analyzed.Below is the image depicting how the tool UI looks like: Now, go to the search menu and search "filelight" in the search bar to open it. If you want to install FileLight, then run the following command in the terminal: sudo apt-get update -y It also uses pie chart representation to visualize the disk size and folders contained in it. Here are some of the tools listed covering all the cool features offered by them:įileLight is a very lightweight and easy-to-use GUI tool. So, to facilitate such users, we will discuss some of the GUI, which will make the user's tasks easy. Most users, especially those belonging to a nontechnical background, need some tools to analyze their disk and directories size easily. To run the ncdu command, type the ncdu command and analyze the output. So here is the command to install ncdu package: sudo apt-get install ncdu It does not dive deep into the folder tree-like du goes and recursively displays all the file sizes individually.ĭue to this, du commands provide more detailed information than ncdu commands and are more robust. It just outputs the disk usage of all the files present at the first level of the root directory. Unlike du commands, ncdu commands are not very raw. This tool displays the file structure in a recursive way along with the path to the respective files.īefore using this tool, run the below command to install the tree tool command in your system: sudo apt install treeĪfter the successful installation, we can run the below command to display all the files and their respective paths in the relative folder. Tree commands are a small tool designed for Linux users. This du -sh command works to list the true file sizes. Get total disk space by listing the true file size. This du -mh command lists the file sizes in terms of MegaBytes (MB) format and human-readable format. This du -kh command lists the file sizes in terms of 1024 byte format and in a human-readable format. In this command, c represents the total number.ĭu -total command displays all the 1st level subdirectories size present in the /var/ relative path. This du -sc command shows the total size of only the current working directory. Get the total size of the current working directory Get the total size of current working directoryĭu -s command shows only the size of the current directory in which the user is active. Get size of files and directory in a current working directory in human-readable formatĭu -h command performs the same task as the 1st command, but it displays the output in a more human-readable format ( h represents human-readable format). The full form of DU is disk usage, so this command lists all the directory and subdirectories names and their sizes (in bytes) present in the active directory in which the user is working. Get size of files and directory in current working directory You can use the ls -sh command to find out the size of the available files in the directory Below listed are the majorly used du- commands and their respective outputs: Get size of files in the directory To know the exact size of the directories, we use disk usage-related commands (du commands). In dealing with Linux, we have the ls -l command, which lists only the directories metadata. Listed below are the two approaches to perform it: In this article, we will explain the two approaches to get the total size of a directory in Linux. In Linux, we have two kinds of methods using which we can know the disk drives size, their subdirectories size, etc. If you are a Linux user, then you must know to find the disk size and memory distribution by their operating system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |