Tag Archives: unix
Unix / Linux: How to Print Shared Library Dependencies
Almost all programs on UNIX and/or Linux use shared libraries. Only some programs, like the root shell, /sbin/sh
, on old versions of Solaris, used to be statically linked. It is no longer the case for the current Solaris releases. It was mainly due to historical reasons when disks used to be small in size (usually 128MB or less in size) and the shared libraries in /usr/lib
were mounted from a second disk or NFS server. If you boot a server into single-user mode, it may not mount partitions other than the root partition, thereby breaking any dynamically linked program.
How to Catch Ctrl-C in Shell Script
There are times when you do not want users to stop a running shell script abruptly by sending the Ctrl-C key combination. There is no way to prevent users from doing that, but there is a way to catch or trap Ctrl-C key combinations in a shell script.