
fingerd | 159
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Search the system for files that were modified within the last two
days (good candidates for backing up):
find / -mtime -2 -print
Recursively grep for a pattern down a directory tree:
find /book -print | xargs grep '[Nn]utshell'
If the files kt1 and kt2 exist in the current directory, their names
can be printed with the command:
$ find . -name 'kt[0-9]'
./kt1
./kt2
Since the command prints these names with an initial ./ path, you
need to specify the ./ when using the -path option:
$ find . -path './kt[0-9]'
./kt1
./kt2
The -regex option uses a complete pathname, like -path, but treats
the following argument as a regular expression rather than a glob
pattern (although in this case the result is the same):
$ find . -regex './kt[0-9]'
./kt1
./kt2
finger
finger [options] users
Display data about one or more users, including information listed
in the files .plan and .project in each user’s home directory. You can
specify each user either as a login name (exact match) or as a first
or last name (display information on all matching names).
Networked environments recognize arguments of the form
user@host and @host.
Options
-l Force long format (default): everything included by the -s
option, as well as home directory, home phone, login shell,
mail status, .plan, .project, and .forward ...