01-shell Basic Overview

Source: Internet
Author: User
  • The shell is a command interpreter
  • Shell scripts are similar to batch programs under a DOS system (disk operating system)
  • The Shell scripting language is ideal for working with plain text types of data (configuration files, log files)
  • The Shell scripting language is a weakly typed language (it is not necessary to define the type of the variable)
Type of shell
[[email protected] ~]# cat /etc/shells/bin/sh         # 指向/bin/bash,sh为bash的软连接/bin/bash       # 默认的使用的shell/sbin/nologin   # 用于禁止用户登录/bin/dash/bin/tcsh/bin/csh
How the script executes:
bash test.sh    # 无需修改权限sh test.sh      # 无需修改权限./test.sh       # 需要修改执行权限chmod +x test.shsource test.sh  # 相当于PHP的includesh<test.shcat test.sh|sh

01-shell Basic Overview

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.