Install CLI in LInux Debian 12

Hi, I have linux Debian 12 and it won’t let me run exercism.
The steps I have done is to unzip the file “exercism-3.2.0-linux-x86_64.tar.gz”.
Then I moved it to a ‘Developer’ directory where I have web developer tools like nodejs.
I then added it to the PATH in the .bashrc file as add nodejs [export PATH=“$PATH:$HOME/Developer/exercism”], it says the file is not found.

Did you reload via $source ~/.bashrc?

Yes, after editing the .bashrc I always do this

What is the output of

ls -l $HOME/Developer/exercism

Response

-rwxr-xr-x 1 jhonnyvcv jhonnyvcv 8859648 ago  1 11:42 /home/jhonnyvcv/Developer/exercism

In archive .bashrc

export PATH="$PATH:$HOME/Developer/exercism"

In directory Developer:

jhonnyvcv@Jhonny-Laptop:~/Developer$ ls -l
total 8656
-rwxr-xr-x 1 jhonnyvcv jhonnyvcv 8859648 ago  1 11:42 exercism
drwxr-xr-x 6 jhonnyvcv jhonnyvcv    4096 ago  9 00:27 nodejs

OK, so that’s the executable itself. You don’t put that in the PATH, you put the directory it’s in. You want

PATH=$PATH:$HOME/Developer
# or
PATH+=:$HOME/Developer

Two things to note:

  • PATH is already exported, you don’t need to do it every time you alter it.
  • quotes are not required for variable assignments.
1 Like

Thank you very much for the advice, I’m new to linux and I’m just learning.

2 Likes

can you help me to install CLI machine in my ubuntu CLI machine.

Without showing what you did, what happened, and maybe the source of instructions you are following, it is very hard to help you @kodi6.

We have no idea where you are in the process, nor what difficulties you have faced.