- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: list of all files in Unix
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
08-17-2010 09:27 AM
08-17-2010 09:27 AM
Thx,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-17-2010 10:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-17-2010 10:21 AM
08-17-2010 10:21 AM
Re: list of all files in Unix
would probably work more closely to what you desired.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-17-2010 10:35 AM
08-17-2010 10:35 AM
Re: list of all files in Unix
As per Pete,
#ls -lR *.4ge
it will give you probabaly what you want! but you execute this command on "/" directory.
Regards
Deeos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-17-2010 10:54 AM
08-17-2010 10:54 AM
Re: list of all files in Unix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-17-2010 12:50 PM
08-17-2010 12:50 PM
Re: list of all files in Unix
> the system [...]
What's a "4ge file"?
> ls -lR *.4ge
>
> would probably work [...]
Really? Have you tried that? Does it see
any "*.4ge" files in a subdirectory? Around
here, for example, looking for "*.c":
dyi # ls -lR
total 16
-rw-r--r-- 1 root sys 476 Feb 15 2010 junk.c
drwxr-xr-x 2 root sys 96 Aug 16 21:39 subdir
./subdir:
total 16
-rw-r--r-- 1 root sys 476 Feb 15 2010 junk2.c
But:
dyi # ls -lR *.c
-rw-r--r-- 1 root sys 476 Feb 15 2010 junk.c
dyi #
Perhaps more useful:
dyi # find . -name '*.c' -exec ls -l {} \;
-rw-r--r-- 1 root sys 476 Feb 15 2010 ./junk.c
-rw-r--r-- 1 root sys 476 Feb 15 2010 ./subdir/junk2.c
Note that here "*.c" is quoted to keep the
shell from expanding the wildcard file name.
Of course, on an OS with a different design,
this sort of thing can be easier:
alp $ dire /date /size [.test...]*.txt
Directory ALP$DKA0:[SMS.TEST]
FRED.TXT;1 1596 22-DEC-2007 00:09:21.02
Total of 1 file, 1596 blocks.
Directory ALP$DKA0:[SMS.TEST.B]
BB.TXT;1 1 1-MAY-2008 14:57:25.77
Total of 1 file, 1 block.
Directory ALP$DKA0:[SMS.TEST.C]
CC.TXT;1 1 1-MAY-2008 14:57:33.66
Total of 1 file, 1 block.
Grand total of 3 directories, 3 files, 1598 blocks.
But that's VMS DCL, not a UNIX shell.
> Thank you all
But if you're happy, ...
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP