Tag Info

Hot answers tagged

3

You have to use quotes if the path contains space characters: FILE_NAME="/home/$USER/Downloads/My Folder"


2

You should use the alternatives: a way that Ubuntu offers to support multiple versions of a software. After you've installed the Oracle JDK, tell it to the alternatives: sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_40/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" ...


2

The order you give is the order you get: export PATH=.:$PATH (the trailing / is optional). But be aware that it's not recommended practice.


1

Your installation is all right but you need the alternatives system to set the default binary to be executed when you just type jave or javac. Basically the alternatives system lets you to select a binary to run when there are many other alternative binaries having the same functionality. In your case you have two versions of java installed with ...


1

The issue is the embedded blank in the name. The simplest way to resolve this issue is to enclose the full path string with quotes (i.e. FILE_NAME="/home/${USER}/Downloads/My Folder" The reason to use " in your case is because of your use of $USER which requires a substitution, with ' this would not occur. A secondary question is how are you going to use ...


1

Did you change a system file? Normally, the PATH variable should be set correctly... However, in your second try, you forgot the starting slash. The command should be mspyellow@BJ:~$ /usr/bin/sudo apt-get install apturl


1

The tilde (~) character is not expanded when enclosed in quotes (even double quotes, which allow most other filename expansions). You should replace ~ by $HOME in the PATH export: export PATH="/usr/local/texlive/2014/bin/x86_64-linux:$PATH" export PATH="$HOME/anaconda/bin:$PATH"



Only top voted, non community-wiki answers of a minimum length are eligible