Posted On August 3, 2021

Useful Linux Command Aliases

kimconnect 0 comments
blog.KimConnect.com >> Linux >> Useful Linux Command Aliases
# Create an alias command lsn to display files with numerical representation of schmod permissions
alias lsn="stat -c '%a %n' *"

# ls with numerical chmod permissions
ls -l|awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf("%0o ",k);print}'

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Ubuntu: Auto Updates Configuration

Prepare the Linux OS: # Install auto-update packages sudo apt install -y unattended-upgrades apt-listchanges #…

Ubuntu 19.04: How to Install Adobe Acrobat Reader

Back  in the days when Adobe Acrobat Reader for Linux was supported and available on…

Set Automatic Updates for CentOS & Redhat

Easy. yum -y install yum-cron vimvim /etc/yum/yum-cron.conf----------apply_updates = yes----------systemctl start yum-cron.service
Other project: DragonCoin.com