# How to interpret the DEFAULT\_COMMAND of container console

**URL:** <https://forums.suse.com/t/how-to-interpret-the-default-command-of-container-console/3967>\
**Category:** General\
**Created:** [September 11, 2016, 2:38am UTC](https://forums.suse.com/t/how-to-interpret-the-default-command-of-container-console/3967 "2016-09-11T02:38:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dengshaodong](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@dengshaodong](https://forums.suse.com/u/dengshaodong)\
**Post date:** [September 11, 2016, 2:38am UTC](https://forums.suse.com/t/how-to-interpret-the-default-command-of-container-console/3967/1 "2016-09-11T02:38:24Z")

</div>

In ui/app/components/container-shell/component.js of Rancher-UI:

```
const DEFAULT_COMMAND = ["/bin/sh","-c",'TERM=xterm-256color; export TERM; [-x /bin/bash] && ([-x /usr/bin/script] && /usr/bin/script -q -c "/bin/bash" /dev/null || exec /bin/bash) || exec /bin/sh'];

```

How to interpret it ?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [September 11, 2016, 4:56am UTC](https://forums.suse.com/t/how-to-interpret-the-default-command-of-container-console/3967/2 "2016-09-11T04:56:50Z")

</div>

Interpret it how? That’s the command sent to start the shell. It’s long and complicated to have color, work with containers that have only `sh` vs `bash`, present itself as a terminal correctly so things like `screen` work, etc.
