How do I go back to root in Linux?

How do I go back to root in Linux?
Answer
How to change directory in Linux terminal
  1. To return to the home directory immediately, use cd ~ OR cd.
  2. To change into the root directory of Linux file system, use cd / .
  3. To go into the root user directory, run cd /root/ as root user.
  4. To navigate up one directory level up, use cd ..
  5. To go back to the previous directory, use cd –
9 февр. 2021 г.
 

Tìm kiếm

Back
Top