# shell {#shell}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`shell(cmd)`

## Arguments {#arguments}

**cmd** is a string indicating an operating system command.

## Details {#details}

Execute an operating system command. It can only be executed by the administrator when the configuration parameter *enableShellFunction* is set to true.

Call function `system()` of the corresponding operating system. If *cmd* is successfully executed, the system will return 0. For other return values, please refer to the return values of function `system()` of the corresponding operating system.

## Examples {#examples}

```
cmd="rm -rf /home/user1/test.txt"
shell(cmd);
```

