How to navigate files in Ubuntu?

Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I'm having trouble understanding how the files work in Ubuntu, especially since it lists differently from Windows' command prompt and PowerShell. For example, when I go to the top most directory and list the files, this is what I get in Ubuntu:

I want to go to documents to use Valgrind to compile/debug an EXE file I created, however, this is rather difficult to navigate, considering the Windows counter part is completely different. When I go into "usr" on Ubuntu, it doesn't display the expected filed as "Users" in Windows. How can I do this?
cd /home/$USER/Documents/
returns:
bash: cd: /root/Documents: No such file or directory
navigation
New contributor
Goodwin Lu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
3
down vote
favorite
I'm having trouble understanding how the files work in Ubuntu, especially since it lists differently from Windows' command prompt and PowerShell. For example, when I go to the top most directory and list the files, this is what I get in Ubuntu:

I want to go to documents to use Valgrind to compile/debug an EXE file I created, however, this is rather difficult to navigate, considering the Windows counter part is completely different. When I go into "usr" on Ubuntu, it doesn't display the expected filed as "Users" in Windows. How can I do this?
cd /home/$USER/Documents/
returns:
bash: cd: /root/Documents: No such file or directory
navigation
New contributor
Goodwin Lu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Any reason why you feed the need to use root? Ubuntu is designed to use a sudo account and admin when required. Not permanently ;) Oh and microsoft changed it from how Unix does this, we Linux users still use their method ;-)
â Rinzwind
Sep 7 at 13:38
1
I disagree with the close votes :=)
â Rinzwind
Sep 7 at 13:49
Welcome to Ask Ubuntu! Could you please post text files, dialogue messages, and program output listings as text, not as images? To achieve the latter two you can either 1) select, copy & paste the dialogue text or terminal content or 2) save the program output to a file and use that. Longer listings (the editor will tell you whatâÂÂs too long) should be uploaded to a pastie service and linked to in the question. Thanks.
â David Foerster
Sep 7 at 14:25
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I'm having trouble understanding how the files work in Ubuntu, especially since it lists differently from Windows' command prompt and PowerShell. For example, when I go to the top most directory and list the files, this is what I get in Ubuntu:

I want to go to documents to use Valgrind to compile/debug an EXE file I created, however, this is rather difficult to navigate, considering the Windows counter part is completely different. When I go into "usr" on Ubuntu, it doesn't display the expected filed as "Users" in Windows. How can I do this?
cd /home/$USER/Documents/
returns:
bash: cd: /root/Documents: No such file or directory
navigation
New contributor
Goodwin Lu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm having trouble understanding how the files work in Ubuntu, especially since it lists differently from Windows' command prompt and PowerShell. For example, when I go to the top most directory and list the files, this is what I get in Ubuntu:

