here is my $PATH variable.


when i want to add ./ to the PATH by placing export PATH=$PATH:./ i got like this


but i want to add the ./ in front like this


how to do it?

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.