Today I came across a fantastic command line trick.
Normally when I want to create a directory in the command line it takes multiple commands to start working in that directory.
mkdir tempy cd tempy
Well, that can be shortened to a one-liner!
mkdir tempy && cd $_
This is why I love software development.
It does not matter how long you have been doing it you are always learning something new!
Top comments (0)