shell_command Verified current stable Not installed? Programming

Shell Command / Run Shell Command Interactive Cli

Run Shell Command Interactive Cli

Execute shell commands directly from the Radare2 interactive console interface.

$
Terminal
!<shell_command>

When To Use

In scenarios requiring shell interactions, such as file manipulation or system-wide checks during binary analysis.

Pro Tip

Ensure that necessary permissions are set for successful execution; avoid running sensitive commands that may compromise security.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
!<shell_command>

Anatomy of Output

Understanding the result

$ ls -la Shell Command Executed

Shows the command that was run.

total 0 Total Members

Indicates the total number of files in the directory.

drwxr-xr-x 5 user group 160 Oct 10 14:20 . Current Directory Entry

Details of current directory.

Troubleshooting

Common pitfalls

!ls: command not found

Solution: Ensure the command is available in your system's environment path.

Permission denied

Solution: Run the command with proper permissions or as superuser if necessary.

!ls: No such file or directory

Solution: Check that the directory or command exists.

Command Breakdown

What each part is doing

!<shell_command>
Base Command
The executable that performs this operation. Here it runs Shell Command before the shell applies any redirect operators.
<shell_command>
shell command
The value supplied for shell command.

Alternative Approaches

Comparable commands in other tools

Alternative programming tools for the same job.