> For the complete documentation index, see [llms.txt](https://sysinfo.onepub.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sysinfo.onepub.dev/reference/sysinfo/username.md).

# userName

The logged in user's name.

If you are running under sudo then the username will be 'root'.

Possible Values:

* bsutton
* andrew

### Example:

```dart
import "package:system_info2/system_info2.dart";

print("User Name          : ${SysInfo.userName}");
```
