CS155 Environment
% date Wed Dec 25 15:53:16 MST 2024
date
command know what time zone I’m in?
% printenv USER=applin PATH=/bin:/usr/bin:/usr/bin/X11:. HOME=/s/parsons/d/fac/applin PWD=/s/parsons/d/fac/applin/tmp GROUP=fac HOST=blackthorn LANG=en_US.UTF-8 HOSTNAME=blackthorn PAGER=less TZ=America/Denver
printenv
or env
% echo 'I am $USER and my group is $GROUP' I am $USER and my group is $GROUP % echo "I am $USER and my group is $GROUP" I am applin and my group is fac % echo I am $USER and my group is $GROUP I am applin and my group is fac % echo $HOSTNAME blackthorn % echo $HOSTNAME | wc 1 1 11
$
to reference one of the variables
Modified: 2012-04-21T15:21 User: Guest Check: HTML CSSEdit History Source |
Apply to CSU |
Contact CSU |
Disclaimer |
Equal Opportunity Colorado State University, Fort Collins, CO 80523 USA © 2015 Colorado State University |