mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 12:57:01 +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
|
||||
[[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))
|
||||
```bash
|
||||
tee <fileA fileB fileC fileD >/dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user