Download and Install csh / tcsh shell on Linux

Cshell is a shell (command interpreter) with C-like syntax. How do I download and install csh shell on a Linux operating system? How can I install csh on a Fedora/RHEL/CentOS Linux server? How do I install tcsh or csh on a Debian or Ubuntu Linux desktop?

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
OR
$ tcsh

ADVERTISEMENTS

Install csh / tcsh

In case csh is not installed, type the following command at shell prompt as per your Linux distro / version.

Install it on Debian/Ubuntu/Mint Linux

$ sudo apt-get install csh

Install it on CentOS/RHEL

# yum install tcsh

Install it on Fedora Linux

$ sudo dnf install tcsh

Set csh as default login shell

To make csh as default login shell, type the following command:
$ which tcsh
OR
$ which csh
Sample output:

/bin/csh

Note down the /bin/csh or /bin/tcsh path. To change the shell simply type
$ chsh
OR
$ chsh -s /bin/csh

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
27 comments… add one
  • Prashant Dec 14, 2007 @ 12:13

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

  • sarat babu moka Jul 28, 2008 @ 13:32

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

  • Kavita Lalwani Dec 9, 2008 @ 4:03

    Hi, I have a question.
    I was trying to install csh via commands
    …………………………………………………………………….
    kavita@atom:~> which csh
    /usr/bin/csh
    kavita@atom:~> chsh
    Changing login shell for kavita.
    Password:
    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 Dec 9, 2008 @ 7:15

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

  • Kavita Lalwani Dec 9, 2008 @ 10:54

    u mean at terminal I should do this.

  • Kavita Lalwani Dec 9, 2008 @ 11:19

    thanks it works

  • Kavita Lalwani Dec 9, 2008 @ 11:30

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

    What does it mean ?

  • Sanjeev Dec 20, 2008 @ 8:31

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

    sudo: apt-get: command not found

  • Reggie Feb 26, 2009 @ 20:05

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

  • emmy Apr 16, 2009 @ 20:17

    hi
    how can install csh package on ubuntu

    • bibechan ghimire Nov 29, 2016 @ 13:22

      you can write in a terminal as
      sudo apt-get instal csh

  • Moon Jun 24, 2009 @ 12:44

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

    I am is chinese,So english very not good.

  • paulmcc Jun 30, 2009 @ 1:52

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

  • 🐧 nixCraft Jun 30, 2009 @ 4:30

    Go here:
    http://www.tcsh.org/MostRecentRelease

    @Moon, use yum command to install csh

    • sukarman Jul 24, 2015 @ 14:12

      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 Sep 14, 2009 @ 15:57

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

  • fulla Dec 14, 2009 @ 14:03

    if I have an upen to linix interfase

    is it asame thing

    thanks alot

  • khadooj Mar 10, 2010 @ 18:53

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

  • venkatesh Jun 24, 2010 @ 14:17

    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 Oct 9, 2010 @ 15:38

    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.
    Reza

  • vinay Dec 28, 2011 @ 16:30

    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

    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 Sep 14, 2012 @ 6:37

    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 Mar 6, 2013 @ 7:10

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

  • SAMUEL MBURU May 27, 2013 @ 17:46

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

  • Sivakrishna Dec 2, 2013 @ 5:12

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

  • Dieter Drefahl Dec 6, 2015 @ 16:05

    Thank You very much. Its the first “First-Class-Help”, everybody understand it and:

    IT WORKS!!!

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.