11
2009
Display FreeBSD System information
FreeBSD comes with different utilities, which can be use to gathered the information as per your needs. uname command is use to print system information. dmesg command is use to print kernel ring buffer information. sysctl command is use to configure kernel parameters at runtime as well as to read hardware information.
Following list summaries, all the command you need to gather FreeBSD hardware information.
1) Determining the Hardware Type/platform:
# uname -m
or
# cat /var/run/dmesg.boot | grep CPU
2) Determining machine processor architecture:
# uname -p
3) Determining FreeBSD release level:
# uname -r
Generally, following command is use to get all info at a time:
# uname -mrs
Output:
FreeBSD 5.0-RELEASE i386
4) Determining CPU information such as speed, make etc
# dmesg | grep CPU
Output:
CPU: Pentium 4 (1716.41-MHz 686-class CPU)
acpi_cpu0: on acpi0
acpi_cpu: CPU throttling enabled, 8 steps from 100% to 12.5%
5) Determining real and available memory to FreeBSD:
# dmesg | grep memory
Output:
real memory = 201326592 (192 MB)
avail memory = 188555264 (179 MB)
Alternatively, try following command to grab memory information:
# sysctl -a | grep hw.*mem
# sysctl -a | grep mem
Output:
hw.physmem: 194985984
hw.usermem: 167641088
hw.cbb.start_memory: 2281701376
Note systcl has more info, just type the sysctl command to see rest of all information:
# sysctl -a | less
6) Determining how long a system has been up:
# uptime
7) Determining when a system was last rebooted or shutdown:
# last -1 reboot
# last -1 shutdown
8. Determining swap file system usage
# swapinfo -k
9) Determining who is logged in and what they are doing. Following all commands can be used. users command displays the list of all logged in users only.
# w
# who
# users
10) Find out when user was last logged in – You can use last command as follows:
# last user-name
(a) To find out user vivek was last logged, enter:
# last vivek
Source: www.tuxtraining.com
Leave a comment
Kategorije
- Ostalo (161)
- Računalništvo (266)
- Centos (34)
- CSS (2)
- FreeBSD (37)
- jQuery (1)
- MySQL (8)
- Na spletu dogaja … (124)
- Netbeans (4)
- PHP (20)
- Symbian (3)
- Ubuntu (32)
- Windows (5)
- Zend Framework (6)
- Zend Studio (1)
Blogroll
Arhiv
- February 2011 (5)
- December 2010 (4)
- November 2010 (2)
- October 2010 (5)
- September 2010 (6)
- August 2010 (5)
- July 2010 (10)
- June 2010 (9)
- May 2010 (10)
- April 2010 (8)
- March 2010 (12)
- February 2010 (19)
- January 2010 (20)
- December 2009 (10)
- November 2009 (1)
- October 2009 (3)
- September 2009 (2)
- August 2009 (9)
- June 2009 (11)
- May 2009 (5)
- April 2009 (6)
- March 2009 (9)
- February 2009 (15)
- January 2009 (10)
- December 2008 (17)
- November 2008 (20)
- October 2008 (16)
- September 2008 (48)
- August 2008 (56)
- July 2008 (35)
- June 2008 (35)
An article by




