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)
Hello Again,
Ok guys. Thanks again for your help last time but I am in need of your experience again. I wrote this script:
#!/bin/sh
# List either files or directories in individual accounts
# using 1, 2 or 3 with invalid
case $1 in
echo select 1 to see the FILES in your... (3 Replies)
Hi all,
I need to compare the contents of 2 directories where the file contents are similar and take out the filenames whose contents does not exist within the 2 directories.
Directory1
1
2
3
4
Directory2
54
55
56
57
Does anyone has a script which can do this?
At the end of... (6 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)
Hi all,
can any one help me out in this:::
basically i need to list all the contents in all files in all directories (starting from root and then onwards)...i will get the session saved in a file (just a secure CRT, etc)
seems to be a simple one.
if anyone can come forward, its really... (4 Replies)
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'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)
Connecting network adapter from 100MB switchport to a 1GB switchport.
Trying to verify actual switchport speed.
While connected to 100MB switchport
lsattr -R -l ent0 -a media_speed shows:
10_Half_Duplex
10_Full_Duplex
100_Half_Duplex
100_Full_Duplex
1000_Full_Duplex
Auto_Negotiation
... (2 Replies)
Hi new to all this so bear with me.
I have two lists. List A has the old names and some values for each of the names
e.g.
List A:
snpa 3.2
snpb -2
snpc 0
List B has old names and new names equivalent:
snpa rs1234
snpb rs2345
snpc re3456
Now I have over 50,000 lines in each and... (3 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, can you please help me writing a command that would output the biggest files on my system from biggest to smallest? I want this to print only the files, not the directories.
I have tried
du -a ~ | sort -nr | head -10
However, this also prints out all the directories - which I do... (8 Replies)
Hi,
I have a requirement to compare files in different directories with different names. The files have a datestamp in their name (It might not be a sequential datetimestamp).
This is for Redhat Linux. I have more than 5 directories and more than 10 file in each directory to be compared.
... (4 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)