How to Find a Folder Terminal

104 7

    Linux/Unix/Mac OS X

    • 1). Open the terminal. The procedure for doing this will depend on your version of Linux or Unix. In Mac OS X, you can open a terminal by clicking "Spotlight" and typing "Terminal."

    • 2). Type the following command:

      find . -type d -name "FOLDER_NAME"

      The first argument (.) tells find to begin in the current directory. The "-type d" tells find that it is looking only for directories, not files. Finally "-name" tells find to search for folders by name.

      Replace "FOLDER_NAME" with the name of the folder you would like to search for.

    • 3). Wait for the search to be run. Depending on the number of files and folders on the disk, this may take anywhere from a second to a few minutes.

    Windows XP/Vista/7

    • 1). Open the command prompt by clicking "Start," "Run," and typing "cmd."

    • 2). Type the following command:

      dir FOLDER_NAME /ad /s

      The "/ad" tells dir to list only directories (those with (a)ttribute "d"). The "/s" tells dir to include sub folders. Replace "FOLDER_NAME" with the name of the folder you would like to search for.

    • 3). Wait for the search to be run. Depending on the size of the drive, this may take anywhere from a few seconds to a few minutes.

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.