How long does it take to learn Linux?
You can learn the Linux basics - moving around the shell, editing files, permissions and processes - in about 2 to 4 weeks of daily practice. Being comfortable enough for a junior DevOps or backend role, where you run services, read logs and debug a broken server, usually takes 3 to 6 months of regular hands-on use.
Weeks 1 to 4 - the shell
Learn to move around the filesystem, read and edit files, and use pipes with grep, less, head and tail. Learn users, groups and file permissions. Build: write a small bash script that cleans up old log files, and run it on a schedule with cron.
Months 2 to 3 - services and networking
Learn processes and signals, systemd services and journalctl, package managers, and basic networking - ports, DNS, curl and ss. Build: run an app as a systemd service, put nginx in front of it, and find out why it stops when you break the config.
Months 3 to 6 - running real servers
Read logs to find the cause of a failure, manage disk space and memory, set up SSH keys and a firewall, and handle TLS certificates. This is the level most junior job descriptions mean by "comfortable with Linux".
What makes it faster
Use the terminal every day instead of only reading about commands. The skill that matters at work is not knowing every command, it is finding out why a service is not doing what you expect.
Real DevOps work to put in your portfolio
Related questions
Can I learn Linux in a week?
You can learn the core commands in a week. Using Linux to run and debug services with confidence takes a few months of regular practice.
Which Linux distribution should I learn on?
Ubuntu or Debian is a good start because most servers and tutorials use them. The skills carry over to other distributions almost entirely.
Do I need Linux for DevOps?
Yes. Most servers, containers and CI runners run Linux, so it is the base skill for DevOps, cloud and backend roles.
Do real production work, free. Live cloud workspaces in your browser - every project you complete lands on your portfolio.
Get started - free