answersLogoWhite

0


Best Answer
  • To change the current directory to /etc/java/bin, use the command "cd /etc/java/bin".
  • To add the above path to the PATH variable, type export PATH="$PATH:/etc/java/bin".
  • To check whether you have successfully added that PATH, type "echo $PATH".
  • To permanently add /etc/java/bin to PATH variable, edit /etc/profile or ~/.bashrc file and add the command, export PATH="$PATH:/etc/java/bin". (NOTE: After adding, you will need to reboot the machine or type "source /etc/profile" or "source ~/.bashrc".
User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you change the current directory to 'etcjavabin' and append this path to existing PATH settings?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What do you mean by sub directory and current directory?

Current directory/Sub-directory **************************************** The current directory is simply the directory a user is currently in - for instance: when in the Home directory, or the Music directory, and so on. A sub directory is another directory inside a main directory - for instance: in the Music Directory - Jazz, Elkie Brooks, Classical, are examples of three sub directories.


How will you CD to the parent directory of current directory in Linux?

Use the following command: cd .. The ".." indicates the parent of the current directory


The directory shown by pwd can be referred to as the current working dirctory?

pwd - means print working directory, which is always the current directory.


How do you change the current directory in PHP?

chdir() PHP function helps in changing the current directory.


In Linux what are three commands you can use to create a subdirectory?

1. The most straightforward way to create a create a subdirectory in the current directory is mkdir name where name is the name of the new directory. 2. Another way is to move a directory and its descendants from somewhere else: mv path name where path is an absolute or relative pathname for an existing directory hierarchy, and name is the directory name it will be given in the current directory. 3. Various utilities for unpacking archives may create directories as they execute; for example cpio, tar, unzip etc.


What would you type at a command prompt to execute a program called sampleprog in your current directory if the current directory is not in your path statement?

./sampleprog


Every unix directory has at least two hard links why?

The two links are for the current directory (.) and the parent directory (..). This is allow for easy directory traversal.


What is the command to create a new directory called LABS directly under the current directory you are in if i was i the c directory?

mkdir LABS


What is the command that will change the current default directory to the root directory in Unix?

CD /


How do you find absolute path name of your home directory what is it on your system?

All you need is the PWD(Print Working Directory) command, this will list your current directory absolute path All you need is the PWD(Print Working Directory) command, this will list your current directory absolute path


Difference between current and standard directory in c?

The 'current directory' is where you are in this moment, the 'standard directory' is where something usually is (quite vague definition, isn't it?)... for example, the standard directory for the apache configuration file is /etc/apache, for temporary files it is /tmp


What command line is used to change the current directory?

cd dirReplace "dir" with the name of your directory.