How to modify permissions for files under /mnt/c in WSL

You need to unmount /mnt/c and mount /mnt/c again with below options : sudo umount /mnt/c sudo mount -t drvfs C: /mnt/c -o metadata,uid=1000,gid=1000,umask=22,fmask=111 To automatically unmount and mount the C:\ drive (/mnt/c) , add the below lines to /etc/wsl.conf in WSL.If wsl.conf does not exist, create it. [automount] enabled = true options = “metadata,uid=1000,gid=1000,umask=22,fmask=111”Continue reading “How to modify permissions for files under /mnt/c in WSL”

Shell Script to compare row counts between two Greenplum Postgresql Database

This shell script takes 3 arguments: source db, target db and a list file of tables. List file is in format:$ cat listfile.lstschema.table : where<> ::schema2.table2 : where<> :: Also ~/gpdbinfo.dat file contains database name, host and port details. Below is the script to send the report file generated above as email :

About Me

Software Engineer. Sensible in DevOps/SRE. Ability to dig deep across multiple layers of the stack, from networking and virtualization to configuration management, packaging and deployment. Comfortable with creating, testing, deploying, operating and debugging software at scale. Skilled in Python, Shell Scripting, CI/CD, Terraform, AWS, Ansible, Docker, Kubernetes, Jenkins, Vagrant.Good Experience with databases like PostgreSQL, Greenplum,Continue reading “About Me”

Design a site like this with WordPress.com
Get started