0

How would I accomplish the equivalent of:

> mkdir yo; cd yo;

by only typing the name of the directory, yo, once?

JaeGeeTee
  • 513
  • 1
  • 6
  • 23
  • `alias yo='mkdir yo; cd yo'` – janos Dec 13 '17 at 20:27
  • BTW, inasmuch as this is a question about *using* the shell more than it is a question about writing scripts for interpretation by the shell, you might consider [unix.se] or [SuperUser](https://superuser.com/) for similar questions in the future. – Charles Duffy Dec 13 '17 at 20:33

0 Answers0