#!/bin/bash
echo "$(whoami)"
Using /usr/bin/id command:
#!/bin/bash
echo "$(id -u -n)"
Using USER environment variable:
#!/bin/bash
echo "$USER"
by Vurdalakov |
#!/bin/bash
echo "$(whoami)"
#!/bin/bash
echo "$(id -u -n)"
#!/bin/bash
echo "$USER"
#!/bin/bash
ReplyDelete# Keep it simple
whoami
Excelent :)
ReplyDelete