Tagged: linux

0

Rvm install fails due to errors in apt-get update

Your RVM installation is failing because apt-get update has errors. The simplest way to fix this is 1) Identify the errors during apt-update sudo apt-get update | grep “Failed” 2) Comment out the failing...

1

How to completely uninstall docker from ubuntu

If you need a fresh start and completely uninstall docker, just run the following commands[source]. sudo apt-get purge docker-engine sudo apt-get autoremove –purge docker-engine rm -rf /var/lib/docker # This deletes all images, containers, and...

0

vlc – does not support hvec files

If you are getting the following error, then you need to install libed265 to run the HVEC files with VLC. VLC can not play HVEC files. To install it run the following commands in...

0

grep for a word in all files in linux

The following command will search for the string “hello” in the content of all the files within all subfolders of the specified path grep -r “hello” /path/to/search/

0

[: !=: unary operator expected

In bash, always use the double bracket conditional command [[ … ]] For example, #!/bin/bash sex=male if [[ $sex == ‘male’ ]];then echo “sex is male.” elif [[ $sex == ‘female’ ]];then echo “sex...