eval is a built-in Linux command which is used to execute arguments as a shell command.

eval is a built-in Linux command which is used to execute arguments as a shell command. It combines arguments into a single string and uses it as an input to the shell and executes the commands.
Example:
# start the ssh-agent in the background
$ eval $(ssh-agent -s)
Agent pid 59566  

Comments