{"id":583,"date":"2012-02-28T05:05:40","date_gmt":"2012-02-28T11:05:40","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=583"},"modified":"2026-04-14T01:17:21","modified_gmt":"2026-04-14T07:17:21","slug":"how-to-find-total-size-of-all-files-under-the-ownership-of-a-user","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/","title":{"rendered":"How to find total size of all files under the ownership of a user?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Linux servers often host multiple users and applications simultaneously. During execution, applications such as Apache or background services may generate temporary files, especially inside directories like <code>\/tmp<\/code>. Over time, these files can consume significant disk space and affect system performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">System administrators frequently need a method to identify <strong>which user is consuming disk space<\/strong> and calculate the <strong>total size of files created by that user<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains how to find both <strong>individual file sizes and total disk usage<\/strong> for files owned by a specific user using a powerful combination of Linux commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Scenario<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Consider a domain hosted on a Linux server.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A user named <strong>test<\/strong> manages the domain.<\/li>\n\n\n\n<li>All domain files are stored inside the user\u2019s home directory:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>~test<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">While running applications or scripts, temporary files may be created inside the system\u2019s <code>\/tmp<\/code> directory. To monitor storage usage, we need to calculate:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Size of each file created by the user<\/li>\n\n\n\n<li>Total disk space used by all those files<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>The Command<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following command performs this task:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \/tmp\/ -user test -type f -exec du -ch {} +<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This single command searches for files owned by a user and displays disk usage statistics.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Understanding the Commands<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. <code>find<\/code> Command<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>find<\/code> utility searches for files within a directory hierarchy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Syntax:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \/path -options<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In this case:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \/tmp\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Searches inside the <code>\/tmp<\/code> directory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. <code>-user<\/code> Option<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>-user test<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This option filters results to include only files owned by the specified user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>test<\/code> with any username.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-user mobile<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. <code>-type<\/code> Option<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Defines the file type to search.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Common file types include:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"pcrstb-wrap\"><table class=\"has-fixed-layout\"><thead><tr><th>Option<\/th><th>Meaning<\/th><\/tr><\/thead><tbody><tr><td><code>f<\/code><\/td><td>Regular files<\/td><\/tr><tr><td><code>d<\/code><\/td><td>Directories<\/td><\/tr><tr><td><code>l<\/code><\/td><td>Symbolic links<\/td><\/tr><tr><td><code>b<\/code><\/td><td>Block device files<\/td><\/tr><tr><td><code>c<\/code><\/td><td>Character device files<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In our command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-type f<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Only regular files are selected, excluding directories.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. <code>-exec<\/code> Option<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>-exec<\/code> option runs a command on files returned by <code>find<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Syntax:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-exec command {} +<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>{}<\/code> represents the files found.<\/li>\n\n\n\n<li><code>+<\/code> groups files together when executing the command.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Understanding the <code>du<\/code> Command<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>du<\/code> stands for <strong>Disk Usage<\/strong>. It reports how much disk space files occupy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Command used:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>du -ch<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Options Explained<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"pcrstb-wrap\"><table class=\"has-fixed-layout\"><thead><tr><th>Option<\/th><th>Function<\/th><\/tr><\/thead><tbody><tr><td><code>-c<\/code><\/td><td>Displays grand total<\/td><\/tr><tr><td><code>-h<\/code><\/td><td>Human-readable output (KB, MB, GB)<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This provides readable size information along with the overall total.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why Use <code>+<\/code> Instead of <code>;<\/code> in <code>-exec<\/code><\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This is an important concept.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using <code>;<\/code><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>-exec du -ch {} \\;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Runs the command <strong>separately for each file<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>du -ch file1<br>du -ch file2<br>du -ch file3<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Result:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Shows size per file<\/li>\n\n\n\n<li>No combined total<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Using <code>+<\/code> (Recommended)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>-exec du -ch {} +<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Runs the command once:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>du -ch file1 file2 file3<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Result:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Individual file sizes<\/li>\n\n\n\n<li>Grand total at the bottom <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Example Usage<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Suppose we want to check disk usage of files owned by user <strong>mobile<\/strong> inside:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/var\/mobile\/balu<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \/var\/mobile\/balu\/ -user mobile -type f -exec du -ch {} +<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Sample Output<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>496K  \/var\/mobile\/balu\/books\/GhostStory.epub<br>1.4M  \/var\/mobile\/balu\/books\/TheWiseMansFear.epub<br>1.3M  \/var\/mobile\/balu\/books\/Wolfheart.epub<br>648K  \/var\/mobile\/balu\/books\/TalionRevenant.epub<br>104K  \/var\/mobile\/balu\/deb\/package.deb<br>3.0M  \/var\/mobile\/balu\/deb\/application.deb<br>293M  \/var\/mobile\/balu\/ipa\/appfile.ipa<br>6.7M  \/var\/mobile\/balu\/sng\/music.mp3<br>311M total<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The final line shows the <strong>total disk usage<\/strong> of all files owned by the user.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Practical Use Cases<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This command is extremely useful for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Monitoring <code>\/tmp<\/code> directory growth<\/li>\n\n\n\n<li>Identifying users consuming excessive disk space<\/li>\n\n\n\n<li>Cleaning temporary files safely<\/li>\n\n\n\n<li>Managing shared hosting environments<\/li>\n\n\n\n<li>Troubleshooting storage issues<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Pro Tips<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">-> Run periodically using cron jobs for monitoring<br>->  Combine with <code>rm<\/code> carefully for cleanup automation<br>->  Use <code>sudo<\/code> if permissions restrict file access<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example cleanup preview:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \/tmp -user test -type f<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Always verify before deleting files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Managing disk usage is an essential responsibility for Linux administrators. By combining the power of <code>find<\/code> and <code>du<\/code>, administrators can quickly identify how much storage a specific user consumes and prevent disk space issues before they affect system performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \/tmp\/ -user test -type f -exec du -ch {} +<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">provides a simple yet powerful way to monitor user-generated files and maintain server health efficiently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><\/a><\/span><\/span><\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile is-vertically-aligned-center has-white-background-color has-background\"><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size wp-block-paragraph\">Facing issues? <\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Our technical support<br>engineers can solve it. <\/p>\n\n\n\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-3350a795-db50-482f-9911-301930d1b1be\"><span class=\"hs-cta-node hs-cta-3350a795-db50-482f-9911-301930d1b1be\" id=\"hs-cta-3350a795-db50-482f-9911-301930d1b1be\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/3350a795-db50-482f-9911-301930d1b1be\" ><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-3350a795-db50-482f-9911-301930d1b1be\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/3350a795-db50-482f-9911-301930d1b1be.png\"  alt=\"Contact Us today!\"\/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '3350a795-db50-482f-9911-301930d1b1be', {\"useNewLoader\":\"true\",\"region\":\"na1\"}); <\/script><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div><figure class=\"wp-block-media-text__media\"><img fetchpriority=\"high\" decoding=\"async\" width=\"904\" height=\"931\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png\" alt=\"guy server checkup\" class=\"wp-image-12943 size-full\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png 904w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-291x300.png 291w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-768x791.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-585x602.png 585w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Linux servers often host multiple users and applications simultaneously. During execution, applications such as Apache or background services may generate temporary files, especially inside directories like \/tmp. Over time, these&hellip;<\/p>\n","protected":false},"author":4,"featured_media":16916,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-583","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-miscellaneous"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Learn how to find individual and total disk usage of files owned by a specific user in Linux using the find and du commands with practical examples.\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"SupportPRO Admin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Server Management Tips | SupportPRO Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Find Disk Usage by User in Linux Using Find and Du Command\" \/>\n\t\t<meta property=\"og:description\" content=\"Learn how to find individual and total disk usage of files owned by a specific user in Linux using the find and du commands with practical examples.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/02\/SupportPro-Indexing-2.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/02\/SupportPro-Indexing-2.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-02-28T11:05:40+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-04-14T07:17:21+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Find Disk Usage by User in Linux Using Find and Du Command\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Learn how to find individual and total disk usage of files owned by a specific user in Linux using the find and du commands with practical examples.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/02\/SupportPro-Indexing-2.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/#article\",\"name\":\"Find Disk Usage by User in Linux Using Find and Du Command\",\"headline\":\"How to find total size of all files under the ownership of a user?\",\"author\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/02\\\/SupportPro-Indexing-2.png\",\"width\":1920,\"height\":1080,\"caption\":\"find total size of all files\"},\"datePublished\":\"2012-02-28T05:05:40-06:00\",\"dateModified\":\"2026-04-14T01:17:21-06:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/#webpage\"},\"articleSection\":\"Miscellaneous\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.supportpro.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/miscellaneous\\\/#listItem\",\"name\":\"Miscellaneous\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/miscellaneous\\\/#listItem\",\"position\":2,\"name\":\"Miscellaneous\",\"item\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/miscellaneous\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/#listItem\",\"name\":\"How to find total size of all files under the ownership of a user?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/#listItem\",\"position\":3,\"name\":\"How to find total size of all files under the ownership of a user?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/miscellaneous\\\/#listItem\",\"name\":\"Miscellaneous\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#organization\",\"name\":\"SupportPRO\",\"description\":\"SupportPRO Blog\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/\",\"telephone\":\"+18476076123\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/\",\"name\":\"SupportPRO Admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/13d2f63048d631e03a432375448be5eb7861069df4fef10f0cb1c7b36554c225?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"SupportPRO Admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/#webpage\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/\",\"name\":\"Find Disk Usage by User in Linux Using Find and Du Command\",\"description\":\"Learn how to find individual and total disk usage of files owned by a specific user in Linux using the find and du commands with practical examples.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/02\\\/SupportPro-Indexing-2.png\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/#mainImage\",\"width\":1920,\"height\":1080,\"caption\":\"find total size of all files\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\\\/#mainImage\"},\"datePublished\":\"2012-02-28T05:05:40-06:00\",\"dateModified\":\"2026-04-14T01:17:21-06:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/\",\"name\":\"Server Management Tips\",\"description\":\"SupportPRO Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Find Disk Usage by User in Linux Using Find and Du Command<\/title>\n\n","aioseo_head_json":{"title":"Find Disk Usage by User in Linux Using Find and Du Command","description":"Learn how to find individual and total disk usage of files owned by a specific user in Linux using the find and du commands with practical examples.","canonical_url":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/#article","name":"Find Disk Usage by User in Linux Using Find and Du Command","headline":"How to find total size of all files under the ownership of a user?","author":{"@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author"},"publisher":{"@id":"https:\/\/www.supportpro.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/02\/SupportPro-Indexing-2.png","width":1920,"height":1080,"caption":"find total size of all files"},"datePublished":"2012-02-28T05:05:40-06:00","dateModified":"2026-04-14T01:17:21-06:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/#webpage"},"isPartOf":{"@id":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/#webpage"},"articleSection":"Miscellaneous"},{"@type":"BreadcrumbList","@id":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.supportpro.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/miscellaneous\/#listItem","name":"Miscellaneous"}},{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/miscellaneous\/#listItem","position":2,"name":"Miscellaneous","item":"https:\/\/www.supportpro.com\/blog\/category\/miscellaneous\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/#listItem","name":"How to find total size of all files under the ownership of a user?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/#listItem","position":3,"name":"How to find total size of all files under the ownership of a user?","previousItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/miscellaneous\/#listItem","name":"Miscellaneous"}}]},{"@type":"Organization","@id":"https:\/\/www.supportpro.com\/blog\/#organization","name":"SupportPRO","description":"SupportPRO Blog","url":"https:\/\/www.supportpro.com\/blog\/","telephone":"+18476076123"},{"@type":"Person","@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author","url":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/","name":"SupportPRO Admin","image":{"@type":"ImageObject","@id":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/13d2f63048d631e03a432375448be5eb7861069df4fef10f0cb1c7b36554c225?s=96&d=mm&r=g","width":96,"height":96,"caption":"SupportPRO Admin"}},{"@type":"WebPage","@id":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/#webpage","url":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/","name":"Find Disk Usage by User in Linux Using Find and Du Command","description":"Learn how to find individual and total disk usage of files owned by a specific user in Linux using the find and du commands with practical examples.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.supportpro.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/#breadcrumblist"},"author":{"@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author"},"creator":{"@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/02\/SupportPro-Indexing-2.png","@id":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/#mainImage","width":1920,"height":1080,"caption":"find total size of all files"},"primaryImageOfPage":{"@id":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/#mainImage"},"datePublished":"2012-02-28T05:05:40-06:00","dateModified":"2026-04-14T01:17:21-06:00"},{"@type":"WebSite","@id":"https:\/\/www.supportpro.com\/blog\/#website","url":"https:\/\/www.supportpro.com\/blog\/","name":"Server Management Tips","description":"SupportPRO Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.supportpro.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Server Management Tips | SupportPRO Blog","og:type":"article","og:title":"Find Disk Usage by User in Linux Using Find and Du Command","og:description":"Learn how to find individual and total disk usage of files owned by a specific user in Linux using the find and du commands with practical examples.","og:url":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/","og:image":"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/02\/SupportPro-Indexing-2.png","og:image:secure_url":"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/02\/SupportPro-Indexing-2.png","og:image:width":1920,"og:image:height":1080,"article:published_time":"2012-02-28T11:05:40+00:00","article:modified_time":"2026-04-14T07:17:21+00:00","twitter:card":"summary","twitter:title":"Find Disk Usage by User in Linux Using Find and Du Command","twitter:description":"Learn how to find individual and total disk usage of files owned by a specific user in Linux using the find and du commands with practical examples.","twitter:image":"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/02\/SupportPro-Indexing-2.png"},"aioseo_meta_data":{"post_id":"583","title":"Find Disk Usage by User in Linux Using Find and Du Command","description":"Learn how to find individual and total disk usage of files owned by a specific user in Linux using the find and du commands with practical examples.","keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2026-04-14 07:17:41","breadcrumb_settings":null,"limit_modified_date":false,"open_ai":null,"ai":{"faqs":[],"keyPoints":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2021-12-10 16:16:50","updated":"2026-06-30 23:31:11","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/www.supportpro.com\/blog\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/www.supportpro.com\/blog\/category\/miscellaneous\/\" title=\"Miscellaneous\">Miscellaneous<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tHow to find total size of all files under the ownership of a user?\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.supportpro.com\/blog"},{"label":"Miscellaneous","link":"https:\/\/www.supportpro.com\/blog\/category\/miscellaneous\/"},{"label":"How to find total size of all files under the ownership of a user?","link":"https:\/\/www.supportpro.com\/blog\/how-to-find-total-size-of-all-files-under-the-ownership-of-a-user\/"}],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=583"}],"version-history":[{"count":6,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/583\/revisions"}],"predecessor-version":[{"id":16917,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/583\/revisions\/16917"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media\/16916"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}