Sponsored Content
Full Discussion: finding a file in Unix
Top Forums UNIX for Dummies Questions & Answers finding a file in Unix Post 27461 by handynas on Monday 2nd of September 2002 02:06:46 AM
Old 09-02-2002
Data finding a file in Unix

Hi Guys

I'm trying to look for a file in Unix but I do not know which path or directory it may be located in. Does anyone know the command to search and display the directory of a certain file? Thanks!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Finding files in Unix

I need help with the syntax to serach a directory and all the folders in that directorys for a single pdf file. I would than like to move that file to another folder. I don't know if this is possible with one command. Please Help. (2 Replies)
Discussion started by: johnlong
2 Replies

2. UNIX for Dummies Questions & Answers

finding directories in UNIX

I am accessing a UNIX server via FTP. I want to retieve a file in a directory. What is the UNIX command that I need to view and retrieve files from a directory? (1 Reply)
Discussion started by: yodaddy
1 Replies

3. UNIX for Dummies Questions & Answers

finding latest file in Unix

Hi, i want to search a file in the dir , if file exists for todays date print the message that file found or if file does not exist for todays date/ if file not found i want to display message saying that file not found. How to do this. Thx for your help. (2 Replies)
Discussion started by: nick12
2 Replies

4. UNIX for Dummies Questions & Answers

Finding Printer in unix

I am trying to find the list of printers(names) in the network from unix server. can anybody help me . I need the command. Thanks in advance. :) (2 Replies)
Discussion started by: vijisenthil
2 Replies

5. Shell Programming and Scripting

finding files in Unix

Hi 1)How do i find files in unix that end either in .pc or .h This does not return any output find . -name "*(pc|h)" 2)I have a file like this 001123456 .. ... i want the output to be like 001-123-456 any tricks in regular expression can do this in vi. regards Hrishy (7 Replies)
Discussion started by: xiamin
7 Replies

6. UNIX for Dummies Questions & Answers

Finding unix file system

Hi, I have here a hard drive from a computer that was damaged, and now the costumer needs the data on the hard drive, but doesn't have any other computer to read data. I don't really know what file system is on the disk. How can I find out what file system is on the disk so I can read the... (4 Replies)
Discussion started by: dmarques
4 Replies

7. UNIX for Dummies Questions & Answers

Finding out all users and their UNIX groups??

Is there a way to find out all users and the UNIX groups they belong to?? :) (3 Replies)
Discussion started by: Hangman2
3 Replies

8. Shell Programming and Scripting

Finding just unix user

I need to check for username that we are logged in.There are a lot of unix users and proceed according to that i.e find unix user if then echo "x" elif then echo "y' fi fi Now I dont know how to find and put user in if condition (8 Replies)
Discussion started by: sriki32
8 Replies

9. Homework & Coursework Questions

finding pattern without grep in unix

how can i find related pattern in a text file without using grep command in unix (2 Replies)
Discussion started by: feint
2 Replies

10. UNIX for Advanced & Expert Users

Finding a Particular Pattern In UNIX

Hi, Suppose I have a file with many lines as follows. Now I want to find the following questions from the file through shell script or commands. My name is XYZ. XYZ works for GHT and XYZ is part of PES. GHT is a good organization. XYZ knows swimming. XYZ is also very keen in reading. XYZ is a... (2 Replies)
Discussion started by: sktkpl
2 Replies
chdir(2)							System Calls Manual							  chdir(2)

NAME
chdir, fchdir - change working directory SYNOPSIS
DESCRIPTION
and cause a directory pointed to by path or fildes to become the current working directory, the starting point for path searches of path names not beginning with path points to the path name of a directory. fildes is an open file descriptor of a directory. For a directory to become the current working directory, a process must have execute (search) access to the directory. RETURN VALUE
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and is set to indicate the error. ERRORS
fails and the current working directory remains unchanged if one or more of the following are true: A component of the path name is not a directory. The named directory does not exist. Search permission is denied for any component of the path name. path points outside the allocated address space of the process. The reliable detection of this error is implemen- tation dependent. path is null. The length of the specified path name exceeds bytes, or the length of a component of the path name exceeds bytes while is in effect. Too many symbolic links were encountered in translating the path name. fails and the current working directory remains unchanged if one or more of the following are true: Search permission is denied for fildes. fildes is not an open file descriptor. The open file descriptor fildes does not refer to a directory. AUTHOR
and were developed by AT&T Bell Laboratories and HP. SEE ALSO
cd(1), chroot(2), privileges(5). STANDARDS CONFORMANCE
chdir(2)
All times are GMT -4. The time now is 06:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy