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

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

tcsh 

To switch your shell to tcsh "permanently",

chsh -s /usr/bin/tcsh 

To switch back to bash,

chsh -s /bin/bash 
0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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