Đom' Đóm Nhỏ'
New member
How do I list all text files in Linux?
Answer
Here are some additional options that I find useful and interesting:
Answer
Here are some additional options that I find useful and interesting:
- List only the . txt files in the directory: ls *. txt.
- List by file size: ls -s.
- Sort by time and date: ls -d.
- Sort by extension: ls -X.
- Sort by file size: ls -S.
- Long format with file size: ls -ls.
- List only the . txt files in a directory: ls *. txt.