Top "Ls" questions

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

Using ls, how to list files without printing the extension (the part after the dot)?

Suppose I have a directory with some files: $ ls a.c b.c e.c k.cpp s.java How …

bash ls
Delete all files except the newest 3 in bash script

Question: How do you delete all files in a directory except the newest 3? Finding the newest 3 files is simple: ls …

linux bash ls purge
List all files that do not match pattern using ls

Possible Duplicate: How can I use inverse or negative wildcards when pattern matching in a unix/linux shell? I've read …

shell command-line sed terminal ls
How to print time_t in a specific format?

ls command prints time in this format: Aug 23 06:07 How can I convert time received from stat()'s mtime() into this …

c linux time timezone ls
How to display column headers for 'ls -l' command in unix/linux?

I want to display all the column headers when I type ls -l command in bash shell in unix/linux …

linux bash unix formatting ls
How do you determine what bash ls colours mean?

When you perform ls in a bash shell, sometimes there are colours to indicate different resource types, and you can …

linux shell ls ls-colors
How to `ls` only one level deep?

I have lots subdirectories containing data, and I want a short list of which jobs (subdirectories) I have. I'm not …

bash ls
Windows PowerShell equivalent of Linux `ls -l`

Is there some way in PowerShell to emulate the behavior of the Linux ls -l command? I would like to …

powershell ls
UNIX 'ls' command exclude wildcard

I have files a1 a2 a3 b1 b2 b3 and I need to exclude a2 and b2 from the list …

unix ls
Get a list of files with full path

I would like to get a list of all the files in a directory hierarchy (like I would with ls …

unix ls