English, asked by king07suraj, 3 months ago


1.
prints the name of the current user.
*
(1 Point)​

Answers

Answered by Anonymous
3

to get the current user name, type:

  • echo "$USER"
  • u="$USER" echo "User name $u"
  • id -u -n.
  • id -u.
  • #!/bin/bash _user="$(id -u -n)" _uid="$(id -u)" echo "User name : $_user" echo "User name ID (UID) : $

Similar questions