- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to search for .tar and .pcb files on HPUX11?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 02:19 AM - last edited on 06-23-2023 05:45 AM by support_s
06-23-2023 02:19 AM - last edited on 06-23-2023 05:45 AM by support_s
how to search for .tar and .pcb files on HPUX11?
Hi,
I dont come frrom a Unix background and would like some help in what commands I should use to locate all .tar and .pcb on a HPUX11 machine please
thanks
- Tags:
- Operating System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 04:58 AM - edited 06-23-2023 05:16 AM
06-23-2023 04:58 AM - edited 06-23-2023 05:16 AM
Re: how to search for .tar and .pcb files on HPUX11?
Hi Amiko ,
If you are looking for commands to find all .tar and .pcb files use the following commands.
1. Command to find all .tar files
find / -name "*.tar"
This will search the entire file system starting from the root directory("/") and list all files with the .tar extension.
2. Command to find all .pcb files
find / -name "*.pcb"
This will search the entire file system starting from the root directory("/") and list all files with the .pcb extension.
As searching from root directory can give you all the results it would be time-consuming, so you might want to narrow down the search to specific directories if you have an idea of where the files might be located by specifying directory name in the place of "/" in this example.
Regards,
SUSH_S
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 10:55 AM
06-23-2023 10:55 AM
Re: how to search for .tar and .pcb files on HPUX11?
> [...] on a HPUX11 machine [...]
Vague.
uname -a
> This will search the entire file system starting from the root
> directory("/") [...]
In my experience, specifying "/" as a path for "find" seldom ends
well. Too many things in "/dev" which can't be read in finite time, for
example.
Also, if NFS (or some other file-sharing software) is in use, you
might end up trying to search a significant fraction of the known
universe.
I might use a command like "mount" or "df" to try to identify the
local file systems, and then specify one or more of those instead of
"/". And then use the "-xdev" option to avoid straying into dangerous
territory.
> I don[']t come frrom a Unix background [...]
man find
You might discover operators which would let you do more a more
complex search with one command. For example:
find /opt /usr -xdev -name '*.pcb' -o -name '*.tar'