rpsc is a *nix command line tool to quickly search for file systems items matching varied criterions like permissions, extended attributes and much more.

Related tags

Command-line rpsc
Overview

rpsc

rpsc is a *nix command line tool to quickly search for file systems items matching varied criterions like permissions, extended attributes and much more.

Contents: ExamplesUsageInstallationStylingLicense

Is this an alternative to ls/exa ?

Absolutely not, rpsc is a tool for the occasional heavylifting and is not as polished and customizable as ls/exa.

Example

$ rpsc /dev --type character -p "^.{6}r-x"  --owner root --time modified --time-style="%Y %d %m %H" -l --match-time="2022 25 11 20"

crw-rw-rw-  1  root  wheel     0  2022 25 11 20  aes_0
crw-------  1  root  wheel     0  2022 25 11 20  afsc_type5
crw-------  1  root  wheel     0  2022 25 11 20  auditpipe
crw-r--r--  1  root  wheel     0  2022 25 11 20  auditsessions
crw-------  1  root  wheel     0  2022 25 11 20  autofs
crw-------  1  root  wheel     0  2022 25 11 20  autofs_control
......

Here I searched for all the character devices in my /dev folder whose permissions matched the '^......r-x' regex that are owned by the root user and that were last modified the 25 november of this year between 20 and 21 hour. Of course this is a very specific example but it was to showcase a few of rpsc's options.

Usage

Run

rpsc --help

to see a list of commands and their usage.

Installation

As of now, building rpsc from source is the only way to install it:

git clone https://github.com/gmnsii/rpsc && cd rpsc && cargo build --release && sudo mv ./target/release/rpsc /usr/local/bin/ && cd .. && rm -rf rpsc

This will clone the repo, build rpsc for release, move it to /usr/local/bin (you will be asked for your password) and delete the cloned repo.

Styling

You can set the colors via the LS_COLORS environment variable, like you would for ls or exa. We won't go into too many details here as there is already documentation on how to use this variable available online.

License

This project is licensed under both :

You might also like...
A natural language shell interface for *nix systems

Orphic A natural language shell interface for *nix systems. Overview Orphic is a CLI tool that uses GPT to translate complex tasks into shell commands

A tool crate to quickly build rust command line application.

Falsework A tool crate to quickly build rust command line application.

Lightweight command line tool to quickly navigate across folders.

slingshot 0.3.0 Slingshot is a lightweight tool to browse files in the terminal. It allows the user to quickly filter through files in any directory,

Tight Model format is a lossy 3D model format focused on reducing file size as much as posible without decreasing visual quality of the viewed model or read speeds.
Tight Model format is a lossy 3D model format focused on reducing file size as much as posible without decreasing visual quality of the viewed model or read speeds.

What is Tight Model Format The main goal of the tmf project is to provide a way to save 3D game assets compressed in such a way, that there are no not

The official CLI for FlakeHub: search for flakes, and add new inputs to your Nix flake.

fh, the official FlakeHub CLI fh is a scrappy CLI for searching FlakeHub and adding new inputs to your Nix flakes. Usage Using fh from FlakeHub: nix s

Small command-line tool to switch monitor inputs from command line

swmon Small command-line tool to switch monitor inputs from command line Installation git clone https://github.com/cr1901/swmon cargo install --path .

An interface for managing collections of labeled items and generating random subsets with specified restrictions

An interface for managing collections of labeled items and generating random subsets with specified restrictions

List public items (public API) of library crates. Enables diffing public API between releases.

cargo-public-items List public items (the public API) of a Rust library crate by analyzing the rustdoc JSON of the crate. Automatically builds the rus

A command line tool that resembles a debugger as well as Cheat Engine, to search for values in memory
A command line tool that resembles a debugger as well as Cheat Engine, to search for values in memory

Summary This is a small command-line tool designed to peek around memory of a running Linux process. It also provides filtering mechanisms similar to

Comments
  • Align output

    Align output

    Currently the output isn't aligned properly:

    $ rpsc
    drwxr-xr-x root nobody var
    drwx------ root root root
    drwxr-xr-x root root home
    drwxr-xr-x root root opt
    drwxr-xr-x root root srv
    drwxr-xr-x nobody root bin
    
    opened by gmnsii 1
  • Better output

    Better output

    Since we are working with permissions and ownership, it would be nice to have permissions, owner and (not on macOS) associated group next to the file when outputting, like ls -l. We don't need size and date modified as rpsc is not a replacement for ls or exa.

    opened by gmnsii 1
Owner
null
Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're working with files or directories, this tool simplifies common file operations with ease.

Rust FileOps Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're w

Harikesh Ranjan Sinha 5 May 2, 2024
Dog command for *nix systems, Rust port of dog.

dog-rs Dog command for *nix systems, Rust port of dog. Because there is a cat command, should be a dog command too. It was written completely using VS

Juanjo Salvador 2 Sep 29, 2021
🧠 A command-line utility for switching git branches more easily. Switch branches interactively or use a fuzzy search to find that long-forgotten branch name.

git-smart-checkout A git command extension for switching git branches more efficiently. About Interactively switch branches or fuzzy search for that f

Cezar Craciun 51 Dec 29, 2022
A `nix` and `nix-shell` wrapper for shells other than `bash`

nix-your-shell A nix and nix-shell wrapper for shells other than bash. nix develop and nix-shell use bash as the default shell, so nix-your-shell prin

Mercury 15 Apr 10, 2023
Progress In Nix - Pacman inspired frontend for Nix

Progress In Nix Pinix is a Pacman inspired frontend for Nix. It wraps a regular Nix command and replaces the output with a more modern and informative

Rémi Dupré 23 Mar 9, 2024
Low-level Rust library for implementing terminal command line interface, like in embedded systems.

Terminal CLI Need to build an interactive command prompt, with commands, properties and with full autocomplete? This is for you. Example, output only

HashMismatch 47 Nov 25, 2022
A command-line tool aiming to upload the local image used in your markdown file to the GitHub repo and replace the local file path with the returned URL.

Pup A command line tool aiming to upload the local image used in your markdown file to the GitHub repo and replace the local file path with the return

SteveLau 11 Aug 17, 2022
Run adb in Termux without root permissions!

termux-adb Run adb in Termux without root permissions! Description This is a launcher for adb which enables debugging of one Android device from anoth

null 36 Dec 26, 2022
tmplt is a command-line interface tool that allows you to quickly and easily set up project templates for various programming languages and frameworks

tmplt A User Friendly CLI Tool For Creating New Projects With Templates About tmplt is a command-line tool that lets users quickly create new projects

Humble Penguin 35 Apr 8, 2023
A flexible simple theme manager for *nix systems

tema A theme manager for *nix systems respecting the FHS spec configuration As of now all the configuration is done via $XDG_CONFIG_HOME/tema/config.y

lb06 2 Sep 23, 2022