01-30-2007
list contents of directory
I want to list the contents of a directory, but I do not want to use the ls, is there another way??
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, first post here be gentle. Very new to Unix. Using HP-UX 10.20
I CD into a remote directory on one machine
$ cd /net/remote hostname
yet when I do an ll in this directory none of the contents appear. It just is empty.
when I do the same command from another machine,
$ cd... (13 Replies)
Discussion started by: maddave
13 Replies
2. UNIX for Dummies Questions & Answers
I'm getting this return whenever I try to do anything on a directory
root# ls -al /directory
ls: .: Value too large to be stored in data type.
total 0
I can change directory down two levels but can not list contents of the root of this directory. ANy one seen this? (1 Reply)
Discussion started by: sallender
1 Replies
3. UNIX for Dummies Questions & Answers
Hey guys!
I'm so glad I found this site, I've had so many questions and have been left alone for roughly a year scanning man pages but It's just not quite cutting it for some things.
So, I often like to list directories when browsing around my local machine, a friend's machine, or my web... (6 Replies)
Discussion started by: bbilheimer
6 Replies
4. Solaris
Hi Guys,
I have an user's home directory set to /home/A
And A contains the following directories B & C
Is there some way in solaris by which i can prevent the directories B and C from getting deleted by the user but the contents of the directories B & C can be deleted ?
Also i have... (2 Replies)
Discussion started by: localhost
2 Replies
5. Shell Programming and Scripting
This should be an easy question for you gurus. :)
How can I create a regular expression to match all files in the current directory that have only one period in their file name, and also not contain the string "abc" before the period?
It would match:
foo.txt
foobar.log
It would not... (4 Replies)
Discussion started by: blondie53403
4 Replies
6. Shell Programming and Scripting
What's the best way to delete everything in a directory, but not the directory itself, without using shell wildcards? (9 Replies)
Discussion started by: pdc
9 Replies
7. Shell Programming and Scripting
Well I did a search and didn't anything for my specific case.
I got a directory with a bunch of text file. All of them have the following pattern on the filename "ABCD_<As of Date>.txt"
Example:
ABCD_20110301.txt
ABCD_20110302.txt
ABCD_20110303.txt
All I want to accomplish is a Korn... (3 Replies)
Discussion started by: Shark Tek
3 Replies
8. Shell Programming and Scripting
Hey guys,
need help with a script I'm trying to write.
Basically I need to compare the contents of a folder called "profiles"
with a list of files called "template".
when the file matches the contents of the folder it needs to set a variable called "checked" to "1"
Cookies to anyone... (4 Replies)
Discussion started by: Scriporium
4 Replies
9. UNIX for Dummies Questions & Answers
Hi
How to completely delete directory with all it contents
I try to use rmdir -r but it give error
Thanks
---------- Post updated at 03:10 AM ---------- Previous update was at 02:52 AM ----------
Hi all
I got the solution for my thread
i use mkdir with the option -p
Thanks (1 Reply)
Discussion started by: Tauatioti
1 Replies
10. Shell Programming and Scripting
Hi ,
I want to zip files present in the directories listed under a parent directory without zipping the directory itself
my parent directory path is
/informatica/DGDMN/PowerCenter1011/server/infa_shared/SrcFiles/OTE/Final_Directory
I have the below directories named as 1,2,3,4,5 listed... (9 Replies)
Discussion started by: paul1234
9 Replies
efi_ls(1M) efi_ls(1M)
NAME
efi_ls - list EFI file information or contents of an EFI directory
SYNOPSIS
devicefile] [path]
DESCRIPTION
lists file information or contents of an EFI directory.
The EFI file system is based on the FAT file system and used by the Itanium-based system BIOS to locate an HP-UX bootloader. See efi(4).
lists filenames, last modified dates, and file sizes. devicefile should be a device file for an EFI volume. Given a path, determines
whether the path is a file or a directory. For a file, lists the file by itself. For a directory, lists the contents of the directory.
If no path is given, lists the root directory for EFI volume. A path should be relative to the root of the EFI volume specified by device-
file, not to an HP-UX file system.
Options
recognizes the following option:
devicefile is the device special file of the EFI file system to be listed. Without the option, uses the device file specified in the
environment variable if it is defined. The option overrides the environment variable.
RETURN VALUE
returns exit code 0 on success. Otherwise it prints a diagnostic message and returns nonzero.
0 Successful completion.
>0 Error condition occurred.
EXAMPLES
List a root directory of device file which contains an EFI file system:
List a root directory of the persistent device file (see intro(7)), which contains an EFI file system:
List the contents of directory of device file which contains an EFI file system:
List information about the file of device file which contains an EFI file system:
AUTHOR
was developed by HP.
SEE ALSO
efi_cp(1M), efi_fsinit(1M), efi_mkdir(1M), efi_rmdir(1M), efi_rm(1M), efi(4), intro(7).
Itanium(R)-based Systems Only efi_ls(1M)