Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • A simple C program and the execve system call will let you set argv[0] (where $0 comes from) to anything you like. man execve or linux.die.net/man/2/execve Commented Mar 20, 2022 at 4:05
  • Use sudo cp to copy your executable to a directory, like /usr/local/bin/ that you (as $USER) don't have write access to. Remember to sudo rm your executable at the end of testing. Commented Mar 20, 2022 at 4:10