If you are involved in activities which may put you at risk of imprisonment, I would advise you now to gather as much information as possible about the prison facilities where you may be detained. Take note of the gates, the guard towers, the parking area, the roads and surrounding area, the proximity of security support services, and so on..
There are at least four levels to a prison escape. You have to escape your cell or cell block, you have to escape from the main building, you have to escape from the prison compound (getting past the perimeter wall), and finally, you have to escape capture once you are outside. The last one is actually the most difficult.
It should be understood that escaping prison does not mean going home. In fact, it means never going home.
If you are there long enough, you will note many opportunities to get out of your cell block. You will also be able to learn where the exits are, and you can make a mental map the facility’s interior to some extent. Obviously, this is much easier if you have visitors and are coordinating with people outside. Everything is easier if you have help from outside.
For Islamists and activists in Egyptian prisons, this help should be a given. As I have said, solidarity between the activists in the streets and in the prisons should be absolute; actual, practical, and not merely symbolic. Even if this is not for the purpose of organizing an escape, coordination between activists in and out of prison is tremendously important. Prison is just another battlefield where rebels can confront and disrupt the system of tyranny very directly. Imprisoned revolutionaries should not be treated as if they have been taken out of action. They are not on the sidelines, they are on the front lines.