Linux 命令大全
Linux logname命令用于顯示用戶名稱。
執(zhí)行l(wèi)ogname指令,它會(huì)顯示目前用戶的名稱。
logname [--help][--version]
參數(shù):
顯示登錄賬號(hào)的信息:
# logname root