Skip to content

Note to self

Coding and stuff

Create directory and enter it

December 5, 2015 by pimmey

Usual way:

mkdir directory
cd directory

One line, but still usual, way:

mkdir directory && cd directory 

My discovery today:

mkdir directory && cd $_

Especially useful when you have a long dir name. Hope I’ll remember this one.

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Google+ (Opens in new window)

Related

Posted in TerminalTagged shortcut

Post navigation

CV format
Octet

Recent Posts

  • Octet
  • Create directory and enter it
  • CV format
  • Weird JavaScript
  • Opening files in apps using terminal

Categories

  • Email
  • Git
  • iOS
  • IPs
  • JavaScript
  • Laravel
  • PDF
  • Terminal
  • Ubuntu
Proudly powered by WordPress | By Yegor Borisenco pimmey@pimmey.com