Skip to content

Add two more options to "less" command #208

Open
@DelilahYM

Description

@DelilahYM

In https://librarycarpentry.org/lc-shell/03-working-with-files-and-folders/index.html, when we mentioned "less" command in
"Reading files" session, I found it would be very useful to introduce the following two items with "less":

  1. (Display line numbers)The "-N" option with less to display the file with line numbers, which is extremely useful when looking at log/error files, and
  2. (Pattern search) "$ less -pPATTERN filename", OR, once inside less, use "/" followed by your pattern to do interactive searching (forwards). "n" and "N" repeat the search in the forward and reverse direction, respectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions