LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2008, 05:56 AM   #1
an_sush
Member
 
Registered: Nov 2008
Posts: 46

Rep: Reputation: 15
how to find folder size in Shell


How can i find the folder size/available size in Shell?
when i use gnome to view /tmp folder size it gives me 158kb used. But when i connect to the system using WinSCP, tmp folder size is shown 900kb. Which one is correct? and whats the command line query to find the folder size?
 
Old 11-17-2008, 05:58 AM   #2
arunkalathi
LQ Newbie
 
Registered: Oct 2007
Location: Bangalore
Posts: 5

Rep: Reputation: 0
hi,

#du -sh /path/to/folder
 
Old 11-17-2008, 05:59 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,344

Rep: Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746
try this:

df -k .
 
Old 11-17-2008, 07:09 AM   #4
beji
LQ Newbie
 
Registered: Jan 2006
Location: Bulgaria
Distribution: Fedora Core 8
Posts: 11

Rep: Reputation: 1
hi

try this as well

du --max-depth=1 -h

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find a folder size? concoran Linux - Newbie 7 11-30-2011 07:20 PM
how to find size increase most file or folder? jimmyjiang Linux - Server 1 07-16-2007 10:47 PM
folder size shipon_97 Linux - Newbie 6 06-13-2006 03:25 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration