≡ Menu

shell user

TCSH / CSH: set vs setenv Command Differences

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?
[click to continue…]

Linux / Unix Shell Script: Get Current User Name

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?
[click to continue…]

Linux / Unix: logname Command Examples To Display Loginname

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?
[click to continue…]

Linux: TMOUT To Automatically Log Users Out

How do I auto Logout my shell user in Linux after certain minutes of inactivity?
[click to continue…]