mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 21:07:00 +00:00
add to 'Others'
Encode strings as Base64 strings
This commit is contained in:
parent
931dc30a41
commit
85f342fb20
@ -2151,6 +2151,13 @@ hostnamectl set-hostname "mynode"
|
|||||||
|
|
||||||
## Others
|
## Others
|
||||||
[[back to top](#handy-bash-one-liners)]
|
[[back to top](#handy-bash-one-liners)]
|
||||||
|
|
||||||
|
##### Encode strings as Base64 strings
|
||||||
|
```bash
|
||||||
|
echo test|base64
|
||||||
|
#dGVzdAo=
|
||||||
|
```
|
||||||
|
|
||||||
##### Get parent directory of current directory
|
##### Get parent directory of current directory
|
||||||
```bash
|
```bash
|
||||||
dirname `pwd`
|
dirname `pwd`
|
||||||
|
Loading…
Reference in New Issue
Block a user