If you have prior experience in software, programming, scripting, Linux, and Automation then you can learn DevOps basics such as CI/CD pipeline and its tools in one month.
If you have prior experience of software, programming, and scripting but not familiar with Linux, and Automation then you have to learn Linux and Automation first before learning DevOps basics such as CI/CD pipeline and its tools in 2-3 months.
If you have prior experience of computer and software background but no experience in programming, scripting, Linux, and Automation then programming and scripting take two months, one month for OS and automation fundamentals, and one month for learning DevOps basics such as CI/CD pipeline and its tools. Overall, 4-5 months.
If you are interested in DevOps from top experts then check out this DevOps Training course by Intellipaat that provides instructor-led training, hands-on projects, and certification.