Jayvo,
When an su command is issued, it is logged in /var/adm/messages and I believe ssh is the same.
You could write a cron job that searchs the /var/adm/message file for certain patterns. You could also write wrappers for ssh and su.
-Tony
Johnach,
The top command will give you the info you are looking for, here is an example view.
My dual cpu Linux box.
0:34am up 30 days, 15:19, 6 users, load average: 0.03, 0.05, 0.01
105 processes: 104 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 0.42% user, 1.29% system, 0.0%...
Richard,
Depending on which Desktop you are using, in GNOME, you just need to click on the GNOME paw foot (start in Windowz) and click logout, this will bring you to the console.
To always go to console first, you need to edit your /etc/inittab file.
You probably have;
id:5:initdefault...
Your question is not very clear. Are you asking for some code that allocates more than 1 MB of memory?
char *buf = NULL;
buf = (char *)malloc(2000000);
This is 2MB.
-Tony
I do not think this is possible, your laptop needs to be dual homed. One NIC for the internal network at work and another for you home connection.
For it to act as a router, you need 2 NIC's.
-Tony
I am trying to do a simple division with a llu, but it is not working???? I keep on getting 0 as the %d value in the second printf statment.
main(void)
{
printf("RLIM_INFINITY as unsigned %u = %d MB\n",
RLIM_INFINITY, RLIM_INFINITY/(1024*1024))...
Now you type passwd, it will then ask you for your password, enter it and it will ask you to confirm, When you are back at the bash#, you can type /sbin/init 3 or 5 depending on what run level you what.
Run level 3 = multiuser mode, no X
Run level 5 = multiuser mode, with X(gui)
-Tony
Don't...
First of all, why are you using 5.0? As for the booting, check you bios setting to see the order in which your machine is configured to boot.
For the prompt issue, when you get the lilo prompt when booting, type linux single. This will boot linux in single user mode, once at the prompt, type...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.