Get the user name

Good day!
Do somebody knows how can I get the name of user?
Which command do this?
I can get the path to home folder with “path to home folder from user domain”.
But I think that must be the direct command.
Thanks for attention.

There are a number of ways to get a user’s name, Dorfi. Here are a few:

Short name:

(system info)'s short user name
tell application "System Events" to current user's name
do shell script "id  -un"
do shell script "whoami"

Full name:

(system info)'s long user name
tell application "System Events" to current user's full name

So many choices :)!
Thanks a lot.