Hello,

I know that there's a command option to create a directory if not exists
using mkdir -p DIRECTORY_NAME, but what I suggest is create a directory if
not exists when we change it, so:

$ cd non-exists-directory
$ bash: cd: non-exists-directory: No such file or directory

With the command that I suggest we can do:
cdm: change directory make if not exists
$ cdm non-exists-directory

Regards,
Mourad

Reply via email to