I use Ubuntu 12.04.4. I install tcsh. But I still see this error :

No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)
setenv: command not found

How can I fix it ?

1 Answer 1


You have two options! Either run a csh compatible shell, or change the syntax of your command.

setenv VARIABLE value

is csh syntax (and you seem to know it). For ksh and bash the equivalent command is,

export VARIABLE=value

To run tcsh (after installing with sudo apt-get install tcsh) you can


To switch your shell to tcsh "permanently",

chsh -s /usr/bin/tcsh

To switch back to bash,

chsh -s /bin/bash

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.