0

I am trying to access the root folder. I tried sudo -i cd /root/ and nothing happens. However I was able to access it from nautilus and that works.

Am I missing something? Or is it only possible to access via nautilus?

reference: I Can't access the root folder

0siris
  • 83
  • I was able to use sudo -i mkdir /root/ca. But I am not successful at making my way there through the terminal. – 0siris Aug 01 '18 at 18:16

2 Answers2

2

First of all, sudo -i opens the root folder automatically. That's what -i does.

Second, on Linux you must use forward slash, not backslash to define a path. Use cd /folder.

Stormlord
  • 6,317
0

Use a forward slash in Linux instead of a backslash.

The reason why you cannot use sudo cd is explained here: How to enter a directory with the 'cd' command if it has 700 permission and is not owned by me?

What you want to do instead is:

sudo -i cd /root/

ejjl
  • 428