FAQ tagged as:

search file

I’ve just started to use Sun Solaris UNIX in our Labs. I’d like to know more about finding files from from the shell prompt. How do I find a file under UNIX?

{ 7 comments }

Q. How do I grep words from a text file under UNIX / Linux / BSD operating systems?

{ 0 comments }

How Do I find a file in Linux operating systems?

{ 0 comments }

How do I use grep command in Linux?

{ 67 comments }

Q. How do I search Linux box for a file?
A. You need to use find command, which search for files in a directory hierarchy (file system) and prints information about the files it found. It is run like as follows:
find {dir-name} -name {file-name}
Find command examples
Find out file called foo.txt:
# find / -name foo.txt
Find out [...]

{ 3 comments }

Q. How do I list or find all the files owned by a particular system user or group under Linux or UNIX operating system?
A. Only find command (search for files in a directory hierarchy) got options that allow you to search files owned by a specific user or groups.
Find file owned by group
Use following syntax:
find [...]

{ 0 comments }

nixCraft FAQ PDF Collection Now Available To All