Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-26-2004, 11:59 AM   #1
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Rep: Reputation: 30
filesystem usage questions

How can I see from the CLI how much space a file occupies? how can I see how much a directory occupies ?What is an inode ? When I installed my linux I had to choose between three types of inodes 1024 2048 and 4096 ? what does this mean ?
Old 05-26-2004, 12:07 PM   #2
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
du filename
du directoryname or du inside directory the directory in question
du -s to hide subdirectory output
Old 05-26-2004, 12:20 PM   #3
Registered: May 2003
Location: USA
Distribution: Fedora 21, RHEL 5,6&7, Windoze 7
Posts: 235

Rep: Reputation: 31
Welcome to Linux!!

1. ll <filename> or ls -l <filename>
if you don't give <filename> they will list all files in the directory

2. type "man du"
du will show you file and directory sizes

3. inodes are like clusters in DOS. They are the smallest area that Linux can write a file to.
If you make the small "1024" small files will use less disk space. If you make them bigger
"4096" they will use more disk space. The advantage to larger inode sizes is that they
take less time to find and will slightly improve disk proformance.

hope this helps

Old 05-26-2004, 12:35 PM   #4
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Original Poster
Rep: Reputation: 30
Thumbs up

thank you all for the answers, they've been a real help for me


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
Filesystem Usage Question/Problem aukekim Fedora 1 08-25-2005 03:02 AM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 05:45 AM
find disk usage per user on a filesystem kebabhead Linux - General 4 08-06-2004 06:07 PM
Filesystem questions natalinasmpf Linux - General 2 02-23-2004 08:21 PM
Filesystem questions twinkers Mandriva 2 09-13-2003 08:36 PM > Forums > Linux Forums > Linux - Newbie

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

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