Skip to content

Instantly share code, notes, and snippets.

@MonsterRob
Created March 12, 2019 02:11
Show Gist options
  • Save MonsterRob/0595c0bdd857e858e12f417e31980f0e to your computer and use it in GitHub Desktop.
Save MonsterRob/0595c0bdd857e858e12f417e31980f0e to your computer and use it in GitHub Desktop.
Bash: a command line interface for interacting with the operating system.
interactive mode
execution and feedback
Bash shell script
commands
functions loops conditional constructs
Bash programming language
system administration tasks:disk backups, evaluating system logs,installation scripts
echo 'msg'
if [[ <condition> ]] ; then
<do something>
else
<do something>
fi
diff 命令:比较两个文件的不同
<命令> [参数列表]
Text Quote: '' ""
输出重定向 > >>
输入重定向 <
管道|
变量: <name>=<val>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment