10 More Discussions You Might Find Interesting
Is there a way to find out the size of a sub-directory?
Eg subidrectory in main directory /data, like this : /data/solr-5.3.1.
When I do a df -h /data/solr-5.3.1, it still gives the size of /data:
root@L28condor:/data/solr-5.3.1# df -h .
Filesystem Size Used... (1 Reply)
Discussion started by: anaigini45
2. Shell Programming and Scripting
I've the files in a directory in the following format having date +%Y%m%d%H
and i need the latest file i.e; YR_MNTH_2013061205 to be moved to another folder
# Ksh 88 Version
for test_time in YR*
How can i achieve that !... (2 Replies)
Discussion started by: smile689
3. Shell Programming and Scripting
I am trying to get the folder details having size more than sme specified value and also the name of the folder should be like TEST.
1. In the current directory search for all the folders having name like TEST
2. Print the list of the folder names having size more than 100... (3 Replies)
Discussion started by: Anupam_Halder
4. UNIX for Dummies Questions & Answers
Alright so I've tried a couple different things that at first glance, looked like they worked.
find . -maxdepth 5 -type d -daystart -mtime 1 | xargs du -h Which seems to ignore the previous commands such as depth and modified time.
find .. -maxdepth 2 -type d -daystart -ctime 1 | xargs... (8 Replies)
Discussion started by: Aussiemick
I need to know the size of some user home folders.
I've exported an account list from an Active Directory and wrote it into a file like:
and tried "du -sh < filename", which doesn't work. Get no results.
I don't need the size of all home... (3 Replies)
Discussion started by: borsti007
6. UNIX for Dummies Questions & Answers
I am trying to get the total size of the folder using the below command
but its not working. any ideas?
du -bc <foldername>/|grep total|tr -s " "|cut -d" " -f1
the output i am getting is
but i just want it to be as
please help (3 Replies)
Discussion started by: classic
7. UNIX for Dummies Questions & Answers
is possible to calculate the size of a folder using ls ?
ls -s works only for files..
thanks (2 Replies)
Discussion started by: aneuryzma
8. Shell Programming and Scripting
I have a folder '/samplefolder' in which i have some files like data0.txt, data1.txt and data2.txt.
I have to search the folder for existence of the file data0.txt first and if found have to copy it to some other file; next i have to search the folder for existence of file... (5 Replies)
Discussion started by: satish2712
9. UNIX for Dummies Questions & Answers
Is there a way to limit a certain folder size(e.g. Documents, Desktop)?
:) (2 Replies)
Discussion started by: tisdmin
10. Shell Programming and Scripting
I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern.
Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar