Documents >> Unix >> Commands to remember

Unix Commands to Remember, Different commands I find useful.

Here I will present differen unix commands... Mostly to help myself remember those.

Find + Unrar

Find all rar files from the given position and subfolders and unpack these. Yeah I know.... the Unrar location is FreeBSD....

find . -name '*.rar' -exec /usr/local/bin/unrar x '{}' \;

 

Bind local port to a remote port, using a SSH tunnel

ssh -L 1234:remoteHost:4321 user@sshServerHostname

Here you bind the local port 1234 to port 4321 on the remote host though the SSH connection.

This is very useful to gain access to a server that can only be accessed by another local server e.g. the sshServerHostname.

 

 


^ Top | Copyright © 2007 Afterschool.dk| css | xhtml