• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

more: command not found

by admin

Both the less and more commands are similar in that they enable you to display the contents of a file and page through those contents if they extend beyond the screen. The less command typically has additional features that more doesn’t, but newer versions of more have added some of those features. While you’re free to use either command, the less command is generally preferred.

Syntax

The syntax of the more command is:

$ more [options] {file names}

If you encounter the below error while running the more command:

less: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
OS X brew install util-linux
Debian apt-get install util-linux
Ubuntu apt-get install util-linux
Alpine apk add util-linux
Arch Linux pacman -S util-linux
Kali Linux apt-get install util-linux
CentOS yum install util-linux
Fedora dnf install util-linux
Raspbian apt-get install util-linux

more Command Examples

1. Open a file:

$ more path/to/file

2. Open a file displaying from a specific line:

$ more +line_number path/to/file

3. Display help:

$ more --help

4. Go to the next page:

[Space]

5. Search for a string (press `n` to go to the next match):

/something

6. Exit from more command:

q

7. Display help about interactive commands:

h

less V/s more

Because more is relatively old, most will argue that less is far superior. The less command is similar to more, but less will allow you to navigate back and forth between paged results. So yes, it’s an old joke, but from now on, and wherever possible, always know that less really does mean more.

Filed Under: Linux

Some more articles you might also be interested in …

  1. fakeroot: command not found
  2. bash Command Examples
  3. How to Verify the Syntax of the file /etc/ssh/sshd_config
  4. dirs: Displays or manipulates the directory stack
  5. nslookup: command not found
  6. elm: Compile and run Elm source files
  7. How to move /usr and /var to Another Partition or Disk
  8. User Unable To Edit crontab, Error: “/tmp/crontab.Lm34gsJV: Permission denied”
  9. finger: User information lookup program
  10. module Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright