How is it possible that the folder is there yet isnt in the same time?
How is it possible that the folder is there yet isnt in the same time?
valo@Castor:~$ cd /home
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$ ls
valo
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$
directory
New contributor
add a comment |
How is it possible that the folder is there yet isnt in the same time?
valo@Castor:~$ cd /home
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$ ls
valo
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$
directory
New contributor
1
Trycd /home/valo
– user535733
4 hours ago
I did, the result is the same.
– Valo
4 hours ago
/home
is/
thenhome
. You could trycd /
,cd home
,cd valo
to get the same effect.cd ~
also can achieve what you're looking for.
– avisitoritseems
4 hours ago
add a comment |
How is it possible that the folder is there yet isnt in the same time?
valo@Castor:~$ cd /home
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$ ls
valo
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$
directory
New contributor
How is it possible that the folder is there yet isnt in the same time?
valo@Castor:~$ cd /home
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$ ls
valo
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$
directory
directory
New contributor
New contributor
edited 4 hours ago
stumblebee
2,31431123
2,31431123
New contributor
asked 4 hours ago
ValoValo
82
82
New contributor
New contributor
1
Trycd /home/valo
– user535733
4 hours ago
I did, the result is the same.
– Valo
4 hours ago
/home
is/
thenhome
. You could trycd /
,cd home
,cd valo
to get the same effect.cd ~
also can achieve what you're looking for.
– avisitoritseems
4 hours ago
add a comment |
1
Trycd /home/valo
– user535733
4 hours ago
I did, the result is the same.
– Valo
4 hours ago
/home
is/
thenhome
. You could trycd /
,cd home
,cd valo
to get the same effect.cd ~
also can achieve what you're looking for.
– avisitoritseems
4 hours ago
1
1
Try
cd /home/valo
– user535733
4 hours ago
Try
cd /home/valo
– user535733
4 hours ago
I did, the result is the same.
– Valo
4 hours ago
I did, the result is the same.
– Valo
4 hours ago
/home
is /
then home
. You could try cd /
, cd home
, cd valo
to get the same effect. cd ~
also can achieve what you're looking for.– avisitoritseems
4 hours ago
/home
is /
then home
. You could try cd /
, cd home
, cd valo
to get the same effect. cd ~
also can achieve what you're looking for.– avisitoritseems
4 hours ago
add a comment |
2 Answers
2
active
oldest
votes
What the comments have suggested, but not said, is that the /
character typed before the name valo
makes the system look for the directory valo
as a subdirectory of /
or the root of the file system.
The thing about the cd
command to remember is that it will either look for a "relative" path or an "absolute" path based on the path entered. When the path entered begins with a /
it looks for an absolute path, meaning it starts from the root of the file system. When the character is anything else, it looks for the path to begin in the current location.
In your example, when you are in /home
and type cd /valo
it looks for an absolute path of /
(filesystem root) valo
, which does not exist. If you type cd valo
it looks for valo
in the current directory. If that is in the /home
directory, it will find it.
add a comment |
Some basic commands that you can use to navigate directories on the terminal:
cd
and cd ~
will both take you to the same place - your users's home directory
pwd
will print the current directory and this is also listed at the command line prompt.
If you are in the directory /home
and you type ls
and see
valo@Castor:/home$ ls
valo
Then you know valo
is a subdirectory of the current directory. To change to that directory, type the command:
cd valo
Some equivalent commands are cd ./valo
and cd /home/valo
Sometimes these other ways of specifying the subdirectory are needed.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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
});
}
});
Valo is a new contributor. Be nice, and check out our Code of Conduct.
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%2faskubuntu.com%2fquestions%2f1121286%2fhow-is-it-possible-that-the-folder-is-there-yet-isnt-in-the-same-time%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
What the comments have suggested, but not said, is that the /
character typed before the name valo
makes the system look for the directory valo
as a subdirectory of /
or the root of the file system.
The thing about the cd
command to remember is that it will either look for a "relative" path or an "absolute" path based on the path entered. When the path entered begins with a /
it looks for an absolute path, meaning it starts from the root of the file system. When the character is anything else, it looks for the path to begin in the current location.
In your example, when you are in /home
and type cd /valo
it looks for an absolute path of /
(filesystem root) valo
, which does not exist. If you type cd valo
it looks for valo
in the current directory. If that is in the /home
directory, it will find it.
add a comment |
What the comments have suggested, but not said, is that the /
character typed before the name valo
makes the system look for the directory valo
as a subdirectory of /
or the root of the file system.
The thing about the cd
command to remember is that it will either look for a "relative" path or an "absolute" path based on the path entered. When the path entered begins with a /
it looks for an absolute path, meaning it starts from the root of the file system. When the character is anything else, it looks for the path to begin in the current location.
In your example, when you are in /home
and type cd /valo
it looks for an absolute path of /
(filesystem root) valo
, which does not exist. If you type cd valo
it looks for valo
in the current directory. If that is in the /home
directory, it will find it.
add a comment |
What the comments have suggested, but not said, is that the /
character typed before the name valo
makes the system look for the directory valo
as a subdirectory of /
or the root of the file system.
The thing about the cd
command to remember is that it will either look for a "relative" path or an "absolute" path based on the path entered. When the path entered begins with a /
it looks for an absolute path, meaning it starts from the root of the file system. When the character is anything else, it looks for the path to begin in the current location.
In your example, when you are in /home
and type cd /valo
it looks for an absolute path of /
(filesystem root) valo
, which does not exist. If you type cd valo
it looks for valo
in the current directory. If that is in the /home
directory, it will find it.
What the comments have suggested, but not said, is that the /
character typed before the name valo
makes the system look for the directory valo
as a subdirectory of /
or the root of the file system.
The thing about the cd
command to remember is that it will either look for a "relative" path or an "absolute" path based on the path entered. When the path entered begins with a /
it looks for an absolute path, meaning it starts from the root of the file system. When the character is anything else, it looks for the path to begin in the current location.
In your example, when you are in /home
and type cd /valo
it looks for an absolute path of /
(filesystem root) valo
, which does not exist. If you type cd valo
it looks for valo
in the current directory. If that is in the /home
directory, it will find it.
answered 3 hours ago
Gypsy SpellweaverGypsy Spellweaver
2231213
2231213
add a comment |
add a comment |
Some basic commands that you can use to navigate directories on the terminal:
cd
and cd ~
will both take you to the same place - your users's home directory
pwd
will print the current directory and this is also listed at the command line prompt.
If you are in the directory /home
and you type ls
and see
valo@Castor:/home$ ls
valo
Then you know valo
is a subdirectory of the current directory. To change to that directory, type the command:
cd valo
Some equivalent commands are cd ./valo
and cd /home/valo
Sometimes these other ways of specifying the subdirectory are needed.
add a comment |
Some basic commands that you can use to navigate directories on the terminal:
cd
and cd ~
will both take you to the same place - your users's home directory
pwd
will print the current directory and this is also listed at the command line prompt.
If you are in the directory /home
and you type ls
and see
valo@Castor:/home$ ls
valo
Then you know valo
is a subdirectory of the current directory. To change to that directory, type the command:
cd valo
Some equivalent commands are cd ./valo
and cd /home/valo
Sometimes these other ways of specifying the subdirectory are needed.
add a comment |
Some basic commands that you can use to navigate directories on the terminal:
cd
and cd ~
will both take you to the same place - your users's home directory
pwd
will print the current directory and this is also listed at the command line prompt.
If you are in the directory /home
and you type ls
and see
valo@Castor:/home$ ls
valo
Then you know valo
is a subdirectory of the current directory. To change to that directory, type the command:
cd valo
Some equivalent commands are cd ./valo
and cd /home/valo
Sometimes these other ways of specifying the subdirectory are needed.
Some basic commands that you can use to navigate directories on the terminal:
cd
and cd ~
will both take you to the same place - your users's home directory
pwd
will print the current directory and this is also listed at the command line prompt.
If you are in the directory /home
and you type ls
and see
valo@Castor:/home$ ls
valo
Then you know valo
is a subdirectory of the current directory. To change to that directory, type the command:
cd valo
Some equivalent commands are cd ./valo
and cd /home/valo
Sometimes these other ways of specifying the subdirectory are needed.
answered 3 hours ago
Charles GreenCharles Green
13.7k73858
13.7k73858
add a comment |
add a comment |
Valo is a new contributor. Be nice, and check out our Code of Conduct.
Valo is a new contributor. Be nice, and check out our Code of Conduct.
Valo is a new contributor. Be nice, and check out our Code of Conduct.
Valo is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1121286%2fhow-is-it-possible-that-the-folder-is-there-yet-isnt-in-the-same-time%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
1
Try
cd /home/valo
– user535733
4 hours ago
I did, the result is the same.
– Valo
4 hours ago
/home
is/
thenhome
. You could trycd /
,cd home
,cd valo
to get the same effect.cd ~
also can achieve what you're looking for.– avisitoritseems
4 hours ago