image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
LinkBack Thread Tools
  #1  
Old April 28th, 2009, 06:03 PM
Registered User
 
Join Date: Apr 2009
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
UnixHackerBeard is on a distinguished road
Question Terminal help for a Linux user

My girlfriend has a powerbook G4 with a powerPC processor, which I am not familiar with. I wish to monitor temperature and RAM usage via the terminal and I was wondering if such utilities are installed by default, or if temerature and ram managing applications are available somewhere else (looking for something like acpi or sensors which are available for linux). Also, what are the device names corresponding to wlan0 and eth0 on OS X? With Linux I'd type "sudo ifconfig wlan0 down" to take the wireless connection down and renew my IP, but I know BSD device names are different but I can't recall what they are. Help with any of these topics would be appreciate. OS X is a great OS and I'd like to become more familiar with it.
Reply With Quote
  #2  
Old April 28th, 2009, 09:57 PM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: One of these days, Alice....
Posts: 299
Thanks: 3
Thanked 3 Times in 3 Posts
macbri has a spectacular aura aboutmacbri has a spectacular aura about
Hi there!

There might be other possibilities, but here's one set of suggestions:

RAM usage: try "top -l 1" (that's a lowercase L) and redirect to a file, or grep out the lines you want which are near the beginning of the output.

Temp: If you download the (free) Temp. monitor application from bresink.com it comes with a command-line utility "tempmonitor" which will report (among other things) the CPU temperature. Check the docs on the site for details (not my site, I'm sorry to say).

Device names: Ethernet is typically "en0" and the airport (wlan) is "en1". You can for example, exactly as you describe, "sudo ifconfig en1 down" to shut off the airport.

Hope that helps!
__________________
Tech Blog
Reply With Quote
The Following User Says Thank You to macbri For This Useful Post:
UnixHackerBeard (April 28th, 2009)
Reply

Bookmarks

Tags
ifconfig, ram, temperature

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 08:25 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.