Is there a way to run the cd command with superuser privileges to gain access to directories that are owned by root? When I run sudo cd <path>, I get sudo: cd: command not found.
- The Overflow Blog
-
-
- Featured on Meta
-
-
Linked
Related
Hot Network Questions
- What is the correct definition of a limit point in real analysis?
- Can a Gazer using Telekinetic Ray throw a creature 30 feet up in the air?
- What is the convention for slurs and word extensions when chorus is singing on sustained vowel or consonant sound?
- How to change the color of the individual squares on a chessboard?
- How much storage space do I really have?
- Shimano xtr wh-m959 wheel
- Can an aspect ratio of of +5 % have an adverse effect on a differential?
- Why do interpretations of quantum phenomena focus on QM rather than QFT?
- Criterion for abelian subcategory
- National Semiconductor IC, what is this component?
- SF book series about a wandering space monk called Brother Paul
- Is it possible for a Mercury-type planet to form in liu of an asteroid belt where one would normally form?
- Mirror in both directions in Inkscape
- Ioniq 6 "Oil Fortifier"
- Origin of the Popular Distinction Between Morals and Ethics
- Induced Topological Vector Space Structure?
- Effective resistance of a finite grid of resistor
- How can I use sed to chain append lines from a text file, add it as a suffix to the text on the same lines numbers on another file, and so on?
- Three-cushion billiards challenge.
- Reacting calcium with acetic acid - safe to conduct in classroom environment?
- A Sequence of Words
- How does one derive involutivity of complement from the axioms of a Boolean algebra?
- Why doesn't adjusting my floor heating system's flow gauges seem to have an effect?
- Rebuild Thule Strolling Kit
cdis a shell built-in, not an executable.sudoonly works on executables. You can runsudo /bin/cd <path>but I don't think you'll get the results you're expecting.sudo cd …would start a root subshell, change that subshell's current directory, and then exit, returning to the non-root shell with the original current directory.