문제

I remember reading where it is bad security practice to edit files directly on the server because it may create hidden temporary files. Is it possible to search for these files? I was thinking of find / -name .*, but that returns "paths must precede expression: .." and do not know if that will include all files possibly created by elvis or nano.

도움이 되었습니까?

해결책

Put the name in quotes:

find / -name '.*'

otherwise the shell interprets it and runs something like:

find / -name . ..

다른 팁

I've seen several versions of that "backup" file name pattern but the most common one has always contained a ~. If you're just looking for ~ then something like this would work...

find / -name '*~*'

If you want to find hidden files then...

find / -name '.*'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top