I have a script that opens terminal and list directories. My problem is that the second terminal ls the files but disapears in a flash. how can i make it not disappear? i have tried sleep but not working.


Put a read statement at the end of the script.

read -p "Press Enter to quit" oDummy
  • gnome-terminal -x bash -c "ls -l ../Documents " – baj May 19 '16 at 15:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.