I want to go to documents to use Valgrind to compile/debug an EXE file I created, however, this is rather difficult to navigate, considering the Windows counter part is completely different. When I go into "usr" on Ubuntu, it doesn't display the expected filed as "Users" in Windows. How can I do this?
cd /home/$USER/Documents/
returns:
bash: cd: /root/Documents: No such file or directory
navigation
New contributor
Goodwin Lu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Sep 7 at 17:39
abu_bua
2,14031021
2,14031021
New contributor
Goodwin Lu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Sep 7 at 12:51
Goodwin Lu
163
163
New contributor
Goodwin Lu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Goodwin Lu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Goodwin Lu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Any reason why you feed the need to use root? Ubuntu is designed to use a sudo account and admin when required. Not permanently ;) Oh and microsoft changed it from how Unix does this, we Linux users still use their method ;-)
â Rinzwind
Sep 7 at 13:38
1
I disagree with the close votes :=)
â Rinzwind
Sep 7 at 13:49
Welcome to Ask Ubuntu! Could you please post text files, dialogue messages, and program output listings as text, not as images? To achieve the latter two you can either 1) select, copy & paste the dialogue text or terminal content or 2) save the program output to a file and use that. Longer listings (the editor will tell you whatâÂÂs too long) should be uploaded to a pastie service and linked to in the question. Thanks.
â David Foerster
Sep 7 at 14:25
add a comment |Â
1
Any reason why you feed the need to use root? Ubuntu is designed to use a sudo account and admin when required. Not permanently ;) Oh and microsoft changed it from how Unix does this, we Linux users still use their method ;-)
â Rinzwind
Sep 7 at 13:38
1
I disagree with the close votes :=)
â Rinzwind
Sep 7 at 13:49
Welcome to Ask Ubuntu! Could you please post text files, dialogue messages, and program output listings as text, not as images? To achieve the latter two you can either 1) select, copy & paste the dialogue text or terminal content or 2) save the program output to a file and use that. Longer listings (the editor will tell you whatâÂÂs too long) should be uploaded to a pastie service and linked to in the question. Thanks.
â David Foerster
Sep 7 at 14:25
1
1
Any reason why you feed the need to use root? Ubuntu is designed to use a sudo account and admin when required. Not permanently ;) Oh and microsoft changed it from how Unix does this, we Linux users still use their method ;-)
â Rinzwind
Sep 7 at 13:38
Any reason why you feed the need to use root? Ubuntu is designed to use a sudo account and admin when required. Not permanently ;) Oh and microsoft changed it from how Unix does this, we Linux users still use their method ;-)
â Rinzwind
Sep 7 at 13:38
1
1
I disagree with the close votes :=)
â Rinzwind
Sep 7 at 13:49
I disagree with the close votes :=)
â Rinzwind
Sep 7 at 13:49
Welcome to Ask Ubuntu! Could you please post text files, dialogue messages, and program output listings as text, not as images? To achieve the latter two you can either 1) select, copy & paste the dialogue text or terminal content or 2) save the program output to a file and use that. Longer listings (the editor will tell you whatâÂÂs too long) should be uploaded to a pastie service and linked to in the question. Thanks.
â David Foerster
Sep 7 at 14:25
Welcome to Ask Ubuntu! Could you please post text files, dialogue messages, and program output listings as text, not as images? To achieve the latter two you can either 1) select, copy & paste the dialogue text or terminal content or 2) save the program output to a file and use that. Longer listings (the editor will tell you whatâÂÂs too long) should be uploaded to a pastie service and linked to in the question. Thanks.
â David Foerster
Sep 7 at 14:25
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
5
down vote
For example, when I go to the top most directory and list the files, this is what I get in Ubuntu:
- That is the root of the system. Equivalent in Windows:
c:
Linux is a multi-user system and is set up as such. Windows used to be a single user system and was/is also set up like that. Main difference: each user has its own place in Linux where files are stored: /home/$USER/ and within that are personal directories. In Windows it is something like c:Users%USER%.
To get to the current users Documents you can use:
cd /home/$USER/Documents/
But there is a shorthand version: ~ points to your home, so
cd ~/Documents
also works. There are more: $USER for instance will replace with the current user but also $HOME for the home dir or $SHELL for the shell used (echo can be used to show the content: echo $USER will show the current username).
When I go into "usr" on Ubuntu, it doesn't display the expected filed as "Users" in Windows. Help please?
/usr is not what you believe it to be. It now is short for "Unix System Resources" so not related to a user ;) /home/$USER is where you find personal files.
Mind though that since you are using root ~ will point to the home of "root" and that is /root. I would advice to not use root on command line as Ubuntu is made to be used with a sudo account user and limited exposed elevated privileges.
Using a root sessions allows you to delete anything from that system without any restrictions. Using a sudo account would prevent deleting if you accidentally would try to and did not add sudo to the command.
/is not equivalent to Windows'C:. There may be noC:drive in Windows at all. Moreover, different drives are actually independent. The real equivalent is the UNC path\?. E.g.\?C:Fileis the same asC:File.
â Ruslan
Sep 7 at 16:22
Note that, apart from the dangers of doing everything as root, runningcd ~/Documentsas root is not going to put him where he wants to be (presumably he wants to be in his ownDocumentsdirectory, not root's one). In fact, I don't even think there is aDocumentsdirectory under/root.
â Micheal Johnson
Sep 7 at 17:09
add a comment |Â
up vote
0
down vote
cd to ~. That is your home. You can usually find Documents folder in there
New contributor
Shubham Rai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
I understand that you are not familiar with the Ubuntu Linux file system; in this case I can offer you to install Midnight Commander which was likely known as Norton Commander on Windows. It will help you a lot to work on files in the terminal screen.

thanks to @Peter Mortensen for the nice correction , it looks much better
â melic
Sep 8 at 10:06
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
For example, when I go to the top most directory and list the files, this is what I get in Ubuntu:
- That is the root of the system. Equivalent in Windows:
c:
Linux is a multi-user system and is set up as such. Windows used to be a single user system and was/is also set up like that. Main difference: each user has its own place in Linux where files are stored: /home/$USER/ and within that are personal directories. In Windows it is something like c:Users%USER%.
To get to the current users Documents you can use:
cd /home/$USER/Documents/
But there is a shorthand version: ~ points to your home, so
cd ~/Documents
also works. There are more: $USER for instance will replace with the current user but also $HOME for the home dir or $SHELL for the shell used (echo can be used to show the content: echo $USER will show the current username).
When I go into "usr" on Ubuntu, it doesn't display the expected filed as "Users" in Windows. Help please?
/usr is not what you believe it to be. It now is short for "Unix System Resources" so not related to a user ;) /home/$USER is where you find personal files.
Mind though that since you are using root ~ will point to the home of "root" and that is /root. I would advice to not use root on command line as Ubuntu is made to be used with a sudo account user and limited exposed elevated privileges.
Using a root sessions allows you to delete anything from that system without any restrictions. Using a sudo account would prevent deleting if you accidentally would try to and did not add sudo to the command.
/is not equivalent to Windows'C:. There may be noC:drive in Windows at all. Moreover, different drives are actually independent. The real equivalent is the UNC path\?. E.g.\?C:Fileis the same asC:File.
â Ruslan
Sep 7 at 16:22
Note that, apart from the dangers of doing everything as root, runningcd ~/Documentsas root is not going to put him where he wants to be (presumably he wants to be in his ownDocumentsdirectory, not root's one). In fact, I don't even think there is aDocumentsdirectory under/root.
â Micheal Johnson
Sep 7 at 17:09
add a comment |Â
up vote
5
down vote
For example, when I go to the top most directory and list the files, this is what I get in Ubuntu:
- That is the root of the system. Equivalent in Windows:
c:
Linux is a multi-user system and is set up as such. Windows used to be a single user system and was/is also set up like that. Main difference: each user has its own place in Linux where files are stored: /home/$USER/ and within that are personal directories. In Windows it is something like c:Users%USER%.
To get to the current users Documents you can use:
cd /home/$USER/Documents/
But there is a shorthand version: ~ points to your home, so
cd ~/Documents
also works. There are more: $USER for instance will replace with the current user but also $HOME for the home dir or $SHELL for the shell used (echo can be used to show the content: echo $USER will show the current username).
When I go into "usr" on Ubuntu, it doesn't display the expected filed as "Users" in Windows. Help please?
/usr is not what you believe it to be. It now is short for "Unix System Resources" so not related to a user ;) /home/$USER is where you find personal files.
Mind though that since you are using root ~ will point to the home of "root" and that is /root. I would advice to not use root on command line as Ubuntu is made to be used with a sudo account user and limited exposed elevated privileges.
Using a root sessions allows you to delete anything from that system without any restrictions. Using a sudo account would prevent deleting if you accidentally would try to and did not add sudo to the command.
/is not equivalent to Windows'C:. There may be noC:drive in Windows at all. Moreover, different drives are actually independent. The real equivalent is the UNC path\?. E.g.\?C:Fileis the same asC:File.
â Ruslan
Sep 7 at 16:22
Note that, apart from the dangers of doing everything as root, runningcd ~/Documentsas root is not going to put him where he wants to be (presumably he wants to be in his ownDocumentsdirectory, not root's one). In fact, I don't even think there is aDocumentsdirectory under/root.
â Micheal Johnson
Sep 7 at 17:09
add a comment |Â
up vote
5
down vote
up vote
5
down vote
For example, when I go to the top most directory and list the files, this is what I get in Ubuntu:
- That is the root of the system. Equivalent in Windows:
c:
Linux is a multi-user system and is set up as such. Windows used to be a single user system and was/is also set up like that. Main difference: each user has its own place in Linux where files are stored: /home/$USER/ and within that are personal directories. In Windows it is something like c:Users%USER%.
To get to the current users Documents you can use:
cd /home/$USER/Documents/
But there is a shorthand version: ~ points to your home, so
cd ~/Documents
also works. There are more: $USER for instance will replace with the current user but also $HOME for the home dir or $SHELL for the shell used (echo can be used to show the content: echo $USER will show the current username).
When I go into "usr" on Ubuntu, it doesn't display the expected filed as "Users" in Windows. Help please?
/usr is not what you believe it to be. It now is short for "Unix System Resources" so not related to a user ;) /home/$USER is where you find personal files.
Mind though that since you are using root ~ will point to the home of "root" and that is /root. I would advice to not use root on command line as Ubuntu is made to be used with a sudo account user and limited exposed elevated privileges.
Using a root sessions allows you to delete anything from that system without any restrictions. Using a sudo account would prevent deleting if you accidentally would try to and did not add sudo to the command.
For example, when I go to the top most directory and list the files, this is what I get in Ubuntu:
- That is the root of the system. Equivalent in Windows:
c:
Linux is a multi-user system and is set up as such. Windows used to be a single user system and was/is also set up like that. Main difference: each user has its own place in Linux where files are stored: /home/$USER/ and within that are personal directories. In Windows it is something like c:Users%USER%.
To get to the current users Documents you can use:
cd /home/$USER/Documents/
But there is a shorthand version: ~ points to your home, so
cd ~/Documents
also works. There are more: $USER for instance will replace with the current user but also $HOME for the home dir or $SHELL for the shell used (echo can be used to show the content: echo $USER will show the current username).
When I go into "usr" on Ubuntu, it doesn't display the expected filed as "Users" in Windows. Help please?
/usr is not what you believe it to be. It now is short for "Unix System Resources" so not related to a user ;) /home/$USER is where you find personal files.
Mind though that since you are using root ~ will point to the home of "root" and that is /root. I would advice to not use root on command line as Ubuntu is made to be used with a sudo account user and limited exposed elevated privileges.
Using a root sessions allows you to delete anything from that system without any restrictions. Using a sudo account would prevent deleting if you accidentally would try to and did not add sudo to the command.
edited Sep 7 at 20:42
Fabby
24.4k1352153
24.4k1352153
answered Sep 7 at 13:45
Rinzwind
197k25375510
197k25375510
/is not equivalent to Windows'C:. There may be noC:drive in Windows at all. Moreover, different drives are actually independent. The real equivalent is the UNC path\?. E.g.\?C:Fileis the same asC:File.
â Ruslan
Sep 7 at 16:22
Note that, apart from the dangers of doing everything as root, runningcd ~/Documentsas root is not going to put him where he wants to be (presumably he wants to be in his ownDocumentsdirectory, not root's one). In fact, I don't even think there is aDocumentsdirectory under/root.
â Micheal Johnson
Sep 7 at 17:09
add a comment |Â
/is not equivalent to Windows'C:. There may be noC:drive in Windows at all. Moreover, different drives are actually independent. The real equivalent is the UNC path\?. E.g.\?C:Fileis the same asC:File.
â Ruslan
Sep 7 at 16:22
Note that, apart from the dangers of doing everything as root, runningcd ~/Documentsas root is not going to put him where he wants to be (presumably he wants to be in his ownDocumentsdirectory, not root's one). In fact, I don't even think there is aDocumentsdirectory under/root.
â Micheal Johnson
Sep 7 at 17:09
/ is not equivalent to Windows' C:. There may be no C: drive in Windows at all. Moreover, different drives are actually independent. The real equivalent is the UNC path \?. E.g. \?C:File is the same as C:File.â Ruslan
Sep 7 at 16:22
/ is not equivalent to Windows' C:. There may be no C: drive in Windows at all. Moreover, different drives are actually independent. The real equivalent is the UNC path \?. E.g. \?C:File is the same as C:File.â Ruslan
Sep 7 at 16:22
Note that, apart from the dangers of doing everything as root, running
cd ~/Documents as root is not going to put him where he wants to be (presumably he wants to be in his own Documents directory, not root's one). In fact, I don't even think there is a Documents directory under /root.â Micheal Johnson
Sep 7 at 17:09
Note that, apart from the dangers of doing everything as root, running
cd ~/Documents as root is not going to put him where he wants to be (presumably he wants to be in his own Documents directory, not root's one). In fact, I don't even think there is a Documents directory under /root.â Micheal Johnson
Sep 7 at 17:09
add a comment |Â
up vote
0
down vote
cd to ~. That is your home. You can usually find Documents folder in there
New contributor
Shubham Rai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
cd to ~. That is your home. You can usually find Documents folder in there
New contributor
Shubham Rai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
cd to ~. That is your home. You can usually find Documents folder in there
New contributor
Shubham Rai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
cd to ~. That is your home. You can usually find Documents folder in there
New contributor
Shubham Rai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Shubham Rai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered Sep 7 at 13:09
Shubham Rai
111
111
New contributor
Shubham Rai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Shubham Rai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Shubham Rai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
up vote
0
down vote
I understand that you are not familiar with the Ubuntu Linux file system; in this case I can offer you to install Midnight Commander which was likely known as Norton Commander on Windows. It will help you a lot to work on files in the terminal screen.

thanks to @Peter Mortensen for the nice correction , it looks much better
â melic
Sep 8 at 10:06
add a comment |Â
up vote
0
down vote
I understand that you are not familiar with the Ubuntu Linux file system; in this case I can offer you to install Midnight Commander which was likely known as Norton Commander on Windows. It will help you a lot to work on files in the terminal screen.

thanks to @Peter Mortensen for the nice correction , it looks much better
â melic
Sep 8 at 10:06
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I understand that you are not familiar with the Ubuntu Linux file system; in this case I can offer you to install Midnight Commander which was likely known as Norton Commander on Windows. It will help you a lot to work on files in the terminal screen.

I understand that you are not familiar with the Ubuntu Linux file system; in this case I can offer you to install Midnight Commander which was likely known as Norton Commander on Windows. It will help you a lot to work on files in the terminal screen.

edited Sep 7 at 18:01
Peter Mortensen
1,03821016
1,03821016
answered Sep 7 at 14:48
melic
8119
8119
thanks to @Peter Mortensen for the nice correction , it looks much better
â melic
Sep 8 at 10:06
add a comment |Â
thanks to @Peter Mortensen for the nice correction , it looks much better
â melic
Sep 8 at 10:06
thanks to @Peter Mortensen for the nice correction , it looks much better
â melic
Sep 8 at 10:06
thanks to @Peter Mortensen for the nice correction , it looks much better
â melic
Sep 8 at 10:06
add a comment |Â
Goodwin Lu is a new contributor. Be nice, and check out our Code of Conduct.
Goodwin Lu is a new contributor. Be nice, and check out our Code of Conduct.
Goodwin Lu is a new contributor. Be nice, and check out our Code of Conduct.
Goodwin Lu 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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1073084%2fhow-to-navigate-files-in-ubuntu%23new-answer', 'question_page');
);
Post as a guest
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
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
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

1
Any reason why you feed the need to use root? Ubuntu is designed to use a sudo account and admin when required. Not permanently ;) Oh and microsoft changed it from how Unix does this, we Linux users still use their method ;-)
â Rinzwind
Sep 7 at 13:38
1
I disagree with the close votes :=)
â Rinzwind
Sep 7 at 13:49
Welcome to Ask Ubuntu! Could you please post text files, dialogue messages, and program output listings as text, not as images? To achieve the latter two you can either 1) select, copy & paste the dialogue text or terminal content or 2) save the program output to a file and use that. Longer listings (the editor will tell you whatâÂÂs too long) should be uploaded to a pastie service and linked to in the question. Thanks.
â David Foerster
Sep 7 at 14:25