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
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 Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.
🐧 27 comments so far... add one ↓
🐧 27 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Sorry, making mistakes again and again.
one more time.
Thnx once again.
thanks for proving this information. It solved my problem while installing xfig in fc8.
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
Type /usr/bin/csh at Login shell and press [Enter] key.
u mean at terminal I should do this.
thanks it works
Hey when I type this /usr/bin/csh on login shell, it says that Shell not changed
What does it mean ?
when i am trying to install csh using
$ sudo apt-get install csh
i get this message
sudo: apt-get: command not found
Sanjeev, I would venture to say you are not running a debian based linux distro. What distro are you running?
hi
how can install csh package on ubuntu
you can write in a terminal as
sudo apt-get instal csh
Hi!
I has innstall sun’s fedora 10. I want innstall tcsh,Ok?
Thanks!’
I am is chinese,So english very not good.
Does anyone know where to download csh? I have been looking on the web with no luck!
Go here:
http://www.tcsh.org/MostRecentRelease
@Moon, use yum command to install csh
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.
Hi, How do I start Qshell in Linux?Where do I download it?
if I have an upen to linix interfase
is it asame thing
thanks alot
Hi
when i wont to install tcsh in ubuntu
i find this message
E: Impossible de trouver le paquet tcsh
please help me
thanks
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
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
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
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.
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
What are the uses of C Shell and How can i do work with it??????
Hi .Thanks for helping me understand what is tsch shell but stil ask whether this enhancement versions are compartible with any given linux .
can u tell me how to install c shell in red hat linux version 5
Thank You very much. Its the first “First-Class-Help”, everybody understand it and:
IT WORKS!!!