shell note
1.shell查看编译器 sudo cat /etc/shells
2.#!/bin/bash 指定编译器
3.echo “your word” 相对于python的print
4.echo $HOME/PWD/SHELL/USER
5. A=1;echo $A; 定义变量并且输出
6.unset A;删除变量
7.readonly A=1;静态只读变量
8.默认都是string,不能直接计算
9.有空格的内容需要用“或者 ‘引起来
10.export ”变量名字“ 让变量为全局变量
11.$n $1-$9 >10 需要用
相当于()
17.$[运算表达式] 或者
-
Notifications
You must be signed in to change notification settings - Fork 0
1ChachA/shell-learning
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
begining
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published