This shell script and shell programming site aims to provide book reviews and free ebook on bash shell, korn shell, shell commands, linux shell, awk shell, unix commands, ftp shell and all other shells.

Example Shell Scripts

Context-Switch
Solaris 10 Scripts

nfsclients
A shell script that will display whether or not a Solaris 10 NFS server has any active client NFS mounts. An active mount is assessed as being either mounted within the last 5 minutes or actively being used within the last 5 minutes. Whilst clients may have NFS mounts in place, if they have been inactive for a period of 5 minutes or more, the server drops the reference to that mount. This script should show the IP address and hostname of the client, if the client details are to be found in the server's host database files. The script does not try to resolve hostnames that are stored in a NIS or LDAP naming service database.
Solaris performance
diskstat
A shell script that uses the kstat utility to determine disk I/O for all disk partitions on a system. The script is intended to determine whether system-connected disks are mainly read or write intensive.
netbytes
A shell script that also uses the kstat utility, but this time to determine network throughput (in bytes) for each network port of the system. The script is intended to show whether the network ports are busy in addition to showing the throughput (input and output) in bytes rather than packets.
map_procs
This script uses the mdb utility to determine the address space mapping for all running processes that were captured in a crash dump. The script also tests for memory leaks and displays kernel memory cache statistics.

Followers