curl save file and create directory code example Example: curl save file curl -o target/path/filename URL