how to navigate to the user folder in a terminal

Asked by Hector on 2012-04-12

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

English Edit question
Ubuntu gnome-terminal Edit question
No assignee Edit question
Last query:
Last reply:

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.

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).

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.