LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Not able to change to a specific directory using one command- CD (https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-change-to-a-specific-directory-using-one-command-cd-4175442730/)

slackkid 12-23-2012 05:45 PM

Not able to change to a specific directory using one command- CD
 
Hello,

I have been practicing terminal commands in Slackware and I am having a problem with the CD command.

I made a file path using command mkdir -p :

/temp/stuff/things/frank/joe/alex/john

I want to CD directly to john. When I try to CD, I get an error:

cd: /temp/stuff/things/frank/joe/alex/john: No such file or
directory

Does Slackware use a different command for this?
or am I using the command wrong?

Thank you.

secretservgy 12-23-2012 06:10 PM

Is there already a /temp folder located on the root fs? If not, you would need to have been root to create one with mkdir, in which the actual folder and path wouldn't have been created. There should've been an error message regarding that however. Does your cd command work if you do mkdir as root?

sycamorex 12-23-2012 06:40 PM

Quote:

Originally Posted by slackkid (Post 4855752)
Hello,

I have been practicing terminal commands in Slackware and I am having a problem with the CD command.

I made a file path using command mkdir -p :

/temp/stuff/things/frank/joe/alex/john

I want to CD directly to john. When I try to CD, I get an error:

cd: /temp/stuff/things/frank/joe/alex/john: No such file or
directory

Does Slackware use a different command for this?
or am I using the command wrong?

Thank you.

Can you provide the actual copy of the terminal output (copy/paste) where you create and try to access the directory?

slackkid 12-24-2012 12:25 AM

forgive me, it seems to be working now.
thank you for helping.


All times are GMT -5. The time now is 07:12 AM.