Skip to content

Tag: ubuntu

ls command ignore specific directory [bash]

Tree: ls : Ignore specific file: ls -I c.txt : Ignore specific directory: ls -I Tests : (does not work – Tests directory should not appear) Answer The “man page” for the ls command explains that the -I flag accepts a pattern. So you can use a wildcard in your command: See: man ls or the comm…

Kernel update breaks CUDA

I have a NVIDIA Grid K2 GPU allocated to a virtual server running Ubuntu 14.04. To reinstall the proper drivers after an automatic kernel update I ran sudo apt-get update followed by sudo apt-get install nvidia-current. Now I cannot get CUDA 7.5 to work any longer. If I run the deviceQuery sample I get the fo…

How to install Android SDK on Ubuntu?

For my Ubuntu machine, I downloaded the latest version of Android SDK from this page. After extracting the downloaded .tgz file, I was trying to search for installation instructions and found: To get started on Linux: Unpack the .zip file you’ve downloaded. The SDK files are download separately to a use…

Docker compose build error

If I use command docker-compose build, I’ll get error that looks like: I use the last version docker and docker-compose. My docker-compose.yml has the next code: I use an ubuntu 14.04 Could you tell me how is fix it? Answer You need to put the port definitions in quotes for short ports (2 digits). This …

Curses snake game not removing cells in linux os

It’s code from a curses tutorial that I’ve been using to get a grasp of it but even though I’ve checked the code multiple times, it’s still not removing the old cells. The guy that wrote the code is on a mac and I’m using linux so would that be a problem? Answer The problem seems…