LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-26-2004, 10:59 AM   #1
Menestrel
Member
 
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, 11:07 AM   #2
dopefish
Member
 
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, 11:20 AM   #3
youngstorm
Member
 
Registered: May 2003
Location: USA
Distribution: Fedora 21, RHEL 5,6&7, Windoze 7
Posts: 235

Rep: Reputation: 31
Hi,
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

Michael
 
Old 05-26-2004, 11:35 AM   #4
Menestrel
Member
 
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
 
  


Reply



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 02: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 04:45 AM
find disk usage per user on a filesystem kebabhead Linux - General 4 08-06-2004 05:07 PM
Filesystem questions natalinasmpf Linux - General 2 02-23-2004 07:21 PM
Filesystem questions twinkers Mandriva 2 09-13-2003 07:36 PM

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

All times are GMT -5. The time now is 06:17 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