Say I have a folder:./folder/Inside it there are many files and even sub-directories.When I execute:mkdir -p folderI won't see any errors even warnings. so just want to confirm, is there anything lost or changed in result of this command?
Is mkdir -p totally safe when creating folder already exists
mkdir
mkdir would not give you an error if the directory already exists and the contents for the directory will not change.http://linux.die.net/man/1/mkdir