LoginSignup
0
0

More than 5 years have passed since last update.

more, less コマンド

Posted at

この記事は Linux コマンド 全部オレ Advent Calendar 2017 の13日目の記事です。

more

NAME
       more - file perusal filter for crt viewing

SYNOPSIS
       more [options] file [...]

DESCRIPTION
       more  is  a filter for paging through text one screenful at a time.  This version is especially primitive.  Users should realize
       that less(1) provides more(1) emulation plus extensive enhancements.

昔の less。今は使わなくてもよい

less

NAME
       less - opposite of more

SYNOPSIS
       less -?
       less --help
       less -V
       less --version
       less [-[+]aABcCdeEfFgGiIJKLmMnNqQrRsSuUVwWX~]
            [-b space] [-h lines] [-j line] [-k keyfile]
            [-{oO} logfile] [-p pattern] [-P prompt] [-t tag]
            [-T tagsfile] [-x tab,...] [-y lines] [-[z] lines]
            [-# shift] [+[+]cmd] [--] [filename]...
       (See the OPTIONS section for alternate option syntax with long option names.)

DESCRIPTION
       Less  is  a program similar to more (1), but which allows backward movement in the file as well as forward movement.  Also, less
       does not have to read the entire input file before starting, so with large input files it starts up  faster  than  text  editors
       like  vi  (1).  Less uses termcap (or terminfo on some systems), so it can run on a variety of terminals.  There is even limited
       support for hardcopy terminals.  (On a hardcopy terminal, lines which should be printed at the top of the  screen  are  prefixed
       with a caret.)

       Commands  are based on both more and vi.  Commands may be preceded by a decimal number, called N in the descriptions below.  The
       number is used by some commands, as indicated.

ディスク容量を確認するコマンド。

よく使いそうな使い方

[sinsengumi ~]# less file.txt
[sinsengumi ~]# ls -l /bin/ | less -N

-N で行番号を表示する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0