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


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-07-2013
lxdorney lxdorney is offline
Registered User
 
Join Date: Feb 2013
Last Activity: 15 October 2016, 5:06 PM EDT
Posts: 48
Thanks: 24
Thanked 1 Time in 1 Post
Du multiple selected directory

Hi,

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


Code:
directory structure:
mydir
     -dir1
           ---folder1
           ---folder2
     -dir2
           ---folder5
           ---folder6

total only 4 directory
          -folder1
          -folder2
          -folder6

thanks
Sponsored Links
    #2  
Old Unix and Linux 03-07-2013
ctsgnb ctsgnb is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 10 November 2016, 10:40 AM EST
Location: France
Posts: 2,948
Thanks: 82
Thanked 630 Times in 601 Posts

Code:
du -c folder1 folder2 folder6

Depending on your OS, check the option available


Code:
man du

Sponsored Links
Closed

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 06:01 PM
concatenating selected lines of multiple files laiko Shell Programming and Scripting 4 10-30-2009 01:06 PM
[help]Delete or replace text in multiple file and multiple directory dzufauzan Shell Programming and Scripting 16 06-05-2009 12:07 PM
Find & Copy Selected files to another Directory hellfyre UNIX for Dummies Questions & Answers 3 04-07-2009 10:46 PM
Running a command on multiple selected files in nautilus script Nickbowlingdude Shell Programming and Scripting 2 02-08-2009 11:21 PM



All times are GMT -4. The time now is 03:49 AM.