Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

l

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

l

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

l is a frontend for ls and less, invoking either depending on if it is fed directories or files. This makes navigating a shell a bit smoother and easier, as it is common to switch between the two commands while poking around the file system (see Sample session).

The program filters the switches for ls and less, keeping the most useful and common for each.

Sample session:

user@box:~ l Documents Music Projects

user@box:~ l Documents/ Personal some_doc.pdf example.txt Work

user@box:~ l Documents/example.txt This is just an example Documents/example.txt (END)

user@box:~ l Documents/Work/ proposal.odt document.pdf

user@box:~ l -l Documents/Work/ -rw-r--r-- 1 user user 32974 2006-03-31 12:29 proposal.odt -rw-r--r-- 1 user user 451726 2006-04-13 10:33 document.pdf

Aliases:

Most aliases for ls as used in .bashrc will work as usual if ls is replaced with l, but there's more: you can combine switches for both ls and less in your alias and l will filter out the inappropriate ones. The following will set ll to use long lists for directories and to ignore case for searches when displaying files:

alias ll='l -I -l'

Because ls and less can't safely share the same switches, there are a few cases where a workaround is needed:

For ls: -i doesn't work, use --inode instead -I doesn't work, use --ignore=PATTERN

For less: -r and -R doesn't work, use --raw-control-chars instead

FAQs

Package last updated on 25 Jul 2009

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc