Sort directory by size in linux terminal

The linux “du” is a standard Unix command, used to check the information of disk usage of files and directories on a machine.
Following command will sort “du” command result by size.

du -hs * | sort -h

Delete a remote Git tag

This is not advisable to delete any tag(because of why we tag ), but in case you need to delete tag this will help you.

For example you have tag v1.1.0

Delete Tag from local git:

git tag -d v1.1.0

Delete Tag from remote

git push origin :refs/tags/v1.1.0

Fix for yum-complete-transaction command not found

Following command snippets is fix for issue yum-complete-transaction command not found 

wget -c

yum localinstall yum-utils-1.1.30-14.el6.noarch.rpm

yum-complete-transaction –cleanup-only