LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2012, 05:45 PM   #1
slackkid
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Rep: Reputation: Disabled
Question 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.
 
Old 12-23-2012, 06:10 PM   #2
secretservgy
Member
 
Registered: Jul 2006
Location: New York, USA
Distribution: kUbuntu 12.04.1 LTS, Debian, Whiite-Linux
Posts: 50

Rep: Reputation: 19
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?
 
1 members found this post helpful.
Old 12-23-2012, 06:40 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by slackkid View Post
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?
 
Old 12-24-2012, 12:25 AM   #4
slackkid
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
forgive me, it seems to be working now.
thank you for helping.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Move file and change directory in one command Ztyx Linux - General 8 02-19-2009 04:09 AM
change user home directory from command line cccc Debian 1 03-23-2006 05:07 PM
Change Directory Command Tabbing Issue sadarax Linux - General 3 01-17-2006 02:50 PM
Change directory command gizmobay Linux - Newbie 4 11-23-2005 06:11 PM
chmod command to change all files in directory paul_mat Linux - Newbie 2 01-10-2005 09:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration