linux verzeichnis erstellen 1

linux verzeichnis erstellen

mkdir Verzeichnisname

Here is what the above code is Doing:
1. We import the os module, which contains functions for interacting with the operating system.
2. We get the current working directory using os.getcwd() and store it in a variable.
3. We create a new directory using os.mkdir() and pass it the name of the directory we want to create.
4. We print a message to the user to let them know if the new directory was created or not.

Similar Posts