GithubHelp home page GithubHelp logo

tchigher / nat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from willdoescode/nat

0.0 0.0 0.0 2.5 MB

⚡️ nat - the 'ls' replacement you never knew you needed⚡️

License: MIT License

Rust 100.00%

nat's Introduction

⚡️ nat ⚡️

banner

demo

What is nat?

Highlights

Installation

Understanding permissions output

What is nat?

Nat is a complete replacement for the 'ls' command

Nats features include

  • Showing file permissions
  • Showing file size
  • Showing the date that the file was modified last
  • Showing the user that the file belongs to
  • Showing the group that the file belongs to
  • An easy to use file search
  • A splash of color to distinguish between files and folders

Join the nat discord server

Highlights

  • A rather large german tech blog wrote an article about nat

Usage

Installation

cargo install natls

Manual installation

apt-get install rustc cargo
cd /tmp

git clone https://github.com/willdoescode/nat.git
cd /tmp/nat

cargo build --release

cd target/release

./nat

To install nat locally

cd /tmp/nat
cargo install --path .

and add this line to your $HOME/.bashrc

export PATH=$PATH:$HOME/.cargo/bin

On Arch Linux

yay -S nat-git

Using nat with ls

in zshrc or bashrc

alias ls='natls'

Running

natls <dir>

Searching for file

natls <dir (leave empty if in wanted dir)> -f <file>

To edit the code

git clone https://github.com/willdoescode/nat.git
cd nat

Uninstall steps

cargo uninstall natls

Understanding permissions output

Imagine file permissions as three ones or zeros

000 no access
100 read
010 write
001 execute
101 read and execute
110 read and write
011 write and execute
111 read write and execute

what nat does is it combines these permissions for

user-group-other

so if the user has read write and execute and the group has read and write and other has no perms the output will look like

rwxrw----

If all groups have read write and execute the output would look like

rwxrwxrwx

nat's People

Contributors

0xflotus avatar das-g avatar patrickwilmes avatar sebastianschildt avatar spikecodes avatar tf-maam avatar willdoescode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.