how to navigate to the user folder in a terminal

Asked by Hector

opened a terminal and changed to 'root' so I can change a read only file in the user folder.

How do I navigate to this folder?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If the user is the owner of the file, you don't need root. It can edit it's own file so you don't need to use root, so no navigation is needed. You can just use:

cmod +w filename

And it will be marked as writable for the owner.

Revision history for this message
mrainb0w (annamalai-gurusami) said :
#2

Please lookup the following basic commands - ls (for listing files), cd (for changing directories or folder navigation), chmod (for changing file and folder permissions). You can use the man pages to lookup for more details. You can find a description of 'cd' command in the bash man page (under SHELL BUILTIN COMMANDS).

Revision history for this message
codemaniac (arijit.dutta) said :
#3

You would need the cd command to navigate to other directories .

cd /path/to/dir

Can you help with this problem?

Provide an answer of your own, or ask Hector for more information if necessary.

To post a message you must log in.