The Operating system (Environment) is made of:

Solaris 1 – Berkley Software Distribution (BSD)

Solaris 2 – SunOS based on System 4 Release V (SVR4)

Uname –a –n –m

Showrev

Capable systems for running Solaris 2: http://access1.sun.com

Dmesg recent reboot output

Format display current available disks

Dkinfo (or dkinfo sdo sd1 | plr) – define the device and send to printer

For backing up system files: tar cvf tape_drive ‘cat filename’ (tape_drive e.g. /dev/rst0 and filename the file containing the list of files and directories to be archived)

Df and du (for list file systems)

Echo $term ( to display the terminal environment)

TERM = vt100

VI:

VI editor (esc wq for write and quit)

Keys VI Action

h Move left one character

i move down one line

k Move up one line

L Move right one character

c or r Change Character

cw Change Word

c$ or c Change remainder of line

x Delete Character

dw Delete Word

d$ or d Delete remainder of line

dd delete entire line

. repeats the last command

: takes you to VI command line

:w write the current file out (save)

:w! Write the current file out even if it is read only

:w foo Write the contents of the editor to file name foo

:q Quit the editor

:q! Quit even if document not saved

ZZ Save current file and exit editor

Ps –ef (list process along with process id and other details for identifying the process)

Ps –ef | egrep "UID|httpd" looks for a process is which contains the name "httpd"

Filtering with grep

(grep, egrep, fgrep)

grep mercury /etc/inet/hosts (this will look up the hosts file and search for mercury, via a pipe)

TAR file:

Tar cf - ./games | ( cd /tmp ; tar xvBpf - ) {cf means create an archive, - means a standard output, ./games indicates the directory to be archived and xvBpf are option flags)

ftp:

for displaying the status on a file transfer, type "hash"