Skip to main content
NYU is reconvening for classes in-person and remotely. Resources, information, and official updates from NYU regarding the current status of COVID-19 and its impact on the University community are available here, which includes detailed links for students, faculty and staff.
Logo of The Courant Institure of Mathematical Sciences
Courant Login
Logo of the Courant Institute of Mathematical Sciences
  • Institute
    • Mathematics external link
    • Computer Science external link
  • Academics
    • Undergraduate Programs
      • Computer Science external link
      • Mathematics external link
    • Master's Programs
      • Computer Science external link
      • Mathematics external link
      • Data Science external link
      • Scientific Computing external link
      • Information Systems external link
      • Math Finance external link
      • Computing, Entrepreneurship & Innovation external link
    • PhD Programs
      • Computer Science external link
      • Mathematics external link
      • Atmosphere Ocean Science external link
    • Prizes & Fellowships
  • Research
    • Research Areas
    • Research Centers
    • Faculty Recognition
  • People
    • Institute Leadership
    • Faculty
    • Postdocs & Research Staff
    • Graduate Students
    • Staff
    • Directory (Courant access only)
  • Calendars
    • Weekly Seminar Bulletin
    • Special Events and Activities
    • Seminars List
    • Classroom Calendar & Reservations (NYU access only)
    • NYU Academic Calendars external link
  • Resources
    • Faculty, Staff, & Students
    • Visitor Information
    • Computing & Technology
    • Courant Library
  • About Us
    • Contact Information
    • Directions
    • Newsletters
    • History of the Courant Institute
    • Employment Opportunities at Courant
  • Giving

Computing

  • Home
  • Search

User Services

  • Computer Accounts
  • Network Access
  • Mail
  • Web Hosting
  • Databases
  • Version Control
  • Storage and Backups
  • NYU IT Resources and Policies

Resources

  • Desktop Computing
  • Computer Labs
  • Compute Servers
  • Printing
  • Scanners, Copiers, and DVD Burners
  • Classroom Facilities
  • Remote Teaching
  • Frequently Asked Questions

Platforms

  • Linux
  • Windows
  • Mac

Software

  • Overview
  • Linux
  • Cybersecurity

Announcements

  • General
  • Critical

Shells in CentOS 7 Edit Title

Edit Body

We support four shells which you may choose from and change between at any point in time:

Shell Description Executes
/bin/bash Bash: https://en.wikipedia.org/wiki/Bash_(Unix_shell) ~/.bashrc
/bin/csh C Shell: https://en.wikipedia.org/wiki/C_shell ~/.cshrc
/bin/tcsh tcsh: https://en.wikipedia.org/wiki/Tcsh ~/.cshrc
/bin/ksh Korn Shell: https://en.wikipedia.org/wiki/Korn_shell ~/.ksh

CIMS default shell scripts

By default, all new CIMS accounts receive pre-made dot files in their home directories which correspond to each shell we support.  That is, ~/.bashrc, ~/.cshrc, and ~/.kshrc.  Each of these files begins by "sourcing" (importing and executing) the contents of some CIMS default values and actions.  The start of your .bashrc file might look like:

#
# Get CIMS defaults
#
if [ -r /usr/local/lib/.system.bashrc ] ; then
  . /usr/local/lib/.system.bashrc
fi

The referenced file is readable to all --- take a look to see what it does.  Basically it executes some code and sets some variables which we feel are useful to CIMS users.  For example, in order to use our module system (see Module System), your MODULEPATH variable must include "/usr/local/etc/modulefiles".  Our default shell files set this variable.

What you choose to do is entirely up to you.  Feel free to remove the reference to our system shell rc files, or expand and elaborate on them in your own shell rc files.

Changing your default shell

These days, all new CIMS accounts are created with /bin/bash as the default shell.  You are free at any time to change this by executing /usr/local/bin/chsh.  You will first be asked for your CIMS password, and then you can enter one of the paths to a shell listed above.

 

Edit All
  • New York University
  • Faculty of Arts and Science
  • College of Arts and Science
  • Graduate School of Arts and Science
  • Accessibility

Please e-mail comments or corrections to: jroznfgre@pbhenag.alh.rqh
For other inquiries, please see the list of contacts.
© New York University