Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Du multiple selected directory

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 03-07-2013
lxdorney lxdorney is offline
Registered User
Join Date: Feb 2013
Last Activity: 10 October 2017, 9:45 PM EDT
Posts: 53
Thanks: 24
Thanked 1 Time in 1 Post
Du multiple selected directory


is there any work around to total my selected multiple directory? ie.

directory structure:

total only 4 directory

Sponsored Links
Old Unix and Linux 03-07-2013
ctsgnb ctsgnb is offline Forum Advisor  
Registered User
Join Date: Oct 2010
Last Activity: 11 October 2017, 11:47 AM EDT
Location: France
Posts: 2,962
Thanks: 85
Thanked 636 Times in 607 Posts

du -c folder1 folder2 folder6

Depending on your OS, check the option available

man du

Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
trying to print selected fields of selected lines by AWK ananyob Shell Programming and Scripting 3 05-05-2010 05:01 PM
concatenating selected lines of multiple files laiko Shell Programming and Scripting 4 10-30-2009 12:06 PM
[help]Delete or replace text in multiple file and multiple directory dzufauzan Shell Programming and Scripting 16 06-05-2009 11:07 AM
Find & Copy Selected files to another Directory hellfyre UNIX for Dummies Questions & Answers 3 04-07-2009 09:46 PM
Running a command on multiple selected files in nautilus script Nickbowlingdude Shell Programming and Scripting 2 02-08-2009 10:21 PM

All times are GMT -4. The time now is 11:04 AM.