理解Linux中bash、terminal(编码)、export、echo

  • bash

    GNU Bash

    Wikipedia Bash

    Bash Reference Manual

    From GUN, Bash is the GNU Project’s shell.

    Bash is the Bourne Again Shell.

    Bash is an sh-compatible shell that incorporates useful features from the Koren shell(ksh) and C shell(csh).

    Most sh scripts can be run by Bash without modification.

  • echo [-neE] [arg ...]

    echo is one of the Bash builtin commands.

    Output the args, separated by spaces, terminated with a newline.

    The return status is 0 unless a write error occurs.

  • export [-fn] [-p] [name[=value]]

    export is a Bourne Shell Builtins command.

    From 菜鸟教程,设置或显示环境变量。export的效力仅限于本次登录操作

    -f 代表变量名称为函数名称
    -n 删除指定变量,实际上并未删除,只是本次登录中后续不会再使用
    -p 列出所有环境变量值
    export NAME=value 定义环境变量NAME并赋值value
    
  • terminal

    From ubuntu : The Linux command line for beginner, The Linux command line is a text interface to your computer. Often referred to as the shell, terminal, console, prompt or various names.


版权声明:本文为The_Time_Runner原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。