One way is of course to just open different windows and click your way around. But this is kind of slow, especially when you have to switch between the mouse and keyboard frequently. And it tends to give you cramps in your shoulder.
Alternatively, you can open several shells and go to the different directories. Type
pwdto get the path of one directory and copy and paste it into a different shell window with your mouse. Same problem: too much switching between keyboard and mouse.
My suggestion is the following, you just define a few aliases:
alias adir='unlink ~/general/ADIR; ln -s `pwd` ~/general/ADIR; pwd >> ~/temp/adir.txt'
alias cda='cd -P ~/general/ADIR'
alias shad='tail ~/temp/adir.txt'
Now you can simply use the command
adirto mark a directory as active. If you want to go to the same directory from a different shell, simply type
shadshows you a list of the most recent active directories defined, which helps you quickly find the directories you were working in recently.
For any other thing you want to do, you can of course simply use the link
Aside from that I have a little batch script called
cp -i $@ ~/general/ADIR
This copies to the active directory whatever you give it as an argument, e.g. simply
In the advanced version you can do this between different computers. Let's say, I first define an active directory in a shell logged into a remote server using
adir. Then I could use the following script to copy things there from my local machine,
scp $@ firstname.lastname@example.org:/home/me/general/ADIR
Or you can combine it with sshfs. For example from my private machine I can execute the following command
alias cdav='cd ~/vsc/`tail -n 1 ~/vsc/temp/adir.txt | cut -d / -f 5-`'
cdto the place where the active directory on my remote server is mounted locally.