Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding hidden files in UNIX

Status
Not open for further replies.

starla0316

Programmer
Sep 8, 2003
15
SG
I know to find a file in a directory and subdirectories, i can use this command:
"find . -name filename"

Does this command look for hidden files as well?

Thanks very much.
 
I dont know of any such thing as hidden files in Unix. You may not be able to search thru some directories if your
permissions are not acceptable.
 
You need to do ls -al to display filenames that start with a . (unless you are root)
 
thanks to both your replies, what I meant was hidden files was files starting with . (dot).
thanks!
 
Does this command look for hidden files as well?

Yes, the [tt]find[/tt] command will search for the given name, no matter whether the name has a dot as prefix.
e.g.
[tt]find /home -name [red].[/red]profile -print [/tt]

Cheers.
 
i am currently using the mailx facility in UNIX to send files with attachment to an email address.

is there a way, if the email is undeliverable, to be sent to another email address?

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top