Life runs on code

Tag: command

Sort directory by size in linux terminal

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

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 […]

Fix for yum-complete-transaction command not found

Fix for yum-complete-transaction command not found

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

wget -c ftp://ftp.muug.mb.ca/mirror/centos/6.5/os/i386/Packages/yum-utils-1.1.30-14.el6.noarch.rpm

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

yum-complete-transaction –cleanup-only