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

Linux Mint /dev/sda1 Out of Space Issue

Issue: "sudo apt --fix-broken install"leads to something such as:"dpkg: error processing archive /var/cache/apt/archives/linux-image-6.8.0-87-generic_6.8.0-87.88~22.04.1_amd64.deb(--unpack):cannot copy extracted…

Manually Create a SSL Certificate with LetsEncrypt

Step 1: Install certbot-auto mkdir /etc/letsencryptcd /etc/letsencrypt/wget chmod a+x certbot-auto Step 2: Create the Cert…

How to Enable XRDP Session Sharing

# Edit the xrdp init file sudo vim /etc/xrdp/xrdp.ini # Add this at the bottom…