CS155 Environment
% date Thu Nov 21 09:39:57 MST 2024 % export TZ=America/Chicago % date Thu Nov 21 10:39:57 CST 2024 % export TZ=Asia/Dubai % date Thu Nov 21 20:39:57 +04 2024 % export TZ=Europe/Paris % date Thu Nov 21 17:39:57 CET 2024 % export LANG=fr_FR.UTF-8 % date jeu. nov. 21 17:39:57 CET 2024
date
command know what time zone to use?
% env 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
env
.
% echo 'I am $USER on $HOSTNAME' I am $USER on $HOSTNAME % echo "I am $USER on $HOSTNAME" I am cs155 on beethoven % echo I am $USER on $HOSTNAME I am cs155 on beethoven % echo I am \$USER on \$HOSTNAME I am $USER on $HOSTNAME % echo $HOSTNAME beethoven % echo $HOSTNAME | wc 1 1 10 % cat $HOSTNAME cat: beethoven: No such file or directory
$
to reference one of the variables