Score:-3

how do i navigate in the terminal

sd flag

i am new to linux and i am confused on how to navigate to and from between root@2c00d30f31ad:/ and root@2c00d30f31ad:~#

Here is what i am facing:

root@2c00d30f31ad:/alx-pre_course# cd                                                                                                                                                   
root@2c00d30f31ad:~# cd alx-pre_course                                                                                                                                                  
bash: cd: alx-pre_course: No such file or directory                                                                                                                                     
root@2c00d30f31ad:~#                       

                                                                                                                                         
Nishant Jadhav avatar
dk flag
you can change directory using: cd directory_name/
TAUSI TSONGA avatar
sd flag
i am still not clear, i have tried but still no success
Pilot6 avatar
cn flag
Are you using Ubuntu?
PonJar avatar
in flag
What version of Ubuntu is this? Your prompt suggests you are logged in as the root user. `cd alx-pre_course` will only work if the alx-pre_course directory is contained in the current directory. In the terminal dialogue you have shown you seem to start from `/alx-pre_course` so to get back there it’s `cd /alx-pre_course`. The `ls` command will list what ever is in the current directory
TAUSI TSONGA avatar
sd flag
thank you i have manage to start navigating with this clarification
Score:0
tk flag

You should've search for Linux basic commands, this a quick one https://help.ubuntu.com/community/UsingTheTerminal And for your question it's because of the directory is not in your location you can use ls to list and cd to navigate to destination and cd .. to step back.

Edit: At the first line you were already in it you just need to list ,and when you type cd you went to your home directory but the directory is in /

TAUSI TSONGA avatar
sd flag
thanks i managed to navigate, its working
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.