Top "Ls" questions

A utility in Unix-like systems such as Linux used for listing files and directories.

Listing the content of a tar file or a directory only down to some level

I wonder how to list the content of a tar file only down to some level? I understand tar tvf …

bash tar ls depth
How to get a list of file names in different lines

I want to get a list of all the files in a directory, like with ls, so that each filename …

unix ls
List files not matching a pattern?

Here's how one might list all files matching a pattern in bash: ls *.jar How to list the complement of …

bash wildcard glob ls
Finding executable files using ls and grep

I have to write a script that finds all executable files in a directory. So I tried several ways to …

linux bash grep ls
How to filter the output of ls command to display only files created in February?

For Linux OS, How to filter the output of ls command in terminal to display only files created in February?

linux terminal ls superuser
How do I capture the output from the ls or find command to store all file names in an array?

Need to process files in current directory one at a time. I am looking for a way to take the …

arrays bash find capture ls
Find count of files matching a pattern in a directory in linux

I am new to linux. I have a directory in linux with approx 250,000 files I need to find count of …

regex linux bash find ls
Is there any way to find out changed file after some date in whole project code?

see i am working in one BIG project source code Now i want to know which files are modified after …

linux shell ls
How to recursively search for files with certain extensions?

I need to find all the .psd files on my Linux system (dedicated web hosting). I tried something like this: …

linux grep find ls
writing command line output to file

I am writing a script to clean up my desktop, moving files based on file type. The first step, it …

python macos file unix ls