HomeUNIXView a File with Line NumbersUNIXView a File with Line NumbersBy Quinn McHenry0671ShareFacebookTwitterPinterestWhatsApp Using the cat command in UNIX, a file can be displayed with the line number of each line preceding the line.Here is an example of displaying the file filename with line numbers:cat -n filenameTagscommandsdisplayfileUNIXShareFacebookTwitterPinterestWhatsApp Previous articleForce the speed and duplex of a Linux ethernet interfaceNext articleDisable ICMP echo (ping) responses in LinuxQuinn McHenryQuinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.RELATED ARTICLES DatabaseView and Edit Two Files Side By Side in SQL Server and Notepad++ Apple MacOS X and Unix Terminal: There are stopped jobs. LinuxUnix: How to Set the System’s Date and Time LEAVE A REPLY Cancel replyComment:Please enter your comment! Name:*Please enter your name here Email:*You have entered an incorrect email address!Please enter your email address here Website: Save my name, email, and website in this browser for the next time I comment. Most PopularZodiac Casino New Zealand Review: Unveil Your Lucky Stars July, 2024 1xSlots Philippines Review: Is it Legit? July, 2024 888 Poker Philippines: The Best Place for Poker Maniacs July, 2024 Melbet Philippines: An Honest Review For Filipino Players July, 2024 747Live Philippines Review: Discover A Hidden Casino Gem July, 2024 Load moreLATEST REVIEWSZodiac Casino New Zealand Review: Unveil Your Lucky Stars July, 2024 1xSlots Philippines Review: Is it Legit? July, 2024 888 Poker Philippines: The Best Place for Poker Maniacs July, 2024 Load moreRecent Comments techylist on How to Create a Save Collection on Instagram Techylist on Get the Scoop on How to Use Twitter Moments in Just 5 Minutes! July, 2024 techylist on Get the Scoop on How to Use Twitter Moments in Just 5 Minutes! July, 2024 Alexzander E. Aguilar on How to Insert and Remove the SIM Card in an iPhone Glenn Thomas on How To Deploy ISPAC File & SSIS Package From Command Line Buck on How to Turn On and Off Automatic Updates in Windows 10 Anna Sue Edwards on How to View Facebook Login History Dante on How Do I Copy Text from a Password Protected Word Document? Darrin on How To Stop All Friend Requests On Facebook William McCoy on How To Change Thumbs Up on Facebook Messenger