DevOps DevOps

A Quick Bash Tip: View File Contents With The Line Numbers

Aug 14, 2018 · by Tim Kamanin

Bash tip I've just discovered:

Next time when you do cat command to view file contents, pass the -n parameter and you'll see file source with the line numbers!

Very handy:

bash
cat -n file.whatever

Want to get more 🔥 tips like this one?

Subscribe to get notified about new dev tutorials


Dokku app.json example for Django
Fixing "ACME server returned an error..." in Dokku Letsencrypt
follow me @timonweb

more DevOpsDevOps

  • Install npm packages without sudo 🔥
  • How To Enable Passwordless Sudo For A Specific User in Linux 🔥
  • Generate Random Password Using Command-Line 🔥
  • Note on installing Comodo Positive SSL on Nginx 🔥
All DevOps posts⚡

Introduction

Hi, my name is Tim Kamanin and I'm a full-stack developer.

I love to code, learn new things and blog about technologies I use.

Recent posts

  • How to estimate available storage space in a browser
  • Installing Tailwind CSS v2 with Django-Tailwind
  • Fixing error: “chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser on Mac OS

Main topics

  • JavaScript
  • Django
  • Wagtail
  • DevOps

Misc

  • My Open Source
  • Wagtail development
  • Get in touch

© Tim Kamanin 2021. All rights reserved.