Loading...
 

Unix Tricks

This page contains quick cheats for variants of Unix. Some are specific to only one flavor of Unix (i.e. Solaris), but many can be applied to any Unix flavor (i.e. vi tricks). I make no attempt to document the obvious or simple use cases; please refer to the man pages or product documentation to understand the commands before using them.

File Manipulation

  • Create a backup copy of a file with a date stamp.
cp filetobackup filetobackup_`date +%Y%m%d`

Tools To Use

Development

Shared Libraries

  • Troubleshoot shared libraries with:
ldd <path_to_program/program>
  • Install shared libraries:
gcc -shared -fPIC -o libtestso.so test.c
copy libtestso.so /usr/local/lib/
ldconfig -v
/etc/ld.so.conf specifies the shared library paths for ldconfig
Contributors to this page: michael .
Page last modified on Monday 06 of September, 2010 09:22:53 CDT by michael.