Is there an equivalent of
cd - for
Perhaps you know that you can go back and forth between current and previous directory using handy shortcut for the
But this is
cd specific. Is there a way to copy or move a file from current directory to the previous? Turns out there is.
Consider this simple snippet:
Note that `console.logg` is `undefined`. What will be printed?Read more