How Do I Move to the Root Directory in Linux?
Contents

To change into the root directory of Linux file system, use cd / . To go into the root user directory, run cd /root/ as root user. To navigate up one directory level up, use cd ..

How do I get to the root directory in Linux?

To navigate to your home directory, use “cd” or “cd ~” To navigate up one directory level, use “cd ..” To navigate to the previous directory (or back), use “cd -” To navigate into the root directory, use “cd /”

How do I move files to root in Linux?

5 Answers

  1. Press Alt + F2 to get a run dialogue and in that type gksu nautilus . This will open up a file browser window running as root. …
  2. A much more direct method is just loading up a terminal and writing: sudo cp -R /path/to/files/you/want/copied/ /copy/to/this/path/
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest