Forrest logo
back to the subl tool

subl:tldr:cc4a6

subl: Open a file and jump to a specific line number.
$ subl ${filename}:${line_number}
try on your machine

The command "subl ${filename}:${line_number}" launches the Sublime Text editor and opens a specific file at a designated line number.

Explanation:

  • "subl" is a command-line utility used to open Sublime Text editor.
  • "${filename}" is the placeholder for a specific file name. It should be replaced with the actual name of the file you want to open.
  • ":" is used as a delimiter to separate the file name from the line number.
  • "${line_number}" is also a placeholder representing the desired line number to which you want to navigate in the file. Replace it with the actual line number you want to jump to.

So, when you execute this command by replacing the placeholders with actual values, the Sublime Text editor will be launched, and the specified file will be opened with the cursor positioned at the specified line number.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the subl tool