04-03-2007
Quote:
Originally Posted by tt1ect
Pls guys, what command do i use to dispaly the Disk size and Ram Size my system?
thanks
you can use these command to know ur disk space...
df --> tells you the free as well as used disk space
df -ivt--> gives more detailed info.
/etc/dfspace -->gives u the space for the root file system.
you can also try this
du -- > gives disk space used by specified files and directories..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
Is there any command or something to know the versions of the softwares installed ?
Similar to the registry in Windows, is there anything in Unix ...?
We are shifting our server to other one ... so we need to install the same versions on other server also ..
Please advice,
... (3 Replies)
Discussion started by: Jayathirtha
3 Replies
2. UNIX for Dummies Questions & Answers
I am a complete novice/dumbo with Unix. How can I ascertain what software is installed on a unix system? Any help is much appreciated. (3 Replies)
Discussion started by: wakeley
3 Replies
3. UNIX for Advanced & Expert Users
Hi,
In Unix, how do we know, which software and tools are installed? Is there any command or info file available for the same?
Regards, (7 Replies)
Discussion started by: hasnain
7 Replies
4. UNIX for Advanced & Expert Users
hi,:)
In redhat linux whats the command to list all the installed s/w.
cheers
RRK (2 Replies)
Discussion started by: ravi raj kumar
2 Replies
5. Shell Programming and Scripting
I have some 30 AIX servers and I want their software packages to be consistent. AIX provides a command to list out all pertinent information on a software package in a colon separate list - I grab this through ssh and collect in a temp directory server_name.log.
Now, I'm stuck. I can create a... (2 Replies)
Discussion started by: ejk67
2 Replies
6. Programming
Hi all,
I have developed an application in linux that uses MySQL and unixODBC. Now I am making a small installer for this application that configures environment for this application.
What I need is the way to check if MySQL and unixODBC is installed on the system before I start installing my... (3 Replies)
Discussion started by: noble_curious
3 Replies
7. UNIX for Dummies Questions & Answers
Greetings all, first time poster.
I have always had an interest in Unix and so decided to try and learn some on my own. I have learned a great deal by just lurking, so for those of you who patiently share your knowledge-thank you!
I am in the process of compiling and installing some... (3 Replies)
Discussion started by: RobertSubnet
3 Replies
8. Solaris
Hey Forumers-
I know how to tell which update of Solaris 10 is installed on my systems (/etc/release) but how can I determine which software group is installed?
reduced network support software group (SUNWCrnet)
core system support software group (SUNWCreq)
end user system support... (2 Replies)
Discussion started by: bluescreen
2 Replies
9. Solaris
Got a solaris 10 server that I want to take a flar of in order to use to build a new server. Works fine.
Only trouble is there is software on the original server that is not needed on the new server - it will be uninstalled.
I was thinking of creating the flar from the original server and... (0 Replies)
Discussion started by: psychocandy
0 Replies
10. Red Hat
Hello Team
my scenario is like i have 2 partitions on server. /apps and /home and i am trying to install my software in /apps partition.intstallation is successful but when i am trying to open something in that its showing blank screen.
now if i install that software in /home it works... (2 Replies)
Discussion started by: lalgourav1983
2 Replies
LEARN ABOUT DEBIAN
term::size
Size(3pm) User Contributed Perl Documentation Size(3pm)
NAME
Term::Size - Retrieve terminal size (Unix version)
SYNOPSIS
use Term::Size;
($columns, $rows) = Term::Size::chars *STDOUT{IO};
($x, $y) = Term::Size::pixels;
DESCRIPTION
Term::Size is a Perl module which provides a straightforward way to retrieve the terminal size.
Both functions take an optional filehandle argument, which defaults to *STDIN{IO}. They both return a list of two values, which are the
current width and height, respectively, of the terminal associated with the specified filehandle.
"Term::Size::chars" returns the size in units of characters, whereas "Term::Size::pixels" uses units of pixels.
In a scalar context, both functions return the first element of the list, that is, the terminal width.
The functions may be imported.
If you need to pass a filehandle to either of the "Term::Size" functions, beware that the *STDOUT{IO} syntax is only supported in Perl
5.004 and later. If you have an earlier version of Perl, or are interested in backwards compatibility, use *STDOUT instead.
EXAMPLES
1. Refuse to run in a too narrow window.
use Term::Size;
die "Need 80 column screen" if Term::Size::chars *STDOUT{IO} < 80;
2. Track window size changes.
use Term::Size 'chars';
my $changed = 1;
while(1) {
local $SIG{'WINCH'} = sub { $changed = 1 };
if ($changed) {
($cols, $rows) = chars;
# Redraw, or whatever.
$changed = 0;
}
}
RETURN VALUES
Both functions return "undef" if there is an error.
If the terminal size information is not available, the functions will normally return "(0, 0)", but this depends on your system. On
character only terminals, "pixels" will normally return "(0, 0)".
BUGS
It only works on Unix systems.
AUTHOR
Tim Goodwin, <tim@uunet.pipex.com>, 1997-04-23.
Candidate for maintainership: Adriano Ferreira, <ferreira@cpan.org>, 2006-05-19.
perl v5.14.2 2012-03-04 Size(3pm)