mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 21:07:00 +00:00
add other
get parent directory of current directory
This commit is contained in:
parent
5d1dea9092
commit
1ffab331e4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user