If you open sublime-text in Linux Mint, which of exec() or system() gets called?
Asked
Active
Viewed 3,223 times
2
-
1where's the research effort? what did you try so far? – stefan May 26 '13 at 10:14
-
`system()` is a libc function, not a system call. – May 26 '13 at 20:40
-
+1 because google took me here for my question and the answer is what I wanted. But the question itself is very poor indeed. lol – msb Feb 24 '17 at 05:09
1 Answers
3
You can use strace
to track the system calls made a program:
$ strace -o mystrace.log sublime-text
That will output a chronological list of the system calls traced to the file mystrace.log
. The first system call in the log will probably answer your question: typically, a variant of exec*
is called such as execve
.
If you're curious about how executable binary files actually run however, check out the differences between raw binary and ELF files.

Vilhelm Gray
- 11,516
- 10
- 61
- 114