doexec command in Linux with examples Last Updated : 02 Jun, 2022 Comments Improve Suggest changes Like Article Like Report doexec command in the Linux system is used to run an executable with an arbitrary argv[0]. It allows the user to argv[0] other than the name of the executable, which is by default passed. Syntax: doexec /path/to/executable argv[0] [argv[1-n]] Options: The argv list is used to send all options to the program being executed. Example: The following is a C program that is executed using the doexec command. C #include<stdio.h> int main(int argc, char* argv[]){ printf("The following is the list of the command-line arguments passed:\n"); for(int i=0;i<argc;i++) printf("%d -> %s\n",i,argv[i]); return 0; } Using the following lines of codes we compile and run the executable. gcc test.c -o test doexec ./test "This is argv[0]" Output: The following is the list of the command-line arguments passed: 0 -> This is argv[0] Comment More infoAdvertise with us Next Article doexec command in Linux with examples A aayushmohansinha Follow Improve Article Tags : Linux-Unix linux-command Linux-file-commands Similar Reads ex command in Linux with examples ex (stands for extended) is a text editor in Linux which is also termed as the line editor mode of the vi editor. This editor simply provided some editing commands which has greater mobility. With the help of this editor, a user can easily move between files. Also, he/she has a lot of ways to transf 4 min read echo command in Linux with Examples The echo command in Linux is a built-in command that allows users to display lines of text or strings that are passed as arguments. It is commonly used in shell scripts and batch files to output status text to the screen or a file. Syntax of `echo` command in Linuxecho [option] [string]Here, [option 3 min read ed command in Linux with examples Linux 'ed' command is used to start the ed text editor, a very minimal fronted line-based text editor. The lines are very simple in relation to other text files, hence easy to work on, for creating as well as editing, display, and manipulation of files. Since it was the first editor that was include 4 min read emacs command in Linux with examples Introduction to Emacs Editor in Linux/Unix Systems: The Emacs is referred to a family of editors, which means it has many versions or flavors or iterations. The most commonly used version of Emacs editor is GNU Emacs and was created by Richard Stallman. The main difference between text editors like 5 min read env command in Linux with Examples The 'env' command in Linux is a versatile tool used to manage environment variables. It can print all the current environment variables, set new ones, or run a command within a custom environment. Additionally, 'env' is commonly used in shell scripts to launch the correct interpreter, ensuring the s 3 min read Like