Sponsored Content
Top Forums UNIX for Dummies Questions & Answers To find when is the system last re-booted Post 302308722 by tarunicon on Monday 20th of April 2009 06:12:54 AM
Old 04-20-2009
Quote:
Originally Posted by venkatesht
Hi,

What is the command to find when is the system last re-booted?

Appreciate your help in this regard.

Regards,
Venkatesh.


u can try last or who -b
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Dual booted RHL 7.3 with Win XP..

Hello all, I'm a no Linux expert! But I perfectly dual booted Win XP with RHL 7.3 on a hp pavilion notebook (model ze5170). All working fantastic now. But I have a minor problem now. I can't get RHL probe the modem, so could not get the internet connection working. The modem is a Conexant... (1 Reply)
Discussion started by: Vishnu
1 Replies

2. What is on Your Mind?

Bush Gets booted!!

EmaBhHJbbes maybe next time they will ask journalists to take off their shoes before going for press conference :D (5 Replies)
Discussion started by: sparcguy
5 Replies

3. Linux

accessing a Debial home doc when booted ob Ubuntu

Sure it's been covered before my key words probably wrong for search, but I have a triple boot operate mostly in Ubuntu and would like to access debian files to see them without re-booting My first post and great to be here Thanks (1 Reply)
Discussion started by: worthamtx
1 Replies

4. Shell Programming and Scripting

FNG Question: Test if remote server has booted

Hello again, I have a script on my media server that wakes up my backup server, performs an 'rsync' backup, then shuts the backup server down. Currently, I have it send the Wake on LAN packet, and sleep for 5 minutes, just to give the backup server time to boot (of course it doesn't take that long,... (11 Replies)
Discussion started by: vwgtiturbo
11 Replies

5. Solaris

physical device name when booted different then at ok prompt

Hi all, I am experimenting with solaris. I noticed that when the machine is booted the physical device name of the root device is different then when I am at the ok prompt: # mount | head -1 / on /dev/dsk/c1t1d0s0 # ls -l /dev/dsk/c1t1d0s0 lrwxrwxrwx 1 root root ... (2 Replies)
Discussion started by: deadeyes
2 Replies

6. Shell Programming and Scripting

find a user on the system

i am prompting for a name to search. read user if then however, i get this error: please enter a username on the system: fool menu_script2.sh: line 123: (4 Replies)
Discussion started by: icelated
4 Replies

7. AIX

Booted to old_rootvg

Our offshore team tried to do some patching for me over the weekend, and while I'm not completely sure of how we got into this state, I know it started with them forgetting to put the alt_rootvg back to sleep before rebooting the server. Our process is this: Clone/update_all using... (1 Reply)
Discussion started by: sdiehr00
1 Replies

8. UNIX for Advanced & Expert Users

Users get booted

Hello....weird problem but hoping someone can help! Server: PowerEdge 2850 - 8 core - 12gb ram - 32 bit processor OS: Redhat ES 6 Setting: University setting .. use server for Computer Science student accounts (350 users) Every so often the system just boots you, no matter what you are... (14 Replies)
Discussion started by: cookdl
14 Replies

9. AIX

Unmirror and machine not booted after restart

My box is aix 5.3, i have done unmirror and restart, machine count't boot up missing disk in sms, BLV, is in hdisk3 when i go through maintenance mode, many command not work such as... bosboot bootlist pls suggest me... (5 Replies)
Discussion started by: reply.ravi
5 Replies
REBOOT(2)							System Calls Manual							 REBOOT(2)

NAME
reboot - reboot system or halt processor SYNOPSIS
#include <sys/reboot.h> reboot(howto) int howto; DESCRIPTION
Reboot reboots the system, and is invoked automatically in the event of unrecoverable system failures. Howto is a mask of options passed to the bootstrap program. The system call interface permits only RB_HALT or RB_AUTOBOOT to be passed to the reboot program; the other flags are used in scripts stored on the console storage media, or used in manual bootstrap procedures. When none of these options (e.g. RB_AUTOBOOT) is given, the system is rebooted from file "vmunix" in the root file system of unit 0 of a disk chosen in a processor specific way. An automatic consistency check of the disks is then normally performed. The bits of howto are: RB_HALT the processor is simply halted; no reboot takes place. RB_HALT should be used with caution. RB_ASKNAME Interpreted by the bootstrap program itself, causing it to inquire as to what file should be booted. Normally, the system is booted from the file "xx(0,0)vmunix" without asking. RB_SINGLE Normally, the reboot procedure involves an automatic disk consistency check and then multi-user operations. RB_SINGLE prevents the consistency check, rather simply booting the system with a single-user shell on the console. RB_SINGLE is interpreted by the init(8) program in the newly booted system. This switch is not available from the system call interface. Only the super-user may reboot a machine. RETURN VALUES
If successful, this call never returns. Otherwise, a -1 is returned and an error is returned in the global variable errno. ERRORS
[EPERM] The caller is not the super-user. SEE ALSO
crash(8), halt(8), init(8), reboot(8) BUGS
The notion of ``console medium'', among other things, is specific to the VAX. 4th Berkeley Distribution May 9, 1985 REBOOT(2)
All times are GMT -4. The time now is 05:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy