When I try to change the directory on Ubuntu, it won't let me
When I type in
cd Desktop/Code
and then press Enter, it says
-bash: cd: DesktopCode: No such file or directory
I do have that file in my desktop, but I'm not sure how to access it and I'm not sure why it says -bash
beforehand, and if that has something to do with it.
What is wrong?
Edit: I was confused and mistyped it. The error is "-bash: cd: Desktop/Code: No such file or directory".
I am considering deleting ubuntu and then re-installing it, but I'm not sure if that would be too much of a hassle and if there is another way. Also, thank you to everyone who's helped me! I need to fix this in order to do an assignment and I cannot figure it out and I appreciate it so much.
ubuntu command-line bash command-history
add a comment |
When I type in
cd Desktop/Code
and then press Enter, it says
-bash: cd: DesktopCode: No such file or directory
I do have that file in my desktop, but I'm not sure how to access it and I'm not sure why it says -bash
beforehand, and if that has something to do with it.
What is wrong?
Edit: I was confused and mistyped it. The error is "-bash: cd: Desktop/Code: No such file or directory".
I am considering deleting ubuntu and then re-installing it, but I'm not sure if that would be too much of a hassle and if there is another way. Also, thank you to everyone who's helped me! I need to fix this in order to do an assignment and I cannot figure it out and I appreciate it so much.
ubuntu command-line bash command-history
What is "Code", a file or a directory? And this has nothing to do with programming.
– GabrielaGarcia
Feb 8 at 1:45
What doescd Desktop//Code
do for you?
– Pimp Juice IT
Feb 8 at 19:34
What directory are you in when you do this? Unless Desktop is a child of your current directory, you will need the complete path.
– fixer1234
Feb 10 at 3:12
add a comment |
When I type in
cd Desktop/Code
and then press Enter, it says
-bash: cd: DesktopCode: No such file or directory
I do have that file in my desktop, but I'm not sure how to access it and I'm not sure why it says -bash
beforehand, and if that has something to do with it.
What is wrong?
Edit: I was confused and mistyped it. The error is "-bash: cd: Desktop/Code: No such file or directory".
I am considering deleting ubuntu and then re-installing it, but I'm not sure if that would be too much of a hassle and if there is another way. Also, thank you to everyone who's helped me! I need to fix this in order to do an assignment and I cannot figure it out and I appreciate it so much.
ubuntu command-line bash command-history
When I type in
cd Desktop/Code
and then press Enter, it says
-bash: cd: DesktopCode: No such file or directory
I do have that file in my desktop, but I'm not sure how to access it and I'm not sure why it says -bash
beforehand, and if that has something to do with it.
What is wrong?
Edit: I was confused and mistyped it. The error is "-bash: cd: Desktop/Code: No such file or directory".
I am considering deleting ubuntu and then re-installing it, but I'm not sure if that would be too much of a hassle and if there is another way. Also, thank you to everyone who's helped me! I need to fix this in order to do an assignment and I cannot figure it out and I appreciate it so much.
ubuntu command-line bash command-history
ubuntu command-line bash command-history
edited Feb 9 at 5:09
Gabriel L.
asked Feb 8 at 1:29
Gabriel L.Gabriel L.
72
72
What is "Code", a file or a directory? And this has nothing to do with programming.
– GabrielaGarcia
Feb 8 at 1:45
What doescd Desktop//Code
do for you?
– Pimp Juice IT
Feb 8 at 19:34
What directory are you in when you do this? Unless Desktop is a child of your current directory, you will need the complete path.
– fixer1234
Feb 10 at 3:12
add a comment |
What is "Code", a file or a directory? And this has nothing to do with programming.
– GabrielaGarcia
Feb 8 at 1:45
What doescd Desktop//Code
do for you?
– Pimp Juice IT
Feb 8 at 19:34
What directory are you in when you do this? Unless Desktop is a child of your current directory, you will need the complete path.
– fixer1234
Feb 10 at 3:12
What is "Code", a file or a directory? And this has nothing to do with programming.
– GabrielaGarcia
Feb 8 at 1:45
What is "Code", a file or a directory? And this has nothing to do with programming.
– GabrielaGarcia
Feb 8 at 1:45
What does
cd Desktop//Code
do for you?– Pimp Juice IT
Feb 8 at 19:34
What does
cd Desktop//Code
do for you?– Pimp Juice IT
Feb 8 at 19:34
What directory are you in when you do this? Unless Desktop is a child of your current directory, you will need the complete path.
– fixer1234
Feb 10 at 3:12
What directory are you in when you do this? Unless Desktop is a child of your current directory, you will need the complete path.
– fixer1234
Feb 10 at 3:12
add a comment |
4 Answers
4
active
oldest
votes
You have typed a backslash () in your command instead of a forward slash (
/
).
The backslash is used as an escape character. Since C
(in DesktopCode
) is not a recognized escape sequence, the backslash is ignored, so your command is interpreted as cd DesktopCode
.
1
Ninja’ed by a dog! :-(
– Scott
Feb 8 at 2:49
1
That's speciesist!
– Journeyman Geek♦
Feb 8 at 3:51
BARK! BARKBARKBARK!
– duskwuff
Feb 8 at 3:52
According to the original content and the latest edit to make that specific point more clear (I read it for the first time just now anyway), they are indeed already using a forward slash and not a backslash. Why might that happen when that is the case to go along with your existing answer.
– Pimp Juice IT
Feb 8 at 5:51
@PimpJuiceIT The edits were not made by the OP. The simplest and most likely explanation for the behavior they're describing is that they typed a backslash by mistake.
– duskwuff
Feb 8 at 19:06
|
show 1 more comment
There are details that would be helpful, but, since you are new to Unbutu, you would not know them. Let's try some troubleshooting and see what happens.
At you command prompt, what does your prompt look like? something like this:
[Gabriel@mycomputer] $ _
Can you run a directory listing?
ls -la
Can you print the current directory?
pwd
-- or --
cwd
Next, can you try just a cd command:
cd ~
if not, try to "unalias" the cd, like this:
cd ~
Notice the "backslash" before the cd. This is not the "forward slash" that you see with the question mark.
Forward Slash: /
Back Slash:
And, try this command, just to see what it says:
which cd
Can you run any other command successfully, besides cd?
Hello! Sorry for the late response. I am able to run a directory listing and print the current directory, and my prompt does look like that somewhat. When I run a cd command, it says "-bash: cd:" the directory I was trying to access, and ":No such file or directory"
– Gabriel L.
Feb 9 at 5:03
In Unix, you have a shell program, like a command prompt in Windows. Linux has several. Bash is the one you are using. the error you are getting means 1 of 2 things: 1) It cannot find the "cd" command 2) It cannot find the directory you are looking for.Desktop/code First, run the 'which cd' command and post the result. Second, run the 'ls -la' command and post the result. I'm sure we can figure it out if you do that.
– Scottie H
Feb 9 at 5:20
add a comment |
If the error message is bash: cd: DesktopCode: No such file or directory
,
then the most likely explanation is that
you typed cd DesktopCode
instead of cd Desktop/Code
.
In Unix & Linux,
you must use /
as a separator between directory names in a pathname.
Thank you! I changed the slashes, however, now my message says "-bash: cd: Desktop/Code: No such file or directory"
– Gabriel L.
Feb 9 at 5:05
add a comment |
Bash is the shell, or command interpreter that you are using. That error essentially means that the shell you are using is reporting that it can’t find the directory.
Try this
cd ~/Desktop/Code
Keep in mind Linux is case sensitive, so if your directory is named code with a lower case “c” the. You will need to modify the command accordingly like this:
cd ~/Desktop/code
Let me know if that works
Wow I screwed that up! I have updated my answer
– Richie086
Feb 8 at 17:24
Hello! I tried that. however, I just get the same error. It says "-bash: cd:" what I'm trying to access, and ": No such file or directory"
– Gabriel L.
Feb 9 at 5:06
Did you actually create a folder on your desktop called code at all?
– Richie086
Feb 12 at 13:48
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1403363%2fwhen-i-try-to-change-the-directory-on-ubuntu-it-wont-let-me%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
You have typed a backslash () in your command instead of a forward slash (
/
).
The backslash is used as an escape character. Since C
(in DesktopCode
) is not a recognized escape sequence, the backslash is ignored, so your command is interpreted as cd DesktopCode
.
1
Ninja’ed by a dog! :-(
– Scott
Feb 8 at 2:49
1
That's speciesist!
– Journeyman Geek♦
Feb 8 at 3:51
BARK! BARKBARKBARK!
– duskwuff
Feb 8 at 3:52
According to the original content and the latest edit to make that specific point more clear (I read it for the first time just now anyway), they are indeed already using a forward slash and not a backslash. Why might that happen when that is the case to go along with your existing answer.
– Pimp Juice IT
Feb 8 at 5:51
@PimpJuiceIT The edits were not made by the OP. The simplest and most likely explanation for the behavior they're describing is that they typed a backslash by mistake.
– duskwuff
Feb 8 at 19:06
|
show 1 more comment
You have typed a backslash () in your command instead of a forward slash (
/
).
The backslash is used as an escape character. Since C
(in DesktopCode
) is not a recognized escape sequence, the backslash is ignored, so your command is interpreted as cd DesktopCode
.
1
Ninja’ed by a dog! :-(
– Scott
Feb 8 at 2:49
1
That's speciesist!
– Journeyman Geek♦
Feb 8 at 3:51
BARK! BARKBARKBARK!
– duskwuff
Feb 8 at 3:52
According to the original content and the latest edit to make that specific point more clear (I read it for the first time just now anyway), they are indeed already using a forward slash and not a backslash. Why might that happen when that is the case to go along with your existing answer.
– Pimp Juice IT
Feb 8 at 5:51
@PimpJuiceIT The edits were not made by the OP. The simplest and most likely explanation for the behavior they're describing is that they typed a backslash by mistake.
– duskwuff
Feb 8 at 19:06
|
show 1 more comment
You have typed a backslash () in your command instead of a forward slash (
/
).
The backslash is used as an escape character. Since C
(in DesktopCode
) is not a recognized escape sequence, the backslash is ignored, so your command is interpreted as cd DesktopCode
.
You have typed a backslash () in your command instead of a forward slash (
/
).
The backslash is used as an escape character. Since C
(in DesktopCode
) is not a recognized escape sequence, the backslash is ignored, so your command is interpreted as cd DesktopCode
.
answered Feb 8 at 2:47
duskwuffduskwuff
2,9551514
2,9551514
1
Ninja’ed by a dog! :-(
– Scott
Feb 8 at 2:49
1
That's speciesist!
– Journeyman Geek♦
Feb 8 at 3:51
BARK! BARKBARKBARK!
– duskwuff
Feb 8 at 3:52
According to the original content and the latest edit to make that specific point more clear (I read it for the first time just now anyway), they are indeed already using a forward slash and not a backslash. Why might that happen when that is the case to go along with your existing answer.
– Pimp Juice IT
Feb 8 at 5:51
@PimpJuiceIT The edits were not made by the OP. The simplest and most likely explanation for the behavior they're describing is that they typed a backslash by mistake.
– duskwuff
Feb 8 at 19:06
|
show 1 more comment
1
Ninja’ed by a dog! :-(
– Scott
Feb 8 at 2:49
1
That's speciesist!
– Journeyman Geek♦
Feb 8 at 3:51
BARK! BARKBARKBARK!
– duskwuff
Feb 8 at 3:52
According to the original content and the latest edit to make that specific point more clear (I read it for the first time just now anyway), they are indeed already using a forward slash and not a backslash. Why might that happen when that is the case to go along with your existing answer.
– Pimp Juice IT
Feb 8 at 5:51
@PimpJuiceIT The edits were not made by the OP. The simplest and most likely explanation for the behavior they're describing is that they typed a backslash by mistake.
– duskwuff
Feb 8 at 19:06
1
1
Ninja’ed by a dog! :-(
– Scott
Feb 8 at 2:49
Ninja’ed by a dog! :-(
– Scott
Feb 8 at 2:49
1
1
That's speciesist!
– Journeyman Geek♦
Feb 8 at 3:51
That's speciesist!
– Journeyman Geek♦
Feb 8 at 3:51
BARK! BARKBARKBARK!
– duskwuff
Feb 8 at 3:52
BARK! BARKBARKBARK!
– duskwuff
Feb 8 at 3:52
According to the original content and the latest edit to make that specific point more clear (I read it for the first time just now anyway), they are indeed already using a forward slash and not a backslash. Why might that happen when that is the case to go along with your existing answer.
– Pimp Juice IT
Feb 8 at 5:51
According to the original content and the latest edit to make that specific point more clear (I read it for the first time just now anyway), they are indeed already using a forward slash and not a backslash. Why might that happen when that is the case to go along with your existing answer.
– Pimp Juice IT
Feb 8 at 5:51
@PimpJuiceIT The edits were not made by the OP. The simplest and most likely explanation for the behavior they're describing is that they typed a backslash by mistake.
– duskwuff
Feb 8 at 19:06
@PimpJuiceIT The edits were not made by the OP. The simplest and most likely explanation for the behavior they're describing is that they typed a backslash by mistake.
– duskwuff
Feb 8 at 19:06
|
show 1 more comment
There are details that would be helpful, but, since you are new to Unbutu, you would not know them. Let's try some troubleshooting and see what happens.
At you command prompt, what does your prompt look like? something like this:
[Gabriel@mycomputer] $ _
Can you run a directory listing?
ls -la
Can you print the current directory?
pwd
-- or --
cwd
Next, can you try just a cd command:
cd ~
if not, try to "unalias" the cd, like this:
cd ~
Notice the "backslash" before the cd. This is not the "forward slash" that you see with the question mark.
Forward Slash: /
Back Slash:
And, try this command, just to see what it says:
which cd
Can you run any other command successfully, besides cd?
Hello! Sorry for the late response. I am able to run a directory listing and print the current directory, and my prompt does look like that somewhat. When I run a cd command, it says "-bash: cd:" the directory I was trying to access, and ":No such file or directory"
– Gabriel L.
Feb 9 at 5:03
In Unix, you have a shell program, like a command prompt in Windows. Linux has several. Bash is the one you are using. the error you are getting means 1 of 2 things: 1) It cannot find the "cd" command 2) It cannot find the directory you are looking for.Desktop/code First, run the 'which cd' command and post the result. Second, run the 'ls -la' command and post the result. I'm sure we can figure it out if you do that.
– Scottie H
Feb 9 at 5:20
add a comment |
There are details that would be helpful, but, since you are new to Unbutu, you would not know them. Let's try some troubleshooting and see what happens.
At you command prompt, what does your prompt look like? something like this:
[Gabriel@mycomputer] $ _
Can you run a directory listing?
ls -la
Can you print the current directory?
pwd
-- or --
cwd
Next, can you try just a cd command:
cd ~
if not, try to "unalias" the cd, like this:
cd ~
Notice the "backslash" before the cd. This is not the "forward slash" that you see with the question mark.
Forward Slash: /
Back Slash:
And, try this command, just to see what it says:
which cd
Can you run any other command successfully, besides cd?
Hello! Sorry for the late response. I am able to run a directory listing and print the current directory, and my prompt does look like that somewhat. When I run a cd command, it says "-bash: cd:" the directory I was trying to access, and ":No such file or directory"
– Gabriel L.
Feb 9 at 5:03
In Unix, you have a shell program, like a command prompt in Windows. Linux has several. Bash is the one you are using. the error you are getting means 1 of 2 things: 1) It cannot find the "cd" command 2) It cannot find the directory you are looking for.Desktop/code First, run the 'which cd' command and post the result. Second, run the 'ls -la' command and post the result. I'm sure we can figure it out if you do that.
– Scottie H
Feb 9 at 5:20
add a comment |
There are details that would be helpful, but, since you are new to Unbutu, you would not know them. Let's try some troubleshooting and see what happens.
At you command prompt, what does your prompt look like? something like this:
[Gabriel@mycomputer] $ _
Can you run a directory listing?
ls -la
Can you print the current directory?
pwd
-- or --
cwd
Next, can you try just a cd command:
cd ~
if not, try to "unalias" the cd, like this:
cd ~
Notice the "backslash" before the cd. This is not the "forward slash" that you see with the question mark.
Forward Slash: /
Back Slash:
And, try this command, just to see what it says:
which cd
Can you run any other command successfully, besides cd?
There are details that would be helpful, but, since you are new to Unbutu, you would not know them. Let's try some troubleshooting and see what happens.
At you command prompt, what does your prompt look like? something like this:
[Gabriel@mycomputer] $ _
Can you run a directory listing?
ls -la
Can you print the current directory?
pwd
-- or --
cwd
Next, can you try just a cd command:
cd ~
if not, try to "unalias" the cd, like this:
cd ~
Notice the "backslash" before the cd. This is not the "forward slash" that you see with the question mark.
Forward Slash: /
Back Slash:
And, try this command, just to see what it says:
which cd
Can you run any other command successfully, besides cd?
answered Feb 8 at 2:27
Scottie HScottie H
544
544
Hello! Sorry for the late response. I am able to run a directory listing and print the current directory, and my prompt does look like that somewhat. When I run a cd command, it says "-bash: cd:" the directory I was trying to access, and ":No such file or directory"
– Gabriel L.
Feb 9 at 5:03
In Unix, you have a shell program, like a command prompt in Windows. Linux has several. Bash is the one you are using. the error you are getting means 1 of 2 things: 1) It cannot find the "cd" command 2) It cannot find the directory you are looking for.Desktop/code First, run the 'which cd' command and post the result. Second, run the 'ls -la' command and post the result. I'm sure we can figure it out if you do that.
– Scottie H
Feb 9 at 5:20
add a comment |
Hello! Sorry for the late response. I am able to run a directory listing and print the current directory, and my prompt does look like that somewhat. When I run a cd command, it says "-bash: cd:" the directory I was trying to access, and ":No such file or directory"
– Gabriel L.
Feb 9 at 5:03
In Unix, you have a shell program, like a command prompt in Windows. Linux has several. Bash is the one you are using. the error you are getting means 1 of 2 things: 1) It cannot find the "cd" command 2) It cannot find the directory you are looking for.Desktop/code First, run the 'which cd' command and post the result. Second, run the 'ls -la' command and post the result. I'm sure we can figure it out if you do that.
– Scottie H
Feb 9 at 5:20
Hello! Sorry for the late response. I am able to run a directory listing and print the current directory, and my prompt does look like that somewhat. When I run a cd command, it says "-bash: cd:" the directory I was trying to access, and ":No such file or directory"
– Gabriel L.
Feb 9 at 5:03
Hello! Sorry for the late response. I am able to run a directory listing and print the current directory, and my prompt does look like that somewhat. When I run a cd command, it says "-bash: cd:" the directory I was trying to access, and ":No such file or directory"
– Gabriel L.
Feb 9 at 5:03
In Unix, you have a shell program, like a command prompt in Windows. Linux has several. Bash is the one you are using. the error you are getting means 1 of 2 things: 1) It cannot find the "cd" command 2) It cannot find the directory you are looking for.Desktop/code First, run the 'which cd' command and post the result. Second, run the 'ls -la' command and post the result. I'm sure we can figure it out if you do that.
– Scottie H
Feb 9 at 5:20
In Unix, you have a shell program, like a command prompt in Windows. Linux has several. Bash is the one you are using. the error you are getting means 1 of 2 things: 1) It cannot find the "cd" command 2) It cannot find the directory you are looking for.Desktop/code First, run the 'which cd' command and post the result. Second, run the 'ls -la' command and post the result. I'm sure we can figure it out if you do that.
– Scottie H
Feb 9 at 5:20
add a comment |
If the error message is bash: cd: DesktopCode: No such file or directory
,
then the most likely explanation is that
you typed cd DesktopCode
instead of cd Desktop/Code
.
In Unix & Linux,
you must use /
as a separator between directory names in a pathname.
Thank you! I changed the slashes, however, now my message says "-bash: cd: Desktop/Code: No such file or directory"
– Gabriel L.
Feb 9 at 5:05
add a comment |
If the error message is bash: cd: DesktopCode: No such file or directory
,
then the most likely explanation is that
you typed cd DesktopCode
instead of cd Desktop/Code
.
In Unix & Linux,
you must use /
as a separator between directory names in a pathname.
Thank you! I changed the slashes, however, now my message says "-bash: cd: Desktop/Code: No such file or directory"
– Gabriel L.
Feb 9 at 5:05
add a comment |
If the error message is bash: cd: DesktopCode: No such file or directory
,
then the most likely explanation is that
you typed cd DesktopCode
instead of cd Desktop/Code
.
In Unix & Linux,
you must use /
as a separator between directory names in a pathname.
If the error message is bash: cd: DesktopCode: No such file or directory
,
then the most likely explanation is that
you typed cd DesktopCode
instead of cd Desktop/Code
.
In Unix & Linux,
you must use /
as a separator between directory names in a pathname.
answered Feb 8 at 2:47
ScottScott
15.9k113990
15.9k113990
Thank you! I changed the slashes, however, now my message says "-bash: cd: Desktop/Code: No such file or directory"
– Gabriel L.
Feb 9 at 5:05
add a comment |
Thank you! I changed the slashes, however, now my message says "-bash: cd: Desktop/Code: No such file or directory"
– Gabriel L.
Feb 9 at 5:05
Thank you! I changed the slashes, however, now my message says "-bash: cd: Desktop/Code: No such file or directory"
– Gabriel L.
Feb 9 at 5:05
Thank you! I changed the slashes, however, now my message says "-bash: cd: Desktop/Code: No such file or directory"
– Gabriel L.
Feb 9 at 5:05
add a comment |
Bash is the shell, or command interpreter that you are using. That error essentially means that the shell you are using is reporting that it can’t find the directory.
Try this
cd ~/Desktop/Code
Keep in mind Linux is case sensitive, so if your directory is named code with a lower case “c” the. You will need to modify the command accordingly like this:
cd ~/Desktop/code
Let me know if that works
Wow I screwed that up! I have updated my answer
– Richie086
Feb 8 at 17:24
Hello! I tried that. however, I just get the same error. It says "-bash: cd:" what I'm trying to access, and ": No such file or directory"
– Gabriel L.
Feb 9 at 5:06
Did you actually create a folder on your desktop called code at all?
– Richie086
Feb 12 at 13:48
add a comment |
Bash is the shell, or command interpreter that you are using. That error essentially means that the shell you are using is reporting that it can’t find the directory.
Try this
cd ~/Desktop/Code
Keep in mind Linux is case sensitive, so if your directory is named code with a lower case “c” the. You will need to modify the command accordingly like this:
cd ~/Desktop/code
Let me know if that works
Wow I screwed that up! I have updated my answer
– Richie086
Feb 8 at 17:24
Hello! I tried that. however, I just get the same error. It says "-bash: cd:" what I'm trying to access, and ": No such file or directory"
– Gabriel L.
Feb 9 at 5:06
Did you actually create a folder on your desktop called code at all?
– Richie086
Feb 12 at 13:48
add a comment |
Bash is the shell, or command interpreter that you are using. That error essentially means that the shell you are using is reporting that it can’t find the directory.
Try this
cd ~/Desktop/Code
Keep in mind Linux is case sensitive, so if your directory is named code with a lower case “c” the. You will need to modify the command accordingly like this:
cd ~/Desktop/code
Let me know if that works
Bash is the shell, or command interpreter that you are using. That error essentially means that the shell you are using is reporting that it can’t find the directory.
Try this
cd ~/Desktop/Code
Keep in mind Linux is case sensitive, so if your directory is named code with a lower case “c” the. You will need to modify the command accordingly like this:
cd ~/Desktop/code
Let me know if that works
edited Feb 8 at 17:22
answered Feb 8 at 2:56
Richie086Richie086
3,57473254
3,57473254
Wow I screwed that up! I have updated my answer
– Richie086
Feb 8 at 17:24
Hello! I tried that. however, I just get the same error. It says "-bash: cd:" what I'm trying to access, and ": No such file or directory"
– Gabriel L.
Feb 9 at 5:06
Did you actually create a folder on your desktop called code at all?
– Richie086
Feb 12 at 13:48
add a comment |
Wow I screwed that up! I have updated my answer
– Richie086
Feb 8 at 17:24
Hello! I tried that. however, I just get the same error. It says "-bash: cd:" what I'm trying to access, and ": No such file or directory"
– Gabriel L.
Feb 9 at 5:06
Did you actually create a folder on your desktop called code at all?
– Richie086
Feb 12 at 13:48
Wow I screwed that up! I have updated my answer
– Richie086
Feb 8 at 17:24
Wow I screwed that up! I have updated my answer
– Richie086
Feb 8 at 17:24
Hello! I tried that. however, I just get the same error. It says "-bash: cd:" what I'm trying to access, and ": No such file or directory"
– Gabriel L.
Feb 9 at 5:06
Hello! I tried that. however, I just get the same error. It says "-bash: cd:" what I'm trying to access, and ": No such file or directory"
– Gabriel L.
Feb 9 at 5:06
Did you actually create a folder on your desktop called code at all?
– Richie086
Feb 12 at 13:48
Did you actually create a folder on your desktop called code at all?
– Richie086
Feb 12 at 13:48
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1403363%2fwhen-i-try-to-change-the-directory-on-ubuntu-it-wont-let-me%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is "Code", a file or a directory? And this has nothing to do with programming.
– GabrielaGarcia
Feb 8 at 1:45
What does
cd Desktop//Code
do for you?– Pimp Juice IT
Feb 8 at 19:34
What directory are you in when you do this? Unless Desktop is a child of your current directory, you will need the complete path.
– fixer1234
Feb 10 at 3:12