Shell Foundation (i): Shell basic Application, simple shell script design, using shell variables, variable extension application

Source: Internet
Author: User

First, Shell basic application

Target:

This case requires familiarity with the characteristics of the Linux shell environment, mainly practicing the following actions:

1> switching the user's shell environment
2> Practice Command History, command aliases
3> REDIRECT standard input/output/error Output
4> Pipeline Operation Practice

steps:

Step one: Switch the user's shell environment

If you need to temporarily use another shell environment, you can directly execute the corresponding Shell interpreter program, such as simply executing ksh can switch to the KSH command-line environment.

[[email protected] ~]# yum-y Install Ksh//If missing Ksh Please install Ksh package first
.. ..
[Email protected] ~]# Cat/etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/ksh//Confirm that the current system is recognized Ksh
[[email protected] ~]# ksh//Enter KSH environment
[[Email protected]]~# exit//Return to bash environment before switching

Shell Foundation (i): Shell basic Application, simple shell script design, using shell variables, variable extension application

Related Article

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.