- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: list of all files in Unix
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
Discussions
Discussions
Forums
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
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
тАО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
- Report Inappropriate Content
тАО08-17-2010 10:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- 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
- 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
- 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, ...