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

Redirecting Microphone through Remmina RDP Sessions

Update 11/29/2020: the 'redirect local microphone' option is now simply a check-mark on Remmina version…

How to Use Google SMTP Relay with Sendmail

Check to see if TLS is enabled:# sendmail -d0.1 -bv rootMake a certs directory:# mkdir…

Useful Ubuntu Settings for VNC

# Disable screensaver Ubuntu (Gnome) gsettings set org.gnome.desktop.screensaver lock-enabled false # Purge screensaver and update…
Other project: DragonCoin.com