C Shell – The Programmer’s Shell

Windows Articles

How to change DNS in Windows 10

Hi! Today we will talk a bit about networks. In fact, we will touch on a topic related to connectivity. Specifically we...

The new Windows 10 file explorer will arrive with 21H2 update.

Hello! Microsoft does not stop working (except at Christmas) to continue polishing to Windows 10. In fact, users are gradually receiving the...

How to create an FTP server in Android

Hello! How are you? Currently sharing files from your PC to Android can be more comfortable and easy, without the need to...

Installing Taskwarrior – TODO list from the command line

Hello, friends. You know we really like the terminal. That's why today we will help you installing Taskwarrior on Linux. With this...

Use Windows 10 as a hacking system by installing Kali Linux

Hello! Windows and GNU/Linux is a relationship that was previously similar to water and oil. In fact, the differences were so vast...

For running the command lines and scripts, there are a number of available shells for the Linux platform. We’ve already talked about ZSH, one of the most popular alternatives for the classic “bash” shell. There are a number of other shells available. Each of them offers a number of different features and facilities.

Today, let’s grab and enjoy the C Shell – the shell using the C++ syntax instead of the popular and familiar “bash” syntax. It’s an old shell. However, the shell gets much love from the Unix community, especially the programmers.

For enjoying C Shell, you have to get the Tcsh – a modified version of the original C Shell with new features and enhancements.

Let’s get C Shell right away!

Installing C Shell (Tcsh)

C Shell is a very cool shell and a nice alternative to the default Bash shell. However, almost all the Linux distros don’t set C Shell by default. You have to install it and set it as the default shell manually.

Run the following command(s) according to your own Linux distro –

  • Ubuntu
sudo apt install tcsh

  • Debian
sudo apt-get install tcsh
  • Fedora
sudo dnf install tcsh
  • OpenSUSE
sudo zypper install tcsh
  • Arch Linux
sudo pacman -S tcsh
  • Other Linux distros

If your system wasn’t listed above, you have to manually find out the package for your system. The package should be named as “tsch” or “c shell”. Tcsh has been around for quite a long time, so your chance of finding out C Shell is pretty high.

Listing all the shells

Before we switch to the new C Shell, we have to know the location of the shell(s). Run the following command –

cat /etc/shells/

In most cases, you’ll get more than one available shells in your system. Run the following command for the “tcsh” only.

cat /etc/shells | grep tcsh

It’s time to shift towards Tcsh.

chsh

 

 

 

Now, when asked about “Login shell”, enter “/bin/tcsh” (without quotes).

Voila! C Shell is your default shell now!

Reverting back to Bash

Not interested in C Shell anymore? Run the following command for reverting back to Bash –

chsh

 

Enter the value –

/bin/bash

Voila! Bash is back!

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to change DNS in Windows 10

Hi! Today we will talk a bit about networks. In fact, we will touch on a topic related to connectivity. Specifically we...

The new Windows 10 file explorer will arrive with 21H2 update.

Hello! Microsoft does not stop working (except at Christmas) to continue polishing to Windows 10. In fact, users are gradually receiving the...

How to create an FTP server in Android

Hello! How are you? Currently sharing files from your PC to Android can be more comfortable and easy, without the need to...

Installing Taskwarrior – TODO list from the command line

Hello, friends. You know we really like the terminal. That's why today we will help you installing Taskwarrior on Linux. With this...

Use Windows 10 as a hacking system by installing Kali Linux

Hello! Windows and GNU/Linux is a relationship that was previously similar to water and oil. In fact, the differences were so vast...
x