≡ Menu


UNIX Find A File Command

I am a new Sun Solaris UNIX user in our Lab. I would like to know more about finding files from the shell prompt. How do I find a file under UNIX operating systems using bash or ksh shell?
[click to continue…]

Solaris UNIX LUN Rescan With cfgadm Command

I know how to do LUN rescan under Linux using echo command. A reboot option (downtime) is not available for me. How do I rescan LUN under Solaris UNIX operating systems?

The cfgadm command provides configuration administration operations on dynamically reconfigurable hardware resources. Pass the -l option to Lists the state and condition of attachment points specified. Login as root and type the following command:
cfgadm -al
For further information read cfgadm and format command man page

Solaris UNIX: Change Default Shell

How do I change default ksh shell to bash shell under Solaris / OpenSolaris UNIX operating system using command line options?
[click to continue…]

Sun Solaris UNIX display list for loaded kenel device driver / modules

Q. How do I display information about loaded kernel modules under Sun Solaris UNIX operating system?

A. You need to use modinfo command which is a trivial program to display information about the loaded modules. The format of the information is as follows:

Id Loadaddr Size Info Rev Module Name

where Id is the module ID, Loadaddr is the starting text address in hexadecimal, Size is the size of text, data, and bss in hexadecimal bytes, Info is module specific information, Rev is the revision of the loadable modules system, and Module Name is the filename and description of the module.

Task: Displaying the status of kernel modules

Just enter modinfo command:
You can pass -c option to modinfo command to display the number of instances of the module loaded and the module's current state:
modinfo -c

Display information about particular module / driver only

You can also display information about particular module only by specifying its ID #:
modinfo -i 5
The above example displays the status of module # 5.

Read modinfo man page for other information and options.

lofiadm: Solaris Mount an ISO CD Image

Q. How do I mount an ISO CD image under Sun Solaris UNIX?
[click to continue…]

Reboot a Solaris UNIX System

How do I reboot a Solaris UNIX machine or server using the command / shell prompt?
[click to continue…]