Re: shell commands

Tushar Telichari <[email protected]> Wed, 28 Jan 2004 09:36:43 +0530 (IST)
Newsgroups gmane.linux.redhat.devel
Message-ID <[email protected]>
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: [email protected]
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!