【 logname 】コマンド――現在のユーザーのログイン名を表示する

画面2 「su」と「su -」を実行したときのlognameコマンドなどの動作の違い

画面2 「su」と「su -」を実行したときのlognameコマンドなどの動作の違い