![]() ![]() This output tells us that the /etc directory is 18 megabytes in size. The output of this command is like this:18M. find /etc -maxdepth 0 -type d -exec du -sh \.du -shx directory: get the size of the directory excluding the size of directories on a different file system.du -sh –exclude directory1 directory: get the size of the directory excluding directory1.du -ah directory: get the size of sub-directories and files in human-readable format under this directory.du -sh directory: get a summary of the directory’s size in a human-readable format.The following Linux commands will get you the directory size. So, whether you are a beginner or an experienced Linux user, you should be able to find a method that works for you! Get the size of a directory with Linux commands We will also provide tips and tricks for each method. In this blog post, we will discuss four different ways to check directory size in Linux. Linux is a powerful operating system that offers many features and options for users. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |