0

Each time i work with a tool named criu, i set the path variable:

 PATH=$PATH:/home/th/criu-1.3-rc2; export PATH

to be able to run

criu dump

but when I close the terminal and open it, it does not work

i update the :

echo 'export PATH=$PATH:/home/th/criu-1.3-rc2'  >> ~/.bash_profile

but the same problem persists

A J
  • 11,367
  • 17
  • 44
  • 59
researcher
  • 230
  • 2
  • 3
  • 12
  • Either add the program to ~/bin or put that PATH in .profile . See https://help.ubuntu.com/community/EnvironmentVariables – Panther Jul 14 '14 at 17:35

1 Answers1

2

Update your .bashrc instead of .bash_profile that is used only for bash in interactive mode.

Here is a useful explanation.

Lety
  • 6,039
  • 2
  • 29
  • 37
  • PATH=$PATH:/home/th/criu-1.3-rc2; export PATH echo "export PATH=${PATH}:/home/th/criu-1.3-rc2" >> ~/.bashrc it works Thanks for answer :) – researcher Jul 14 '14 at 17:42