Classification of shells in Linux and bash configuration profiles

Source: Internet
Author: User

First, the shell classification

1. Classification by Shell type

Kde

GUI Gnome

Xfce

Shell

Sh

CLI CSH

Tcsh

Ksh

Bash

Zsh


2, from the user's point of view of the shell type

A. Log-in Shell

A. Normal usually a terminal login

B. su-username

C. su-l Usernamne

How to read the configuration file:

/etc/profile----->/etc/profile.d/*.sh--->~/.bash_profile--->~/.bashrc---->/ETC/BASHRC


B. Non-logon shell

A. Su USERNAME

B. Open Chitian window under graphics terminal

C. Automatically executed shell scripts

How to read a configuration file

~/.BASHRC---->/ETC/BASHRC----->/etc/profile.d/*.sh


Two,bash configuration file

A. Global configuration

Configured with the/etc/skel file, just as the user global configuration was created

/etc/profile

/etc/profile.d/*.sh

/etc/bashrc


B. Personal configuration

~/.bash_profile

~/.bashrc

Note:

File for Profile class:

Setting environment variables

Run a command or script

Files of the BASHRC class:

Setting Local Variables

Defining command aliases

This article is from the "A-filled blog" blog, please be sure to keep this source http://laizetian.blog.51cto.com/10728827/1698755

Classification of shells in Linux and bash configuration profiles

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.