how can I get username of network user lic?

I installed matlab on linux. And I have a network user lic. On lic server's mlm.opt file, I need to specify the username of client.
My question is how can I get the user name?
I know on windows, the user name can be get by type 'set' in cmd.
What can I do on linux?

 Accepted Answer

Chunru
Chunru on 15 Dec 2021
Edited: Chunru on 15 Dec 2021
You can try:
$ printenv
or
$ echo $USERNAME

Categories

Products

Release

R2021b

Tags

Asked:

on 15 Dec 2021

Answered:

on 15 Dec 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!