shell user

I‘ve recently started to use FreeBSD operating system with tcsh (c shell clone) shell. I noticed that both set and setenv command set shell user environment. What’s the difference between the SET and SETENV commands?


I am working on a shell script. I need to find out the current user name. How do I find out the current user name under Bash or Ksh shell running on Linux or Unix like operating systems?

{ 1 comment }

logname command

I am a new Linux and Unix system user. How do I find out the current login name on Linux or Unix-like operating system using command prompt?


How do I auto Logout my shell user in Linux after certain minutes of inactivity?