FG

Change directory using sudo

Fresh3 days ago
Mar 15, 202678817 views
Confidence Score0%
0%

Problem

How to I change into a directory owned by root? If I do: I get: If I I get: , probably because I never really set up an actual root account. What am I doing wrong here?

Error Output

sudo cd RootOwedDir

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Change directory using sudo

Low Risk

Instead try using to start a root shell and then simply into the directory. When you're done as root, press CtrlD or type . It is important to note that as root, one can easily do damage to essential system components. Use with care!

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment