How to get the BIOS (Basic Input Output System) information and other information in Linux/Unix such as 1.Hardware 2.CPU information 3.Drivers installed in Linux machine. For every operation/work in Linux there will be one command, this is true most of the time (all you need is to find that command). How to get BIOS info without rebooting the system? The command for this is dmidecode(DMI table decoder). Some times BIOS is called as DMI too. Just execute the command, It will just dump lots and lots of information about the system hardware. dmidecode not only give BIOS info it will give all the hardware detail present in the machine. Syntax for dmidecode command dmidecode options Learn dmidecode with examples Example 1: Display all the hardware, firmware, BIOS info #dmidecode clipped output: # dmidecode 2.11 SMBIOS 2.7 present. 32 structures occupying 1539 bytes. Table at 0x000E6760. Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: Hewlett-Packard Version: F.22 Release Date: 07/27/2011 ROM Size: 2560 kB Characteristics: PCI is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported EDD is supported Japanese floppy for NEC 9800 1.2 MB is supported (int 13h) Japanese floppy for Toshiba 1.2 MB is supported (int 13h) 5.25"/360 kB floppy services are supported (int 13h) 5.25"/1.2 MB floppy services are supported (int 13h) 3.5"/720 kB floppy services...Read More
Month: September 2009
There are so many tools to monitor network such as MRTG, now I am going to explain such tool which monitors bandwidth for a system, ie vnstat(view network statistics). Its very much easy to install and configure. This tool can give you full details about how much bandwidth used on the basics of, Per month. Per week. Per day. Per hour. Per second. Even we can see live traffic. This is awesome tool . So all the tools will not only have advantages but also disadvantages, here are they: 1)Can not monitor multiple interfaces at a time. 2)Can not monitor remote host. 3)Can not monitor per host statistics(which is verymuch useful to find the network hogger, if you want per host bandwidth analyser then use iptables counters for it). Before configuring vnstat, one thing we have to keep in mind that vnstat is a aggregating tool which is required to run at regular intervals to monitor network bandwidth. So by default when we install vnstat a cron job is created at /etc/cron.d folder. Step1 : installing vnstat #rpm –ivh vnstat-1.6-2.fc9.i386.rpm Step2 : Configuring vnstat. As I mention earlier that vnstat is an aggregate tool so it should run background by using crontab, So first edit the cron job Vi /etc/cron.d/vnstat */5 * * * * vnstat /usr/sbin/vnstat.cron Add the above line to the file, then save it and exit....Read More
How to Mount smbfs (SAMBA file system) permanently in Linux.In this post I am going to give some examples how to do SMB (Server Message Block) mounts.. Type1 : Listing SMB shared folder through command prompt #smbclient –L ipadd –U username Here –L will specify listing of SMB share for the server with ipadd Or #smbclient //192.168.0.1/share1 –U username Example : #smbclient –L 192.168.0.1 –U root Type2 : Mounting SMB share on local folder by using smbmount command #smbmount //ipadd/sharename /mountpoint –o username=userid,workgroup=workgroupname Example : #smbmount //192.168.0.1/share1 /mnt –o username=steev,workgroup=test Type3 : Mounting SMB share by using mount command #mount –t smbfs ipadd:/sharename /mountpoint –o username=userid,workgroup=workgroupname Or #mount –t smbfs //ipadd/sharename /mountpoint –o username=userid,workgroup=workgroupname Example : #mount –t smbfs 192.168.0.1:/share1 /mnt –o username=surendra,workgroup=test Type4 : Mounting CIFS (Common Internet File System) is nothing but a advanced SMB file system implementation which support RAP (Remote Access Protocol) #mount –t cifs ipadd:/sharename /mountpoint –o username=userid,workgroup=workgroupname Example : #mount –t cifs 192.168.0.1:/share1 /test –o username=Surendra,workgroup=test Type5 : All the above commands will ask password to display/mount the share name, however we can specify the password in command itself as below #mount -t smbfs -o username=userid,workgroup=workgroupname,password=XXXXX //ipadd/sharepoint /mountpoint/ Example : #mount –t smbfs –o username=Surendra,workgroup=test,password=xylBJRS8 //192.168.0.1/share1 /test Type6 : Mounting permanently by editing /etc/fstab file, below is the fstab file entry...Read More
Get more stuff like this
in your inbox
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
we respect your privacy and take protecting it seriously
Linux Bash History: Replace occurrences in last commandNov 20, 2016 | Basics
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.