nl
Last updated
What is nl?
nl is a command-line utility that numbers the lines of a file or standard input. It reads lines, adds line numbers, and writes the result to standard output. You can customize the numbering style, starting number, and increment between numbers. It's useful for adding line numbers to code, documents, or any text file for easier reference.
Free resources to learn nl
More in stage 11: Text Editors
nl: common questions
Can I learn nl in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain nl in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this nl tutorial for beginners?
It is lesson 55 of 166 in the free Shell / Bash roadmap, in stage 11, Text Editors. If you are new to Shell / Bash, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.