Insider Tips:F ind and Locate

Lost and Found

Article from Issue 51/2005
Author(s):

Modern computers with their multiple Gigabyte hard disks store thousands of files. A lost file can cause a lot of work,and it can also pose a security risk. Fortunately,Linux has some versatile tools for finding those “lost files.”

If you are looking for files in Linux, the command line is your best option for quick and reliable results. GUIs such as KDE (Figure 1) typically lack comparable functionality, flexibility, and speed. The most important command for file searching is find. Without any flags specified, the tool will just find all the files below the current directory. If you want to search another directory, simply specify the directory name as the first argument. For example, find /home will output a list of the files and directories below /home.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • File Management

    We give you an overview of commands for moving, editing, compressing, and generally manipulating files.

  • Admin Workshop: Unix filesystem tree

    Unix systems organize files in a hierarchical filesystem tree. A system of naming conventions defined in the Filesystem Hierarchy Standard (FHS) helps admins find their way around.

  • Command Line: Data Flow

    Working in the shell has many benefits. Pipelines, redirectors, and chains of commands give users almost infinite options.

  • File Management

    We give you an overview of commands for moving, editing, compressing, and generally manipulating files.

  • Admin Workshop: User Management

    The steps for setting up new accounts in Linux are automated and often use GUI-based tools. Under the hood, a number of mechanisms give the new user an environment to match his or her needs. In this month’s Admin Workshop we discuss techniques for setting up accounts.

comments powered by Disqus