`devapp01` webserver, unzip and extract the copied file in the directory `/opt/`

I am doing LAB : Lab – Troubleshoot the Development Environment

Task 2:
On the devapp01 webserver, unzip and extract the copied file in the directory /opt/.
The password for the devapp01 webserver is caleston123.

When I run the below command and I check the option Task completed? It gives me a message

Please extract the file to the /opt directory

bob@caleston-lp10:~$ sudo tar -C /opt/ -xvf caleston-code.tar.gz
caleston-code/
caleston-code/venv/
caleston-code/venv/lib64
caleston-code/venv/bin/
caleston-code/venv/bin/activate.csh
caleston-code/venv/bin/activate
caleston-code/venv/bin/python3.6
caleston-code/venv/bin/python
caleston-code/venv/bin/python3
caleston-code/venv/bin/activate.fish
caleston-code/venv/pyvenv.cfg
caleston-code/.gitignore
caleston-code/manage.py
caleston-code/.idea/
caleston-code/.idea/.gitignore
caleston-code/.idea/modules.xml
caleston-code/.idea/misc.xml
caleston-code/.idea/vcs.xml
caleston-code/.idea/inspectionProfiles/
caleston-code/.idea/inspectionProfiles/profiles_settings.xml
caleston-code/.idea/django.iml
caleston-code/README.md
caleston-code/db.sqlite3
caleston-code/templates/
caleston-code/templates/about.html
caleston-code/templates/mercury.html
caleston-code/templates/count.html
caleston-code/templates/home.html
caleston-code/mercuryProject/
caleston-code/mercuryProject/.gitignore
caleston-code/mercuryProject/db.json
caleston-code/mercuryProject/manage.py
caleston-code/mercuryProject/portfolios/
caleston-code/mercuryProject/portfolios/__init__.py
caleston-code/mercuryProject/portfolios/apps.py
caleston-code/mercuryProject/portfolios/admin.py
caleston-code/mercuryProject/portfolios/views.py
caleston-code/mercuryProject/portfolios/models.py
caleston-code/mercuryProject/portfolios/tests.py
caleston-code/mercuryProject/portfolios/migrations/
caleston-code/mercuryProject/portfolios/migrations/__init__.py
caleston-code/mercuryProject/portfolios/migrations/0001_initial.py
caleston-code/mercuryProject/blog/
caleston-code/mercuryProject/blog/__init__.py
caleston-code/mercuryProject/blog/apps.py
caleston-code/mercuryProject/blog/admin.py
caleston-code/mercuryProject/blog/views.py
caleston-code/mercuryProject/blog/models.py
caleston-code/mercuryProject/blog/tests.py
caleston-code/mercuryProject/blog/migrations/
caleston-code/mercuryProject/blog/migrations/__init__.py
caleston-code/mercuryProject/blog/migrations/0001_initial.py
caleston-code/mercuryProject/blog/urls.py
caleston-code/mercuryProject/mercury/
caleston-code/mercuryProject/mercury/__init__.py
caleston-code/mercuryProject/mercury/wsgi.py
caleston-code/mercuryProject/mercury/settings.py
caleston-code/mercuryProject/mercury/urls.py
caleston-code/mercuryProject/admin.json
caleston-code/mercuryProject/templates/
caleston-code/mercuryProject/templates/about.html
caleston-code/mercuryProject/templates/blog/
caleston-code/mercuryProject/templates/blog/allblogs.html
caleston-code/mercuryProject/templates/mercury.html
caleston-code/mercuryProject/templates/count.html
caleston-code/mercuryProject/templates/home.html
caleston-code/mercuryProject/media/
caleston-code/mercuryProject/media/images/
caleston-code/mercuryProject/media/images/AI.jpeg
caleston-code/mercuryProject/media/images/Andrew.jpeg
caleston-code/mercuryProject/media/images/Callus.jpeg
caleston-code/mercuryProject/media/images/cloud_khN0g6f.jpg
caleston-code/mercuryProject/media/images/ITSol_QM6FyZg.jpeg
caleston-code/mercuryProject/media/images/bob_MhWabbx.jpeg
caleston-code/mercuryProject/media/images/cloud_EupHr5p.jpg
caleston-code/mercuryProject/media/images/cloud.jpg
caleston-code/mercuryProject/media/images/DC.jpg
caleston-code/mercuryProject/media/images/bob.jpeg
caleston-code/mercuryProject/media/images/dave.jpeg
caleston-code/mercuryProject/media/images/Callus_23mwDJ4.jpeg
caleston-code/mercuryProject/media/images/ITSol.jpeg
caleston-code/mercuryProject/media/images/bob_mrVjbWI.jpeg
caleston-code/mercuryProject/media/images/ITSol_1hfBNTJ.jpeg
caleston-code/mercuryProject/media/images/bob_3jqSGqs.jpeg
caleston-code/mercuryProject/media/images/AI_1eAcYgD.jpeg

Seems to be correct, just on the wrong server.

Thanks but in the question the server name is devapp01. Could you guide me what would be the exact server then

Logon to the devapp01 server using:

ssh devapp01

One more thing to highlight is that in the solution it says : Run the command: - bob@devapp01:~$ sudo tar -C /opt/ -xvf caleston-code.tar.gz

where as when i run this below command it is bob@caleston-lp10:~$ instead of bob@devapp01:~$

: bob@caleston-lp10:~$ sudo tar -C /opt/ -xvf caleston-code.tar.gz

You need to login to the server devapp01 and run the command there - that is what ssh is used for. You don’t run the tar command on the caleston-lp10 server.