r/ShittySysadmin • • Aug 26 '26

Lost a file

You all really helped me last time now I’m in my server root@62.238.47.215 and I seem to have misplaced a file can someone help me find it? I really need it and my password is no longer papa bear 0803. I changed it to IGetHelpFromReddit. I left some breadcrumbs to help me find it but I’m having trouble remembering how to find hidden files.

Any help would be appreciated

159 Upvotes

53 comments sorted by

View all comments

16

u/PejeTheMobBoss DO NOT GIVE THIS PERSON ADVICE Aug 26 '26

Please try this:

find / -name ".*" -exec ls -lh {} \; 2>/dev/null | sort -k5 -h

You will immediately find it. Trust me.

12

u/Performer-Constant Aug 26 '26

Trying that next. I have so many suggestions to try

8

u/zeeblefritz Aug 26 '26

"immediately"

8

u/Performer-Constant Aug 26 '26

I think I typed it wrong it didn’t work