FG

Why won't "sudo cd" work?

Fresh3 days ago
Mar 15, 2026296000 views
Confidence Score1%
1%

Problem

Why typing sudo cd whatever won't change the directory?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Why won't "sudo cd" work?

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 . As Arjan hints at in his comment below, 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