User:Oleg Kobchenko/Nut Shell

From J Wiki
Jump to navigation Jump to search

Life saver little shell scripts


Register all DLLs in a folder:: for %c in (*.dll) do regsvr32 /s %c add /u to unregister


Extract tar:: tar -xzf file.tar.gz current folder as root of expansion

Symbol link all DLLs in a folder:: for X in *.so.*; do ln -s $X ${X/.0.0/}; done
will create -> links

Unwind symbolic links::

$ file /usr/lib/*
/usr/lib/     symbolic link to `'
/usr/lib/   symbolic link to `'
List library dependencies:: ldd file         Linux 
otool -L file Mac

Symbol table:: nm -m -g file -m modules, -g externs


Share Drive:: cd ~/Public current folder as target
ln -s /Volumes/Drive same name sym-link created

Source: Share a Mac DVD drive to a Windows PC,

See Also