mkdir error

12 views
Skip to first unread message

Ekwonye Chibuzor Michael

unread,
May 22, 2023, 10:37:43 AM5/22/23
to Vagrant
I tried creating directories and i got this error below

mkdir: cannot create directory ‘opt/devopsdir/’: No such file or directory

How do i correct this error fam.


Regards.

Jim McGinness

unread,
May 22, 2023, 10:52:33 AM5/22/23
to vagra...@googlegroups.com
Some versions of mkdir accept a -p for "create path" - but, again, this has nothing to do with Vagrant per se.

 -- jmcg

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/vagrant/issues
Discuss: https://discuss.hashicorp.com/c/vagrant/24
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/4832384a-cfcd-4adf-b383-8acb0e09537dn%40googlegroups.com.

Alvaro Miranda Aguilera

unread,
May 23, 2023, 12:55:48 PM5/23/23
to vagra...@googlegroups.com
hello

option 1
mkdir opt/
mkdir opt/devopsdir

 
option 2
mkdir -p opt/devopsdir

but if this is on OS /opt then command is missing leading slash

mkdir /opt/devopsdir

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/vagrant/issues
Discuss: https://discuss.hashicorp.com/c/vagrant/24
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/4832384a-cfcd-4adf-b383-8acb0e09537dn%40googlegroups.com.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages