Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Regarding your second question, uptime does not show the real users logged in, but the total number of pseudo-terminal allocated. That is, if you have more than one open terminal, you will be counted for more than 1 user. You may compare with the output of who to clarify this point.
Regarding your second question, uptime does not show the real users logged in, but the total number of pseudo-terminal allocated. That is, if you have more than one open terminal, you will be counted for more than 1 user. You may compare with the output of who to clarify this point.
Colucix,
[root@oracle d05]# uptime
12:02:09 up 1 day, 9:15, 4 users, load average: 0.02, 0.06, 0.14
[root@oracle d05]# uptime
12:02:59 up 1 day, 9:16, 4 users, load average: 0.05, 0.06, 0.13
[root@oracle d05]# who
root pts/1 Dec 12 10:44 (yusuf.ali.com.kw)
oracrp pts/3 Dec 11 14:10 (yusuf.ali.com.kw)
root :0 Dec 12 10:54
root pts/2 Dec 12 10:55 (:0.0)
uptime shows system is rebooted before 9hours 16 mins.. but I didnt reboot my system .NFS service is also stopped automatically.. but all the remaining applications are running normally ..
Look at the output of the command last: it will show when a system boot has been done, as in
Code:
reboot system boot 2.6.22.9-0.4-def Wed Dec 12 09:08 (01:10)
anyway, it will not show who or what triggered the system shutdown (if any). Sometimes shutdowns are related to A/C power losses, and if your BIOS is capable of restore power on A/C return, they will result in system reboots. Could be this an issue for your system?
Look at the output of the command last: it will show when a system boot has been done, as in
Code:
reboot system boot 2.6.22.9-0.4-def Wed Dec 12 09:08 (01:10)
anyway, it will not show who or what triggered the system shutdown (if any). Sometimes shutdowns are related to A/C power losses, and if your BIOS is capable of restore power on A/C return, they will result in system reboots. Could be this an issue for your system?
Colucix,
result as follows :
[root@oracle d05]# last | grep boot
reboot system boot 2.6.9-42.ELsmp Tue Dec 11 02:47 (1+09:35)
system was rebooted at night 2.47 PM ..
I had my telnet session opened all the night and morning I came and accessed it and it was working fine.. I dont know why linux in all aspects sound mystery to me..
[root@oracle d05]# last | grep boot
reboot system boot 2.6.9-42.ELsmp Tue Dec 11 02:47 (1+09:35)
system was rebooted at night 2.47 PM ..
I had my telnet session opened all the night and morning I came and accessed it and it was working fine.. I dont know why linux in all aspects sound mystery to me..
Thanks Colucix
Yusuf
Hai,
In addition to the above
tail /var/log/messages at that time returned
Dec 10 16:06:33 oracle sshd(pam_unix)[28899]: session closed for user oracrp Dec 10 23:46:28 oracle sshd(pam_unix)[22935]: session opened for user root by (uid=0)
Dec 11 02:47:21 oracle syslogd 1.4.1: restart.
Dec 11 02:47:21 oracle syslog: syslogd startup succeededDec 11 02:47:21 oracle kernel: klogd 1.4.1, log source = /proc/kmsg started.
Dec 11 02:47:21 oracle kernel: Linux version 2.6.9-42.ELsmp (bhcompile@hs20-bc1-1.build.redhat.com) (gcc version 3.4.6 200604
04 (Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:27:17 EDT 2006
Dec 11 02:47:21 oracle kernel: BIOS-provided physical RAM map:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.