Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bash - LOGNAME

Status
Not open for further replies.

chz013

Programmer
Jan 5, 2003
73
US
Hi
Is LOGNAME a bash internal variable ?

Thanks
 
Hi:

It probably depends on your flavor of linux, but it isn't on my Red Hat 7.1. However, you can set it up in /etc/profile with this:

LOGNAME=`id -un`
export LOGNAME

Regards,

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top