OnWorks favicon

lessfile - Online in the Cloud

Run lessfile in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command lessfile that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



lessfile, lesspipe - "input preprocessor" for less.


lessfile, lesspipe


This manual page documents briefly the lessfile, and lesspipe commands. This manual page
was written for the Debian GNU/Linux distribution because the input preprocessor scripts
are provided by Debian GNU/Linux and are not part of the original program.

lessfile and lesspipe are programs that can be used to modify the way the contents of a
file are displayed in less. What this means is that less can automatically open up tar
files, uncompress gzipped files, and even display something reasonable for graphics files.

lesspipe will toss the contents/info on STDOUT and less will read them as they come
across. This means that you do not have to wait for the decoding to finish before less
shows you the file. This also means that you will get a 'byte N' instead of an N% as your
file position. You can seek to the end and back to get the N% but that means you have to
wait for the pipe to finish.

lessfile will toss the contents/info on a file which less will then read. After you are
done, lessfile will then delete the file. This means that the process has to finish
before you see it, but you get nice percentages (N%) up front.


Just put one of the following two commands in your login script (e.g. ~/.bash_profile):

eval "$(lessfile)"


eval "$(lesspipe)"


File types are recognized by their extensions. This is a list of currently supported
extensions (grouped by the programs that handle them):

*.deb, *.udeb, *.ddeb
*.gif, *.jpeg, *.jpg, *.pcd, *.png, *.tga, *.tiff, *.tif
*.iso, *.raw, *.bin
*.lha, *.lzh
*.tar.lz, *.tlz
*.rar, *.r[0-9][0-9]
*.tar.gz, *.tgz, *.tar.z, *.tar.dz
*.gz, *.z, *.dz
*.tar.xz, *.xz
*.jar, *.war, *.xpi, *.zip


It is possible to extend and overwrite the default lesspipe and lessfile input processor
if you have specialized requirements. Create an executable program with the name
.lessfilter and put it into your home directory. This can be a shell script or a binary

It is important that this program returns the correct exit code: return 0 if your filter
handles the input, return 1 if the standard lesspipe/lessfile filter should handle the

Here is an example script:


case "$1" in
extension-handler "$1"
# We don't handle this format.
exit 1

# No further processing by lesspipe necessary
exit 0

Use lessfile online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    It ha...
    Download Shadowsocks
  • 2
    GLPI Themes
    GLPI Themes
    Download release at
    Color themes for GLPI 0.84 and 0.85 New
    Modifications for GLPI This is an
    application that c...
    Download GLPI Themes
  • 3
    SMPlayer is a free media player for
    Windows and Linux with built-in codecs
    that can also play YouTube videos. One
    of the most interesting features of
    Download SMPlayer
  • 4
    AAX to MP3
    AAX to MP3
    Usage: - Install the Audible Manager
    and open a file of your account. - Sign
    in into your audible account (in the
    application). Now the program can
    convert you...
    Download AAX to MP3
  • 5
    TestLink is a web based Test Management
    tool. The application provides Test
    specification, Test plans and execution,
    Reporting, Requirements specification
    and ...
    Download TestLink
  • 6
    XDXF - XML Dictionary Exchange Format
    XDXF - XML Dictionary Exchange Format
    XDXF is a project to unite all existing
    open dictionaries and provide both users
    and developers with universal XML-based
    format, convertible from and to other ...
    Download XDXF - XML Dictionary Exchange Format
  • 7
    Transmission Remote GUI
    Transmission Remote GUI
    Transmission Remote GUI is a feature
    rich cross platform front-end to
    remotely control a Transmission
    Bit-Torrent client daemon via its RPC
    protocol. Transmissi...
    Download Transmission Remote GUI
  • More »

Linux commands