Crates.io | natls |
lib.rs | natls |
version | 2.1.14 |
source | src |
created_at | 2020-10-27 00:37:14.166737 |
updated_at | 2021-03-14 21:57:19.347136 |
description | nat - the 'ls' replacement you never knew you needed |
homepage | |
repository | https://github.com/willdoescode/nat |
max_upload_size | |
id | 305809 |
size | 2,246,933 |
Understanding permissions output
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
cargo install nat-poc
cargo install natls
brew install willdoescode/natls/natls
sudo snap install natls
sudo snap refresh natls
yay -S nat
(or your AUR helper of choice)
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
cargo install natls
if there is a new version available cargo will install it
in zshrc or bashrc
alias ls='natls'
natls <dir>
natls <file>
git clone https://github.com/willdoescode/nat.git
cd nat
cargo uninstall natls
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