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”
Category Archives: Uncategorized
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”
Why “Data” ?
It is year 2020 and data is ever-growing. Data is the first step in noticing new things in the world. Patterns in data can trigger events and shape policies.
My First Blog Post
Be yourself; Everyone else is already taken. — Oscar Wilde. This is the first post on my new blog. I’m just getting this new blog going, so stay tuned for more. Subscribe below to get notified when I post new updates.