mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2024-11-22 20:54:19 +00:00
add to 'Others'
Encode strings as Base64 strings
This commit is contained in:
parent
931dc30a41
commit
85f342fb20
1 changed files with 7 additions and 0 deletions
|
@ -2151,6 +2151,13 @@ hostnamectl set-hostname "mynode"
|
|||
|
||||
## Others
|
||||
[[back to top](#handy-bash-one-liners)]
|
||||
|
||||
##### Encode strings as Base64 strings
|
||||
```bash
|
||||
echo test|base64
|
||||
#dGVzdAo=
|
||||
```
|
||||
|
||||
##### Get parent directory of current directory
|
||||
```bash
|
||||
dirname `pwd`
|
||||
|
|
Loading…
Reference in a new issue