Skip to content

Linux: How to change command to different path?

I installed nodejs on my ubuntu system. The command which nodejsgives me the following response: /usr/bin/nodejs which is correct because a nodejs -v gives me the version I installed, 0.10.25. If I type which node instead, I get /usr/sbin/node which does nothing at all. My question is now: How do I change the…

Maikefile error make: *** [prepare] Error 127

I get the following error form the Makefile: Error: What am I doing wrong? Answer your subshell command git describe –abbrev=0 –tags is executed an returns the string “v1.1.2”. Make then tries to execute it as a program. should work

autossh not working when executed in python

I am trying to create ssh reverse tunnel. When I run the below command on terminal it works greate: But when I run it in python with os.system() or using subprocess it’s not working. When I check the processes list the process is created and running and has no difference with the last method.(running di…

CHange php 5.4 to 5.5 on Hostgator

Currently on composer install I get the error need 5.5.9 but using 5.4 but on Hostgator cpanal it’s set as 5.5 On php -v I get On php –ini I get When going into /opt/ There is a php54, php55 and php56 How do I change my version to 5.5 I saw the following example on this link But when

android Use Linux tools stored at assets folder

I want to use tools from Linux which not available in Android by default such as iw and iperf. I saw Android applications that use this tools (like this). There are two ways to do it. First: get root rights on device and put file of the tool to the system/bin/ folder. Second: put file of the tool to assets