Re: shell commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



its should be around 14%

Sami

__________________

Hi Cheryl,

As you already know commands to get kernel & Redhat Linux version(s).
Coming to you second question about different values for
directory/filesystem sizes using du -sk or right clicking on folder etc.
Here is what happen - A filesystem, when created and empty, always uses up
some space already.  This is space preallocated for filesystem information
and pointers - ie inodes, free lists, filesystem information (such as space
usage, last modification, etc).  This information (kept in superblocks) are
duplicated in several places throughout the disk partition (that contains
the filesystem).  This, the internal structure of the filesystem is not
apparent to the user, just at the internal working of the Solaris Operating
system (virtual memory, process scheduling, swap, etc) is not apparent to
the user.   This what makes difference in output of size occupied. I hope
the difference is not more than 0.3%


Hope that answers your question.

Regards
Sami


                                                                                                                                             
                      Tushar Telichari                                                                                                       
                      <tushar@xxxxxxxxxxx>           To:       redhat-devel-list@xxxxxxxxxx                                                  
                      Sent by:                       cc:                                                                                     
                      redhat-devel-list-admin        Subject:  Re: shell commands                                                            
                      @redhat.com                                                                                                            
                                                                                                                                             
                                                                                                                                             
                      28/01/2004 03:06 PM                                                                                                    
                      Please respond to                                                                                                      
                      redhat-devel-list                                                                                                      
                                                                                                                                             
                                                                                                                                             




Hi,

To get the Redhat Linux version -
cat /etc/redhat-release
To get the kernel version -
uname -r
To get whole lot of information besides RHL version -
uname -a

To get size of directory
du -s dir_name
wide range of options are available for du about the metrics used.
man du might help :)

Regards,
--
Tushar Telichari
Telephone: +91 20 553 9909 Extn: 114
Email: tushar@xxxxxxxxxxx
Websites: http://www.versant.com http://www.geocities.com/t_telichari



On Tue, 27 Jan 2004, cheryl tan wrote:

>
> Good morning! We are currently developing a software for our
undergraduate thesis.
>
> I would like to ask for shell commands: (1.) for getting the Redhat Linux
version currently installed; and (2.) for getting the directory/folder size
>
> For #2, we have tried the [du -s foldername] command, but the size that
we get from the shell prompt is not the same as when we right click on a
folder and view its size.  We are currently using Redhat 7.2.
>
> We hope you could shed some light on our problem.  Thank you.
>
> - Cheryl Tan
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/redhat-devel-list




__________________________________________________________________________
The information contained in this email communication may be confidential.
You should only disclose, re-transmit, copy, distribute, act in reliance on
or commercialise the information if you are authorised to do so.  Any views
expressed in this email communication are those of the individual sender,
except where the sender specifically states them to be the views of a
member of the National Australia Bank Group of companies.  Any advice
contained in this e-mail has been prepared without taking into account your
objectives, financial situation or needs. Before acting on any advice in
this e-mail, National Australia Bank Limited recommends that you consider
whether it is appropriate for your circumstances. If this e-mail contains
reference to any financial products, the National recommends you consider
the Product Disclosure Statement (PDS) or other disclosure document  before
making any decisions regarding any products.  The National Australia Bank
Group of companies does not represent, warrant or guarantee that the
integrity of this communication has been maintained nor that the
communication is free of errors, virus or interference.



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux