Unix Blog !

July 29, 2008

Mounting a cdrom under Solaris

Filed under: Uncategorized — Tags: , — sriram003 @ 12:53 pm

1) Log in as a user with root authority.

2) Insert the CD-ROM into the drive.

3) If the Volume Manager (vold) is running on your system, the CD-ROM is automatically mounted as /cdrom/cd_label if the CD has a label or /cdrom/unnamed_cdrom if it is unlabeled. (more…)

July 7, 2008

Solaris quick reference !

Filed under: Uncategorized — Tags: — sriram003 @ 5:21 am

Display Physical RAM:
prtconf

Kernel modules are stored in three directories
1)  /platform/sparc/kernel or /platform/i86pc/kernel
2)  /kernel
3) /usr/kernel

List devices:
sysdef

Configure a Device:
drvconfig

Remove a Device:
rem_config

Where are the templates stored that are copied into the user’s home
directories for their personal customizations?

/etc/skel

# Display the parent/child tree of a process ?
– ptree Example: ptree 1267

# Show the working directory of a process ?
– pwdx Example: pwdx 1267

# Display the processes current open files ? –
pfiles Example: pfiles 1267

Alternative for top command ? –
prstat -a

July 4, 2008

diff 2 files; output diff’s to 3rd file

Filed under: Uncategorized — Tags: , — sriram003 @ 5:20 am

bash# diff file1 file2 | grep “[<>]” | sed “s/>/\t/g;s/<//g” > file3

The above command will the difference of file1 file2 in file 3

The output of file3 looks like below:

host1
host2
                 host3
                 host4

which means file1 has host1 and host2 which is not found in file2,  and in file2 there are words like host3, host4 which is not found in file1.

Blog at WordPress.com.