-1

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.

1
0

Put a read statement at the end of the script.

read -p "Press Enter to quit" oDummy
1
  • 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.