14 lines
160 B
Bash
Executable File
14 lines
160 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Prints the effective username of the current user
|
|
|
|
PREFIX=''
|
|
|
|
get_username()
|
|
{
|
|
USERNAME=$(whoami)
|
|
|
|
echo "$PREFIX $USERNAME"
|
|
}
|
|
|
|
get_username |