When I try to exec a ls

 $ exec ls
 Vocabulary.md       count_files.sh         hours.bak.sh          read_default.sh        test.c
 a.out           data.md                isphone.sh        
[Process completed]

The terminal completed.

What does it happen here?

marked as duplicate by muru, filbranden, Henrik, Thomas, Jeff Schaller Nov 17 '18 at 10:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.