05-09-2002
Recursive directory listing without listing files
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR *
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
!hello ,
Any one can me how can i display files and directory in Pagewise.
how to change prompt in UNIX . (1 Reply)
Discussion started by: smdakram
1 Replies
2. UNIX for Dummies Questions & Answers
Hi ,
I want to list all files in the order of size . Just want to know which files occupies more size and which occupies less size .
Is it possible with ls command ? :)
Thanks,
Arun. (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
3. UNIX for Dummies Questions & Answers
i'm playing around with "ls" and "find" and am trying to get a print out of directories, with full path, (recursive) and their ownership.... without files or package contents (Mac .pkg or .mpkg files). I'd like it simply displayed without much/any extraneous info.
everything i've tried, and... (5 Replies)
Discussion started by: alternapop
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Edit: The title should really read listing files in a non-parent directory, sorry!
Im trying to get one of my Bash scripting assignments done for uni and now I'm stuck. This is probably going to be one of those kick yourself moments but, in my script I have a variable usrDir which... (2 Replies)
Discussion started by: Adzi
2 Replies
5. Shell Programming and Scripting
How can I list the files in a directory and just show the file size, date stamp, timestamp and file name..
I've been trying to ls -lrt the directory to a file and then use the cut command but I'm not having any luck with getting the proper results.. I thought i could use the -f switch and count... (4 Replies)
Discussion started by: Jazmania
4 Replies
6. Shell Programming and Scripting
for some reason my code does not give the right number of files. can omeone help me please? (2 Replies)
Discussion started by: andrew1400
2 Replies
7. Shell Programming and Scripting
hello every one,
i'm a novice in the field of Linux, so please help me out with this problem.
a text file with the following syntax is given:
file1
file2
file3
file4
file5
a script is to be written to list all d file names and tar the files with the filename... (3 Replies)
Discussion started by: Amruthesh C
3 Replies
8. UNIX for Dummies Questions & Answers
Hi Unix Gurus,
I need to list all files in a Unix Directory which either end with a
.pdf or .rtf and they should be case insensitive ie .Pdf , .pDF , .RtF etc are also possible.
How can i accomplish this with with a ls command ? If not then a find command. (6 Replies)
Discussion started by: pchegoor
6 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
A script that takes any number of directories as command line arguments and then lists the contents of each of... (3 Replies)
Discussion started by: Phaneendra G
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a main folder 'home'. Lets say there is a folder 'bin' under 'home'. I want to check the list of files under subdirectories present under the /bin directory created in the last 24 hours.
I am using the following find command under home/bin directory:
find . -mtime -1 -print
... (3 Replies)
Discussion started by: DJose
3 Replies
nisls(1) User Commands nisls(1)
NAME
nisls - list the contents of a NIS+ directory
SYNOPSIS
nisls [-dglLmMR] [name...]
DESCRIPTION
For each name that is a NIS+ directory, nisls lists the contents of the directory. For each name that is a NIS+ object other than a direc-
tory, nisls simply echos the name. If no name is specified, the first directory in the search path is listed. See nisdefaults(1).
OPTIONS
The following options are supported:
-d Treat NIS+ directories like other NIS+ objects, rather than listing their contents.
-g Display group owner instead of owner when listing in long format.
-l List in long format. This option displays additional information about the objects such as their type, creation time, owner, and
access rights.
The access rights are listed in the following order in long mode: nobody, owner, group owner, and world.
-L This option specifies that links are to be followed. If name actually points to a link, it is followed to the linked object.
-m Display modification time instead of creation time when listing in long format.
-M Master only. This specifies that information is to be returned from the master server of the named object. This guarantees that
the most up to date information is seen at the possible expense that the master server may be busy.
-R List directories recursively. This option will reiterate the list for each subdirectory found in the process of listing each name.
ENVIRONMENT VARIABLES
NIS_PATH If this variable is set, and the NIS+ name is not fully qualified, each directory specified will be searched until
the object is found. See nisdefaults(1).
EXIT STATUS
The following exit values are returned:
0 Successful operation.
1 Operation failed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
nisdefaults(1), nisgrpadm(1), nismatch(1), nistbladm(1), nis_objects(3NSL), attributes(5)
NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are
available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.10 10 Dec 2001 nisls(1)