⚡️ nat ⚡️

banner

demo

What is nat?

Nat is a complete replacement for the 'ls' command

Nats features include

Join the nat discord server

Highlights

Usage

Installation macOs

install the latest release from https://github.com/willdoescode/nat/releases/

then add the nat file to your path /usr/local/bin/

to alias ls to nat add bash alias ls='nat' in your zshrc at ~/.zshrc

Installation Linux

Linux binary also in releases compiled using docker

```bash 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 bash cd /tmp/nat cargo install --path . and add this line to your $HOME/.bashrc

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

On Arch Linux

bash yay -S nat-git

Using nat with ls

in zshrc or bashrc bash alias ls='nat'

Running

bash nat <dir>

Searching for file

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

To edit the code

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

Uninstall steps

bash rm /usr/local/bin/nat

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