Skip to content

Commit

Permalink
arithmetic operations
Browse files Browse the repository at this point in the history
  • Loading branch information
cherkavi authored Oct 18, 2022
1 parent 9f6b920 commit e11788a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -3210,7 +3210,7 @@ find . -name "*.java" -ls | awk '{byte_size += $7} END{print byte_size}'
du -hs * | sort -h
```

### calculator arifmethic operations add sub div multiply
### calculator arithmethic operations add sub div multiply evaluation
```bash
expr 30 / 5
myvar=$(expr 1 + 1)
Expand All @@ -3226,6 +3226,11 @@ echo "2 3 + p" | dc
basic calculator
```bash
echo "4+5" | bc
bc <<< 4+5
```
interactive calculator
```sh
bc -l -i
```

### sudo without password, apple keyboard, sudo script without password
Expand Down

0 comments on commit e11788a

Please sign in to comment.