I'm quite new to shell commands and wondered if there is a way to connect two commands: Scenario-> you check for a directory with the command ls and if it isn't there yet you connect ls with the command mkdir.
Can you connect those two? I tried ls && mkdir
Thanks for any tips and any Help!
I tried to check if there is the directory bar in my path, if not it should create one named bar. the commands should look something like that: ls bar && mkdir bar
The output of that tho is ls: bar not found . bcs obviously it wasn't created yet.