Delete a remote git branch using CLI

For our day to day work it is good we can delete the branch form local and remote repositories by using cli. For this purpose git has very simple commands to use and those are: For a working illustration of above commands please refer :

Create sudo user in centos linux

I followed following steps to add a new user and later gave it sudo privilege. Use adduser command to add a new user or if you already have a user to give sudo access skip adduser. Its syntax is ‘adduser usernmae’ [root@centos-10d ~]# adduser devlab Set a password for new user using passwd command [root@centos-10d

Clear ssd cache in centos

I was adding a new user and received following error. [sss_cache] sysdb_domain_cache_connect: DB version too old [0.22], expected [0.23] for domain implicit_files!Higher version of database is expected!In order to upgrade the database, you must run SSSD.Removing cache files in /var/lib/sss/db should fix the issue, but note that removing cache files will also remove all of

Uninstall node on ubuntu

To uninstall node js from ubuntu following steps can be done. $ apt-get remove nodejs # It will remove the package $ apt-get purge nodejs # It will remove configurations $ apt-get autoremove # It will remove unused file ashu@dev:~/work/sb/frontend$ sudo apt-get remove nodejsReading package lists… DoneBuilding dependency treeReading state information… DoneThe following packages were

Virtualenv setup with python3

Project setup with virtualenv. While working with a pyhon3 project, it is better to install project based dependencies inside a project wise virtualenv created. It helps to minimise the interference of different versions of python modules into different projects.

Ubuntu screen recorder with audio- Obs-Studio

Ubuntu 20 have inbuilt recorder which we can be triggered by alt+ctrl+shift+ r But it does not record the voice to overcome the limitation I am exploring “OBS Studio” its installation steps are given at obsproject.com which I have used. Step 1) To check if “OpenGL” is available or not as OBS Studio needs openGL

Pip3 Install pip for python3

I have Ubuntu20 and by default if I check pip version I get it is for python2 But I want to use pip for pyhon3 and if I check pip3 I get following: Therefore I executed above command to have pip3 for python3 at my system : It displays a bit general information and asks

Explain the top command in linux

​Top command is used to check server processes in Linux. Top command shows all running processes in current host. It displays the current system information and the processes information which includes: host-up-time average load tasks running no. of users logged in no. of CPU processes RAM utilisation lists all the processes running/utilized by the users

Check directory size

# To check size of partition df -h # To check size of directory du -s -h /var/log/ #To check every directory and file sizes under a dir. du -s -h /var/log/* #To check individual size du -s -h /var/log/lastlog

Install and configure lsyncd on centos

Introduction :- Lsyncd watches a local directory trees event monitor interface (inotify or fsevents). It aggregates and combines events for a few seconds and then spawns one (or more) process(es) to synchronize the changes. By default this is rsync. Lsyncd is thus a light-weight live mirror solution that is comparatively easy to install not requiring