• Increase font size
  • Default font size
  • Decrease font size

Linux

How to monitor linux cpu usage?


vmstat 5

How to monitor linux cpu usage

top

 

how to check linux kernel is 32 bit or 64 bit

 how to check linux kernel is 32 bit or 64 bit

cat /proc/cpuinfo 

uname -m
 
Quote:
#uname -ar
 

 

How do I rescan the SCSI bus to add or remove a SCSI device without rebooting the computer

 Removing a Storage Device

 

Before removing access to the storage device itself, you may want to copy data from the device. When that is done, then you must stop and flush all I/O, and remove all operating system references to the device, as described below.  If this is a multipath device then you must do this for the multipath psuedo device, and each of the identifiers that represent a path to the device.

 

Removal of a storage device is not recommended when the system is under...

 

How can I find out if I have a 64-bit capable CPU

 Problem

 

You want to know if an x86 system is capable of running 64-bit software.

 Resolution

 

There are two primary modes of operation of the microprocessor architecture: Long mode (lm) and Legacy mode. Long mode is used by 64-bit operating systems. It combines the processor's native 64-bit mode and a 32-bit/16-bit compatibility mode. Under this mode, 64-bit, 32-bit and 16-bit applications may be supported. Legacy mode is only used by 16-bit and 32-bit operating systems.

 

To...

 

How to find out the CPU and OS information on redhat

 Code:

dmidecode | less

out put

Gives you alot of good info about your hardware. As far as OS, I suppose it depends on what your looking for. Like version number, you could run 



SMBIOS 2.3 present.

55 structures occupying 2343 bytes.

Table at 0x000F8795.

 

Handle 0x0000, DMI type 0, 19 bytes.

BIOS Information

        Vendor: IBM

        Version: -[KPE137CUS-1.12]-

        Release Date: 02/16/2006

        Address: 0xF0E00

        Runtime Size: 61952...

 

Change the Timezone in Linux

 1.First you should Login in as root,using the command ‘date’.You will see someting like  Mon Aug 17 21:31:34 UCT 2009,UCT in this case is current timezone.
2.Execute command ‘cd /usr/share/zoneinfo’,then you will find ad list of time zone regions.Choose the right region,if you live in Canada or US,this directory is the “America” directory.
3.Create a symbolic link from the appropiate timezone to /etc/localtime.For example:
ln -sf...

 

Using Ruby Rails with the Apache Web server

 From YaST select the Network Services category and then HTTP Server

Click Continue at the dialog window to install the apache2 and apache2-prefork packages (this is only shown on a new installation)

Select the radio button to enable the HTTP Service.

Select Hosts from the list and click the Edit button

At the Configured Hosts screen click the Add button to create a new Virtual Host

At the New Host Information screen enter the following (substituting your username for...

 

How to Change the Time Zone in Linux

1.Look in your directory under "/user/share/zoneinfo" and choose an available time zone. An example is "America/Los_Angeles."
2.Browse to your directory "/usr/share/zoneinfo/your/zone," where "your" is the country and "zone" is the city that is most appropriate for your time zone.

3.Replace "your/zone" with the time zone you chose in Step 1. An example is "/usr/share/zoneinfo/America/Los_Angeles."

4.Enter the symbolic link "/etc/localtime" after the link in Step 2. An example is...

 

LINUX PPTP VPN SERVER INSTALL FOR USE WITH IPHONE

 I was looking into getting an vpn connection from my iphone to my server because I wouldn't want to send my email passwords and webpasswords clear over any public WIFI. Setting up an open source vpn connection from the Iphone is fairly simple but there is not much choiche of software. To my knowledge OpenVPN and Openswan are not supported so my choiche came down to: Poptop which is probably not the most secure solution because it's uses the Microsoft protocol which has a few flaws but I...

 
Page 10 of 33