Rock the Command Line: rdesktop

I get a lot of work done by living at the command line. If I can save a few mouse clicks by running something from the command line, I’m going to do it. We use quite a bit of Remote Desktop at work to jump around to various windows boxes. On the Mac, I’ve been using CoRD. I noticed that it had a neat feature for forwarding disks to the remote machine. (I later found out that other RDP clients support this as well. So, it’s not a CoRD thing — I just noticed it there first.) I’m working a lot under OpenSolaris 2008.05 now and I don’t have CoRD there. I do have the command line!!! Here’s the command to rock if you’re on a box with rdesktop and you want to forward a folder over to the remote machine for easy access:

rdesktop -xm -r disk:home=/export/home/corbin \
                         -g800x600 remotewindowsbox.yourdomain.com &
The -r switch is the portion of interest here. This allows you to tell rdesktop to make /export/home/corbin (or some other local folder on your machine) available for access on the remote machine under the name of ‘home.’ This can be pretty handy if you’re jumping from machine to machine and need an easy way to move files around while you’re there.