≡ Menu

Download and Install csh / tcsh shell on Linux

Q. cshell is a shell (command interpreter) with C-like syntax. How do I download and install csh shell on Linux?

A. csh is a command language interpreter incorporating a history mechanism , job control facilities , interactive file name and user name completion, and a C-like syntax. It is used both as an interactive login shell and a shell script command processor. tcsh is an enhanced but completely compatible version of the Berkeley UNIX C shell. In most cases csh / tcsh is installed by default. All you have to do is type shell name to start using it:
$ csh
$ tcsh

Install csh / tcsh

In case csh is not installed, type the following command at shell prompt:

$ sudo apt-get install csh
If you are using Redhat / Fedora / CentOS Linux, enter the following command:
# yum install tcsh

To make csh as default login shell, type the following command:
$ which csh


$ chsh

{ 25 comments… add one }

  • Prashant December 14, 2007, 12:13 pm

    Sorry, making mistakes again and again.
    one more time.
    Thnx once again.

  • sarat babu moka July 28, 2008, 1:32 pm

    thanks for proving this information. It solved my problem while installing xfig in fc8.

  • Kavita Lalwani December 9, 2008, 4:03 am

    Hi, I have a question.
    I was trying to install csh via commands
    kavita@atom:~> which csh
    kavita@atom:~> chsh
    Changing login shell for kavita.
    Enter the new value, or press return for the default.
    Login Shell [/bin/bash]: kavitac
    chsh: Shell must be a full path name.

    What I should give the new value & what is the meaning of press return here ?

    help me

  • nixCraft December 9, 2008, 7:15 am

    Type /usr/bin/csh at Login shell and press [Enter] key.

  • Kavita Lalwani December 9, 2008, 10:54 am

    u mean at terminal I should do this.

  • Kavita Lalwani December 9, 2008, 11:19 am

    thanks it works

  • Kavita Lalwani December 9, 2008, 11:30 am

    Hey when I type this /usr/bin/csh on login shell, it says that Shell not changed

    What does it mean ?

  • Sanjeev December 20, 2008, 8:31 am

    when i am trying to install csh using
    $ sudo apt-get install csh
    i get this message

    sudo: apt-get: command not found

  • Reggie February 26, 2009, 8:05 pm

    Sanjeev, I would venture to say you are not running a debian based linux distro. What distro are you running?

  • emmy April 16, 2009, 8:17 pm

    how can install csh package on ubuntu

  • Moon June 24, 2009, 12:44 pm

    I has innstall sun’s fedora 10. I want innstall tcsh,Ok?

    I am is chinese,So english very not good.

  • paulmcc June 30, 2009, 1:52 am

    Does anyone know where to download csh? I have been looking on the web with no luck!

  • nixCraft June 30, 2009, 4:30 am

    Go here:

    @Moon, use yum command to install csh

    • sukarman July 24, 2015, 2:12 pm

      1. I use Fedora 14, but default of it is .bash cell while I need csh cell. how to get it.?can you help me.?
      2. there are 3 files: tcsh-6.19.00.tar, gzm csh-x64.exe.gz, tcsh-x86.exe.gz..which i choose one..? then how to install it.

  • Diya September 14, 2009, 3:57 pm

    Hi, How do I start Qshell in Linux?Where do I download it?

  • fulla December 14, 2009, 2:03 pm

    if I have an upen to linix interfase

    is it asame thing

    thanks alot

  • khadooj March 10, 2010, 6:53 pm

    when i wont to install tcsh in ubuntu
    i find this message
    E: Impossible de trouver le paquet tcsh
    please help me

  • venkatesh June 24, 2010, 2:17 pm

    Hi i get this error when i give csh at prompt
    $ csh
    LANG: Undefined variable.
    i can run all otehr commands, except this.. pls suggest.. tks

  • Reza October 9, 2010, 3:38 pm

    This was a great help to me. For a day I tried converting a c-shell script to bash without any luck, until i discovered this help article. After following steps my app installed like a champ.

  • vinay December 28, 2011, 4:30 pm

    i install fedora 11 but in that i use the command $ SHELL it show only bin/bash
    bin/sh but,i do the program in c shell ,so what can i do

  • Bharti May 22, 2012, 6:48 am

    Hi, I have Ubuntu 11.10.
    when i wrote
    csh on command line.. i got following:
    The program ‘csh’ can be found in the following packages:
    * csh
    * tcsh
    Ask your administrator to install one of them

    when write the following:
    sudo apt-get install csh
    bharti is not in the sudoers file. This incident will be reported.

  • kiper September 14, 2012, 6:37 am

    i use CentOS 6.2. i have same problem like that, i already install the new package of csh ¨Package tcsh-6.17-19.el6_2.x86_64 already installed and latest version¨ but when i type ¨csh” or ¨tcsh¨ on terminal, still at bash shell.
    i have already try with the same way with another PC using Ubuntu 9.04. it work. why it does´t work at CentOS. Do you have any advice…?

    thank you for your attention

  • Shashi March 6, 2013, 7:10 am

    What are the uses of C Shell and How can i do work with it??????

  • SAMUEL MBURU May 27, 2013, 5:46 pm

    Hi .Thanks for helping me understand what is tsch shell but stil ask whether this enhancement versions are compartible with any given linux .

  • Sivakrishna December 2, 2013, 5:12 am

    can u tell me how to install c shell in red hat linux version 5

Leave a Comment

   Tagged with: , , , , , , , , , , ,