Sponsored Content
Full Discussion: command for debian OS
Top Forums UNIX for Dummies Questions & Answers command for debian OS Post 97653 by cbkihong on Wednesday 1st of February 2006 09:53:22 AM
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.
 

7 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

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

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

6. 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

7. 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
HALT(8) 						Linux System Administrator's Manual						   HALT(8)

NAME
halt, reboot, poweroff - stop the system. SYNOPSIS
/sbin/halt [-n] [-w] [-d] [-f] [-i] [-p] [-h] /sbin/reboot [-n] [-w] [-d] [-f] [-i] /sbin/poweroff [-n] [-w] [-d] [-f] [-i] [-h] DESCRIPTION
halt notes that the system is being brought down in the file /var/log/wtmp, and then either tells the kernel to halt, reboot or power-off the system. If halt or reboot is called when the system is not in runlevel 0 or 6, in other words when it's running normally, shutdown will be invoked instead (with the -h or -r flag). For more info see the shutdown(8) manpage. The rest of this manpage describes the behaviour in runlevels 0 and 6, that is when the systems shutdown scripts are being run. OPTIONS
-n Don't sync before reboot or halt. Note that the kernel and storage drivers may still sync. This implies -d. -w Don't actually reboot or halt but only write the wtmp record (in the /var/log/wtmp file). -d Don't write the wtmp record. -f Force halt or reboot, don't call shutdown(8). -i Shut down all network interfaces just before halt or reboot. -h Put all hard drives on the system in stand-by mode just before halt or power-off. -p When halting the system, switch off the power. This is the default when halt is called as poweroff. DIAGNOSTICS
If you're not the superuser, you will get the message `must be superuser'. NOTES
Under older sysvinit releases , reboot and halt should never be called directly. From release 2.74 on halt and reboot invoke shutdown(8) if the system is not in runlevel 0 or 6. This means that if halt or reboot cannot find out the current runlevel (for example, when /var/run/utmp hasn't been initialized correctly) shutdown will be called, which might not be what you want. Use the -f flag if you want to do a hard halt or reboot. The -h flag puts all hard disks in standby mode just before halt or power-off. Right now this is only implemented for IDE drives. A side effect of putting the drive in stand-by mode is that the write cache on the disk is flushed. This is important for IDE drives, since the kernel doesn't flush the write cache itself before power-off. The halt program uses /proc/ide/hd* to find all IDE disk devices, which means that /proc needs to be mounted when halt or poweroff is called or the -h switch will do nothing. AUTHOR
Miquel van Smoorenburg, miquels@cistron.nl SEE ALSO
shutdown(8), init(8) Nov 6, 2001 HALT(8)
All times are GMT -4. The time now is 02:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy