Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 649 Bytes

the-take-command.md

File metadata and controls

27 lines (17 loc) · 649 Bytes

August 29, 2023 TIL - The take Command

The take command creates a new directory and changes to it, thus eliminating the need to type the two commands mkdir and cd.

The take will also create intermediate directories as needed.

# this
$ take /path/to/new/directory

# is the same as this
$ mkdir -p /path/to/new/directory && cd /path/to/new/directory

# or this
$ mkdir -p /path/to/new/directory
$ cd /path/to/new/directory

Use Cases

  • Use take /new/dir to replace mkdir -p /new/dir && cd /new/dir workflow

References