get_orginal_user.sh
#!/bin/bash
grep `logname` /etc/passwd|awk 'BEGIN{FS=":"}{print $5"("$1")"}'
Ubuntu on Windows10ではうまく動きませんね。調査中です。RHEL6.8では動いていますが。。。
More than 5 years have passed since last update.
#!/bin/bash
grep `logname` /etc/passwd|awk 'BEGIN{FS=":"}{print $5"("$1")"}'
Ubuntu on Windows10ではうまく動きませんね。調査中です。RHEL6.8では動いていますが。。。
Register as a new user and use Qiita more conveniently