The Wayback Machine - https://web.archive.org/web/20230512155433/https://www.geeksforgeeks.org/eval-command-in-linux-with-examples/
Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

eval command in Linux with Examples

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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 execute the commands.

Syntax

eval [arg ...]

Example: In the below figure, you can see that cd Desktop command is stored in a variable “CD” as a shell command. Now you can use this “CD” as an argument with eval command.

Options:

  • help : It displays help information.

My Personal Notes arrow_drop_up
Last Updated : 15 May, 2019
Like Article
Save Article
Similar Reads
Related Tutorials