QuestionQ10

Basic Unix Skills

In the csh or tcsh shell, which command sets the timezone environment variable to GMT?

  • A export TZ=GMT
  • B setenv TZ GMT
  • C env TZ=GMT
  • D TZ=GMT; export TZ
  • E environ TZ GMT
Explanation

The csh and tcsh shells use setenv to create or change an environment variable. setenv TZ GMT assigns GMT to the TZ variable.

Community Discussion

No comments yet. Be the first to start the discussion!