How to find a file on your hosting account
Using the search built into your file manager, or narrowing it down folder by folder in an FTP client, when you cannot remember where a file went.
Losing track of exactly where a file ended up is common, particularly on an account with several domains, an application like WordPress with its own folder structure, and old files from a previous migration all mixed together. There are two practical ways to track one down: search from your control panel, or browse and narrow it down manually over FTP.
Search in the file manager
The file manager in your control panel usually includes a search box, often at the top of the folder view, that searches file names across the account rather than one folder at a time. Type as much of the file name as you remember — a partial name is enough, since most searches match anywhere in the file name rather than only the start.
If you remember the type of file but not its name, searching for just the extension — .pdf, .jpg, .zip — narrows things down to a manageable list you can scan by eye, especially combined with sorting the results by date modified.
Browsing manually over FTP
If your control panel does not offer a search box, or the file is not turning up in it, connecting with an FTP client and browsing folder by folder is the fallback. A few habits make this faster:
- Start in public_html. The great majority of files that matter for a live website live inside it or one of its subfolders.
- Sort the listing by date modified. Most clients let you click the column header to sort by date, which is the quickest way to spot a file you uploaded recently without knowing its exact name.
- Check for hidden files. A file beginning with a dot, such as a configuration file, will not appear in a default listing until hidden files are shown — see what hidden files are and how to see them.
If you have shell access
On accounts with SSH access, the command line offers the fastest way to search by far, since it can check every folder on the account in a single command rather than clicking through them one at a time. Our guide to managing files from the command line covers the exact commands for searching by name and by content.
What if the file genuinely is not there?
If a thorough search turns up nothing, the most common explanations are that the upload silently failed partway through, it was uploaded to a different domain folder on the same account than the one you were expecting, or it was accidentally deleted in a later clean-up. Check whether your account has a recent backup you can browse without restoring anything, since most backup tools let you look inside an old backup before deciding whether to pull a file out of it.
Related reading
The handful of Linux commands that handle everyday file management jobs faster than an FTP client, once you have shell access set up.
How to connect to your hosting with FTPA plain walkthrough of connecting to your hosting account with an FTP client, from finding your login details to seeing your files on the server.
What are hidden files, and how do I see them?Files whose name starts with a dot, like .htaccess, are hidden by default in most listings until you turn on show hidden files.
FTP, FTPS and SFTP: which to useThree protocols with confusingly similar names, one of which sends your password in the open. Here is what actually separates them.