command for debian OS


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers command for debian OS
# 1  
Old 02-01-2006
command for debian OS

Hi All,

I am unable to find the command for knowing the RAM size on debian os.

Also i am unable to use the command shutdown on command line. it asks for the following options:


cloud9:~# shutdown
Usage: shutdown [-akrhHPfnc] [-t secs] time [warning message]
-a: use /etc/shutdown.allow
-k: don't really shutdown, only warn.
-r: reboot after shutdown.
-h: halt after shutdown.
-P: halt action is to turn off power.
-H: halt action is to just halt.
-f: do a 'fast' reboot (skip fsck).
-F: Force fsck on reboot.
-n: do not go through "init" but go down real fast.
-c: cancel a running shutdown.
-t secs: delay between warning and kill signal.
** the "time" argument is mandatory! (try "now") **
cloud9:~#
can any one help me...
Thanks in advance.

Regards
Gauri
# 2  
Old 02-01-2006
You can use top command, this command will give you the memory total and free...

or

You can try prtdiag command ...

here is the link if you can't find it in your box..

http://people.redhat.com/tcallawa/prtdiag/

Regarding shutdown command, choose appropriate one depending on your need, I think the usage syntax is very clear as to which option to choose.
# 3  
Old 02-01-2006
You can get a lot of memory related info by issuing the command

cat /proc/meminfo

As for shutdown, most systems can be shutdown with (as root)

/sbin/shutdown -h now

On many systems, this command will turn off power as well.
# 4  
Old 02-02-2006
Thnaks for the help. but i am still unable to find the command to check the ram size. Hard disk size i can see using the df -h but what command for RAM size.

Thanks & Regards
Gauri
# 5  
Old 02-02-2006
Code:
[root@localhost ~]# cat /proc/meminfo | head
MemTotal:       514672 kB
MemFree:         26468 kB
Buffers:         85784 kB
Cached:         129196 kB
SwapCached:          0 kB
Active:         214056 kB
Inactive:       108524 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       514672 kB

# 6  
Old 02-06-2006
Thanks a lot for every one. I got what i wanted.

Regards
Gauri
# 7  
Old 02-06-2006
even free -m command will give the same result
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Debian

Need to upgrade Debian 7.8 to Debian 8.5 (Not 8.5)

Hello, I need to upgrade my Debian system 7.8 to 8.5 but by default via apt-get It moves to 8.6 version(latest stable version). I'm new to Debian so didn't figure out the solution. I've checked few suggestions over internet like editing apt source list file using snapshot archive. Please... (2 Replies)
Discussion started by: Mannu2525
2 Replies

2. UNIX for Dummies Questions & Answers

Executing a tar command with the --exclude option in a Debian shell script.

Hi All, I am trying to execute the following tar command with two --exclude options to suppress extract of the two directories specified. Do I need to single quote the directory paths ?? Many thanks for your help. The relevant code excerpt from the script is: cd /var/www/${SITE} ... (7 Replies)
Discussion started by: daveu7
7 Replies

3. Debian

Installing Debian

I'm trying to install Debian to a partition on my hard drive. I have my computer booted into Knoppix from a CD and I'm using it to download the necessary files to create an install disk that I can boot from (on a USB memory stick). Here is what someone on another forum told me to do: Are... (0 Replies)
Discussion started by: Ultrix
0 Replies

4. Debian

Debian Isos

Hi Guys, I'm new to Linux and Debian (Solaris is by bag). Anybody know where I can download a set of installation cd's/dvd's for Debian from (latest stable release please). Thanks in advance Marty (3 Replies)
Discussion started by: callmebob
3 Replies

5. Debian

Debian Help

It says that these files should be written to a floppy: Studenten Net Twente - Index of /debian/dists/etch/main/installer-i386/current/images/floppy/ How would all of those fit onto a floppy? Could I write a CD instead? (8 Replies)
Discussion started by: Bradj47
8 Replies

6. UNIX for Dummies Questions & Answers

Getting ONLINE with Debian

ok i installed DEBIAN, and i cant get online.. so suppp. i ahve cable and it uses DHCP. so i ahd red hat :eek: and i jsut type modprobe 8139too, dhcpcd eth0 and... i think thats it.. im pretty sure thats it. but NOW. i install DEBIAN type out my modprobe it works yah yah. then i type out 'dhcpcd... (1 Reply)
Discussion started by: z3mo
1 Replies

7. UNIX for Dummies Questions & Answers

debian help

ok -- i've got the main install done, but when it goes to set up apt, i can't get to an http or ftp server to get the packages. seems my dns isn't working. problem is -- i have no way, or at least don't know a way, to get into any sort of gui, in which i think i could get it going myself. i'm stuck... (1 Reply)
Discussion started by: aenemated
1 Replies
Login or Register to Ask a Question