How to find linux os version? [duplicate] - linux

This question already has answers here:
Best way to find os name and version in Unix/Linux platform
(10 answers)
Closed 2 years ago.
I've tried multiple commands of linux but it doesn't work. And also I've tried some more windows command still it doesn't work . If some one can help me in this

Try hostnamectl or uname -r
You can see 'Kernel' field with the linux version.

Related

Is there a way to install portable Vim ? [duplicate]

This question already has answers here:
Making Vim portable
(5 answers)
Closed 4 years ago.
Is there a way to install vim without running the .exe executable, since the computer does not have installation privilege.
I have no Windows to test, but a up-to-date version of Vim can be downloaded here:
https://github.com/vim/vim-win32-installer/releases
Download a zip and unpack it to a custom location. Also read the README.md of the project.
Without installing there are no "Edit with Vim" menu entries.

How to set up python 3.6.3 so it can be a default project interpreter in PyCharm? [duplicate]

This question already has answers here:
How to set default PyCharm interpreter?
(7 answers)
Closed 5 years ago.
I was using python 3.5.2 as my default project interpreter in PyCharm. Just recently I have installed latest version of python 3.6.3 for Ubuntu and I wanted to set it up as my default project interpreter in PyCharm. However, I were unable to do so. Here is the screenshot of the problem.
The error looks like a broken PyCharm installation. Find that setuptools-28* file the error is referencing and use file or tar or something to figure out whether the tarball is broken.
You could also try renaming the file to see if that gets PyCharm to redownload it or something.

Cant' uninstall node.js properly [duplicate]

This question already has answers here:
How to completely remove node.js from Windows
(9 answers)
Closed 5 years ago.
I uninstalled node.js like I would normally uninstall any other program, but when I go to command prompt and write node -v , I get
v0.12.2. I have no idea why.
P.S I'm using Windows 10.
Open the start menu, type add or remove programs , select 'add or remove programs`, look for nodejs and click uninstall.
source:
http://blog.teamtreehouse.com/install-node-js-npm-windows

How to upgrade jre selectively on linux mint [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have newly started using linux mint (linux at all).
I have installed two jre versions on it. One openjdk and another oracle jdk. Here is how my update-alternatives --config java output says -
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto mode
1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
* 2 /usr/lib/jvm/jre1.7.0_13/bin/java 2 manual mode
I want to upgrade oracle jre listed at #2 above. Is there a way to selectively upgrade that?
Here is what I tried:
1. I tried finding this jre in package manager but I couldn't find it, may be because I manually installed it.
2. Did 'apt-get update' and tried to find oracle java in 'apt-cache search' so that I can upgrade from there, but again couldn't find oracle java in search.
The final approach that I am thinking of trying is to download latest version and install it along with 1.7.0_13 and making that choice. However, I want a way to upgrade existing.
Any inputs?
Ubuntu and other Linux distributions usually provide a custom linux version (such as openJDK). To install the official versions, I recommend you to use this site: http://www.devsniper.com/ubuntu-12-04-install-sun-jdk-6-7/, from where I took the steps to install it in my machine.
There is also this option, that talks specifically about Linux Mint and is simmilar : http://www.vivaolinux.com.br/dica/Instalando-Java-no-Linux-Mint-Ubuntu-e-derivados

Couldn't find ANT in the Cygwin repositiories. Why's that? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Installing ANT on Cygwin
I've just installed Cygwin and managed to get all the required stuff up and running but I couldn't figure out why ANT wasn't listed in the Cygwin repos. Could someone tell me why, please?
MAKE was, ANT wasn't. I might be missing something here.
ant is a java program and is not unix specific and so does not need cygwin to run. Install directly from apache ant
You can modify ant.bat for use under Windows directly or the shell script ant for use under cygwin

Resources