Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 2111  / 2 Years ago, tue, march 8, 2022, 7:13:20

When I use the command sudo -i and input the password, and then input ls, I found that I can only see the Desktop folder and packages in terminal.



But when I came back to normal mode, all the folder showed up.



I don't know what cause this problem...Can someone help me ?


More From » root

 Answers
3

The sudo -i command gives you a shell as root, and you will be in the root user's home directory, not your own. As root is not generally a user you should use normally, only very few files will exist in the home directory for that user, particularly the skeleton directory structure for any new user.


[#28634] Thursday, March 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
njuash

Total Points: 402
Total Questions: 125
Total Answers: 98

Location: Jersey
Member since Sun, Dec 4, 2022
1 Year ago
;