add other

get parent directory of current directory
This commit is contained in:
I-Man Ng 2019-05-02 15:45:23 +08:00 committed by GitHub
parent 5d1dea9092
commit 1ffab331e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2055,6 +2055,11 @@ hostnamectl set-hostname "mynode"
## Others ## Others
[[back to top](#handy-bash-oneliner-commands)] [[back to top](#handy-bash-oneliner-commands)]
##### Get parent directory of current directory
```bash
dirname `pwd`
```
##### Copy a file to multiple files (e.g copy fileA to file(B-D)) ##### Copy a file to multiple files (e.g copy fileA to file(B-D))
```bash ```bash
tee <fileA fileB fileC fileD >/dev/null tee <fileA fileB fileC fileD >/dev/null