Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lsattr(1) [v7 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)

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)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

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. (2 Replies)
Discussion started by: phillip
2 Replies

2. UNIX for Dummies Questions & Answers

Another easy question

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)
Discussion started by: catbad
3 Replies

3. Shell Programming and Scripting

List specific files from directories

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)
Discussion started by: Filippo
4 Replies

4. UNIX for Dummies Questions & Answers

List directories

Is there any way to list only directories in particular file system? Malay (3 Replies)
Discussion started by: malaymaru
3 Replies

5. Shell Programming and Scripting

listing all code in all files in all directories

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)
Discussion started by: asadlone
4 Replies

6. UNIX for Dummies Questions & Answers

List directories and files

I want to count how many levels there are under a directory. I repeat level. Also how i count only all the files in a directoy ( all files of all directories of all leves down!) and how can i count only all the directories under a directory (including subdirectories, all levels down) ... (2 Replies)
Discussion started by: psalas
2 Replies

7. Shell Programming and Scripting

listing directories alone

ls lists all files and sub directories in the current directory but how to list only the sub directories and not the files? (2 Replies)
Discussion started by: bbala
2 Replies

8. UNIX for Dummies Questions & Answers

List JUST files

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)
Discussion started by: msb65
4 Replies

9. UNIX for Dummies Questions & Answers

(really basic) List directories only?

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)
Discussion started by: CRGreathouse
4 Replies

10. Shell Programming and Scripting

List of files

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)
Discussion started by: JerryHone
2 Replies

11. AIX

What is maxreqs parameter in AIX?

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)
Discussion started by: thepurple
9 Replies

12. UNIX for Dummies Questions & Answers

My join command only joins the first few lines!!

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)
Discussion started by: qnc
3 Replies

13. UNIX for Dummies Questions & Answers

List directories with given string, sort by creation date

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)
Discussion started by: Siva SQL
3 Replies

14. UNIX for Dummies Questions & Answers

List biggest files (Not Directories)

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)
Discussion started by: tonydaniels1980
8 Replies

15. Cybersecurity

Alternative for chattr

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)
Discussion started by: nimafire
9 Replies