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)
Check Out this Related Man Page
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)
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. (2 Replies)
Hello,
I would like to list the files from all directories that has been modified more than 1 month ago, and whose name is like '*risk*log'.
I think a script like this should work :
ls -R | find -name '*risk*.log' -mtime 30 -type f
But it tells me "no file found" though I can see some.
... (4 Replies)
There is problem in my system whenever i run a command lsattr -El mem0 it shows 3gb memory and when i run lscfg -vp | grep Size it shows 8 modules of 512 mb. it means it shows 4 gb how is it possible. (1 Reply)
Hi,
I am using bash. I have not been able to find a way to list JUST the files (not sub-directories, hidden files, etc) within a directory. Is there a way to do this?
The reason I ask is that I am trying to count the number of files within a directory. I believe ls -1 | wc -l is almost what... (4 Replies)
I have a list of directories like this
a
a/b
a/c
a/d
a/d/e
a/d/f
a/d/g
a/d/g/h
a/i
I would like to convert this list into another list, nested like this
a{b{} c{} d{e{} f{} g{h{}}} i{}}
Here is a pseudo algorithm for this
Add a: (1 Reply)
I'm looking for a Linux equivalent to the DOS
dir /ad
that lists the directories ("folders" in Windows) in the current directory.
I looked at the ls manpage, which says
-d, --directory list directory entries instead of contents,
and do not... (4 Replies)
Now this should be easy, but I want a way of listing all of the plain files in a directory, without any directories listed and without recursing into the directories.
The only thing that we've come up with is
ls -p | grep -v /
Any other ideas? (2 Replies)
Hello gentlemen,
I am running Aix 5.3 and Oracle 9.1;
What is the parameter "maxreqs" in Aix?
# lsattr -E -l aio0 -a maxreqs
maxreqs 4096 Maximum number of REQUESTS True;
Last night our database was down. Someone was telling it was due to maxreqs was full.
Question to gentlmen... (9 Replies)
Hi,
how do you interprete the following :
t#/usr/sbin/lsattr -E -l sys0 -a realmem
realmem 31457280 Amount of usable physical memory in Kbytes False
What does False mean here ?
Thanks (2 Replies)
Hi,
I have a large number of files which are named as follows.
VF_50, VF_100, VF_150, VF_250, VF_300, VF_350, VF_400, VF_450, VF_500.
When I do an 'ls' it arranges the files in the following way
VF_100, VF_150, VF_250, VF_300, VF_350, VF_400, VF_450, VF_50, VF_500.
Is there a way to... (2 Replies)
It is for HP-Unix B.11.31.
Requirement:
1. List the directories, which directories name has given particular string.
Example: Directories with name "Build"
2. On the output of 1. list the directories by creation date as sort order.
I tried with; find . -type d -name "Build*"
... (3 Replies)
Hello
im working on "remover script" which try to remove "kthrotlds MINER VIRUS"
in next part of my remover script i have to work on files that it destroyed,
virus use chattr to open and lock files and replace them with malicious content
im looking for a solution to remove chattr and disable... (9 Replies)