Top "Ls" questions

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

List files matching pattern when too many for bash globbing

I'd like to run the following: ls /path/to/files/pattern* and get /path/to/files/pattern1 /path/to/files/…

bash find ls
bash: /bin/ls: Argument list too long

I need to make a list of a large number of files (40,000 files) like below: ERR001268_1_100.fastq ERR001268_2_156.fastq ERR001753_2_78.…

list ls fastq
Sort files numerically in bash

I need to sort .flv files numerically and i was able to do it with the following command: ls *\.flv | …

linux bash sorting ls
What does the dot at the end of the permissions in the output of "ls -lah" mean?

I found some Linux files, and when I type ls -lah, it outputs this permissions format: ... drwxr-xr-x. 2 root root ... -rw-rw-r--. 1 …

ls file-attributes xattr
What are your LS_COLORS?

After installing a full version of Cygwin, I open up the MinTTY shell and I like the green on black. …

linux bash ls
Unix pipe into ls

I thought I understood *nix pipes until now... I have an executable called studio which symlinks to my install of …

linux unix pipe ls
Which linux system call is used by ls command in linux to display the folder/file name?

I wanted to know which system call is used in linux by the ls command to display the folder's (or …

c linux kernel system-calls ls
Print list of files in a directory to a text file (but not the text file itself) from terminal

I would like to print all the filenames of every file in a directory to a .txt file. Let's assume …

bash ls
How to use "ls *.c" command in java?

I am trying to print "*.C" files in java I use the below code public static void getFileList(){ try { String …

java linux command-line ls
Bash script - how to fill array?

Let's say I have this directory structure: DIRECTORY: .........a .........b .........c .........d What I want to do is: I want …

arrays bash ls