mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2024-11-26 06:30:17 +00:00
Spelling fixes
Signed-off-by: Simon Egersand <s.egersand@gmail.com>
This commit is contained in:
parent
c44a68b096
commit
3f0f874b2c
1 changed files with 3 additions and 4 deletions
|
@ -707,7 +707,7 @@ find . -name "*.html"|xargs rm
|
||||||
rm `find . -name "*.html"`
|
rm `find . -name "*.html"`
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Delete fiels with whitespace in filename (e.g. "hello 2001")
|
##### Delete files with whitespace in filename (e.g. "hello 2001")
|
||||||
```bash
|
```bash
|
||||||
find . -name "*.c" -print0|xargs -0 rm -rf
|
find . -name "*.c" -print0|xargs -0 rm -rf
|
||||||
```
|
```
|
||||||
|
@ -987,7 +987,6 @@ echo ${var,,}
|
||||||
helloworld
|
helloworld
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
##### Expand and then execute variable/argument
|
##### Expand and then execute variable/argument
|
||||||
```bash
|
```bash
|
||||||
cmd="bar=foo"
|
cmd="bar=foo"
|
||||||
|
@ -1875,12 +1874,12 @@ http://onceuponmine.blogspot.tw/2017/10/setting-up-msmtprc-and-use-your-gmail.ht
|
||||||
telnet 192.168.2.106 53
|
telnet 192.168.2.106 53
|
||||||
```
|
```
|
||||||
|
|
||||||
##### change network maximum transmission unit (mtu) (e.g. change to 9000)
|
##### Change network maximum transmission unit (mtu) (e.g. change to 9000)
|
||||||
```bash
|
```bash
|
||||||
ifconfig eth0 mtu 9000
|
ifconfig eth0 mtu 9000
|
||||||
```
|
```
|
||||||
|
|
||||||
##### get pid of a running process (e.g python)
|
##### Get pid of a running process (e.g python)
|
||||||
```bash
|
```bash
|
||||||
pidof python
|
pidof python
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue