05-02-2002
listing executible files
List all executable files in all directories in the PATH environment variable (i.e. list all programs that can be executed).
If there are no arguments, list all programs that can be executed.
List them 1 per line, giving the full pathname of the file. Output nothing else.
then sort the list.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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 * (4 Replies)
Discussion started by: psingh
4 Replies
2. Linux
How can I list all files in a directory and its subdirectories that have been created or changed since the system was booted. I was trying to acomplish this with "ls" and "find" commands but could not get anything usefull. Maybe some one can provide me a hint.
Thank you for your time. (1 Reply)
Discussion started by: Vitalka
1 Replies
3. UNIX for Advanced & Expert Users
I have a directory named Project.I have a control file which contains valid list of files.I would like list the files from directory Project which contains files other than listed in the control file.
Sample control file:
TEST
SEND
SFFFILE
CONTL
The directory contains followign... (15 Replies)
Discussion started by: ukatru
15 Replies
4. UNIX for Dummies Questions & Answers
Hi there!
I would like to list all the files from a directory and its subdirectories. For example:
DIRECTORY
|- SUBDIR1
||- sub1.txt
||- sub2.txt
|- SUBDIR2
||- sub3.txt
|- root1.txt
|- root2.txt
I would like to create a fulllist.txt file which contains the list of these files (with... (2 Replies)
Discussion started by: bobix
2 Replies
5. Shell Programming and Scripting
Hi,
I am new to perl:
I need to write perl script to list all the files present in directory and mail should be come to my inbox with all the files present in that directory.
advanced thanks for valuable inputs.
Thanks
Prakash GR (1 Reply)
Discussion started by: prakash.gr
1 Replies
6. Shell Programming and Scripting
Hi,
I have to list the files in a particular folder which are having file names like below:
1000_aa.csv, 1000_ab.csv, 1000_az.csv,1000_ba.csv,1000_bb.csv,1000_ca.csv,1000_cb.csv.
How can i get the list?
Thanks,
Selva (2 Replies)
Discussion started by: bharathappriyan
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I came up with this question in one of the exercises .
Use find to produce a long ls listing of all files in /usr/bin that are
more than 750Kb long. You’ll need to use a form like
find ..... -exec ls -l {} \;
The semicolon must be escaped, but not the .
I tried using below code ,... (1 Reply)
Discussion started by: krthknaidu
1 Replies
8. SuSE
Hi,
This may be silly for some of you guys, but please guide me,
I have the followin fies in my directory,
root@unix:/onlineredo/XTT77 : ls -l
total 4129992
-rw------- 1 XTT77 XTT77 10493952 Jul 28 2010 S0106839.LOG
-rw------- 1 XTT77 XTT77 10493952 Jul 28 2010 S0106840.LOG... (3 Replies)
Discussion started by: suren1829
3 Replies
9. Shell Programming and Scripting
Hi Guys,
I need to list out the files which are not ending with particular extension in ksh but the extension can come within the file name. Please help me..
Thanks (2 Replies)
Discussion started by: jesu
2 Replies
10. Shell Programming and Scripting
Hi,
I want to display the file names and the record count for the files in the 2nd column for the files created today.
i have written the below command which is listing the file names. but while piping the above command to the wc -l command
its not working for me.
ls -l... (5 Replies)
Discussion started by: Showdown
5 Replies
LEARN ABOUT OPENSOLARIS
lsattr
LSATTR(1) General Commands Manual LSATTR(1)
NAME
lsattr - list file attributes on a Linux second extended file system
SYNOPSIS
lsattr [ -RVadlpv ] [ files... ]
DESCRIPTION
lsattr lists the file attributes on a second extended file system. See chattr(1) for a description of the attributes and what they mean.
OPTIONS
-R Recursively list attributes of directories and their contents.
-V Display the program version.
-a List all files in directories, including files that start with `.'.
-d List directories like other files, rather than listing their contents.
-l Print the options using long names instead of single character abbreviations.
-p List the file's project number.
-v List the file's version/generation number.
AUTHOR
lsattr was written by Remy Card <Remy.Card@linux.org>. It is currently being maintained by Theodore Ts'o <tytso@alum.mit.edu>.
BUGS
There are none :-).
AVAILABILITY
lsattr is part of the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net.
SEE ALSO
chattr(1)
E2fsprogs version 1.44.1 March 2018 LSATTR(1)