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 foundHow 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 valueis csh syntax (and you seem to know it). For ksh and bash the equivalent command is,
export VARIABLE=valueTo run tcsh (after installing with sudo apt-get install tcsh) you can
tcshTo switch your shell to tcsh "permanently",
chsh -s /usr/bin/tcshTo switch back to bash,
chsh -s /bin/bash 0