You need to create two new directories in your home directory. The first one is called /home/bob/letters and the second one is /home/bob/letters/sales. How would you accomplish this with a single command?
You need to create two new directories in your home directory. The first one is called /home/bob/letters and the second one is /home/bob/letters/sales. How would you accomplish this with a single command?
4 Comments
mkdir -r /home/bob/letters/sales
sorry mkdir -p not -r
mkdir /home/bob/letters /home/bob/letters/sales
mkdir -p /home/bob/letters/sales
The -p option to mkdir supplies the missing parent but you will need correct permissions.
Post a Comment