# ls

ls is a command-line program that lists directory contents and provides information about files.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## ls Command: Sort Directory Listings by Last Modified Date in Linux

DevFeed: [ls Command: Sort Directory Listings by Last Modified Date in Linux](<https://devfeed.tech/articles/ls-command-sort-directory-listings-by-last-modified-date-in-linux-118655.md>)

Original publisher: [Read original article](<https://www.tecmint.com/ls-sort-files-modification-date-time/>)

Author: Aaron Kili

Published: 2026-11-05T06:58:47Z

Content type: tutorial

Language: en

Sources: [Tecmint: Linux Howtos, Tutorials & Guides](<https://devfeed.tech/sources/tecmint-linux-howtos-tutorials-guides.md>)

Topics: [ls](<https://devfeed.tech/topics/ls.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Bash](<https://devfeed.tech/topics/bash.md>)

Tags: [almalinux](<https://devfeed.tech/tags/almalinux.md>), [archive](<https://devfeed.tech/tags/archive.md>), [backup](<https://devfeed.tech/tags/backup.md>), [backups](<https://devfeed.tech/tags/backups.md>), [bash](<https://devfeed.tech/tags/bash.md>), [btrfs](<https://devfeed.tech/tags/btrfs.md>), [chmod](<https://devfeed.tech/tags/chmod.md>), [command](<https://devfeed.tech/tags/command.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [commands](<https://devfeed.tech/tags/commands.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [coreutils](<https://devfeed.tech/tags/coreutils.md>), [directories](<https://devfeed.tech/tags/directories.md>), [directory](<https://devfeed.tech/tags/directory.md>), [disk-space](<https://devfeed.tech/tags/disk-space.md>), [file](<https://devfeed.tech/tags/file.md>), [files](<https://devfeed.tech/tags/files.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-commands](<https://devfeed.tech/tags/linux-commands.md>), [linux-commands-linux-ls-command](<https://devfeed.tech/tags/linux-commands-linux-ls-command.md>), [linux-ls-command](<https://devfeed.tech/tags/linux-ls-command.md>), [list-files-by-modification-time](<https://devfeed.tech/tags/list-files-by-modification-time.md>), [ls](<https://devfeed.tech/tags/ls.md>), [ls-ltr](<https://devfeed.tech/tags/ls-ltr.md>), [ls-output-sort-by-date-created](<https://devfeed.tech/tags/ls-output-sort-by-date-created.md>), [ls-sort-by-time-modified](<https://devfeed.tech/tags/ls-sort-by-time-modified.md>), [ls-sort-by-time-reverse](<https://devfeed.tech/tags/ls-sort-by-time-reverse.md>), [sort](<https://devfeed.tech/tags/sort.md>), [sort-ls-output-by-date](<https://devfeed.tech/tags/sort-ls-output-by-date.md>)

### AI overview

Use `ls -lt` to list entries newest first by modification time and add `-r` (`ls -ltr`) to put the newest last. The article explains that `-u` sorts by access time and `-c` by metadata change time; `--time=birth` uses creation time when the filesystem and kernel report it. Access-time ordering is approximate on systems using `relatime`, and `ctime` is not creation time. `--full-time` prints precise timestamps. For newest files across an entire directory tree, the article uses `find` with `-printf '%T+ %p\n'`, then `sort -r`; it notes that `ls` output is unsafe to parse when filenames are uncontrolled. It also mentions differing output details between Ubuntu's uutils `ls` and GNU coreutils, and that copy tools may preserve modification times.

### Source excerpt

The post ls Command: Sort Directory Listings by Last Modified Date in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides . A plain ls -l lists files alphabetically, so the file that changed five minutes ago gets lost in a long The post ls Command: Sort Directory Listings by Last Modified Date in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

## Zsh: uncover hidden files in globs with (D)

DevFeed: [Zsh: uncover hidden files in globs with (D)](<https://devfeed.tech/articles/zsh-uncover-hidden-files-in-globs-with-d-107281.md>)

Original publisher: [Read original article](<https://adamj.eu/tech/2026/10/29/zsh-d-glob-qualifier/>)

Author: Adam Johnson

Published: 2026-10-29T00:00:00Z

Content type: article

Language: en

Sources: [Adam Johnson](<https://devfeed.tech/sources/adam-johnson.md>)

Topics: [Zsh](<https://devfeed.tech/topics/zsh.md>), [dotfiles](<https://devfeed.tech/topics/dotfiles.md>), [ls](<https://devfeed.tech/topics/ls.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [directories](<https://devfeed.tech/tags/directories.md>), [files](<https://devfeed.tech/tags/files.md>), [hidden](<https://devfeed.tech/tags/hidden.md>), [include](<https://devfeed.tech/tags/include.md>), [zsh](<https://devfeed.tech/tags/zsh.md>)

### AI overview

By default, Zsh globs skip names beginning with a dot. Add the `(D)` qualifier to include hidden files and directories; it does not match the special `.` or `..` entries. This matters with recursive `**/` globs: `**/*.yml` can miss YAML files under `.github`, while `**/*.yml(D)` includes them. Leaving `(D)` off can also be useful: `**/*.py` skips a hidden virtual-environment directory such as `.venv`, whereas `**/*.py(D)` includes its files.

### Source excerpt

By default, Zsh globs skip hidden files and directories, meaning those with names starting with a dot. For example, in a project directory, * misses all the configuration files and directories: $ ls -d * README.rst generate_pigeon.py To include them, add the (D) glob qualifier, which stands for "dot files": $ ls ...

## GNU Coreutils 9.12 Released With Performance Optimizations, New uname Option

DevFeed: [GNU Coreutils 9.12 Released With Performance Optimizations, New uname Option](<https://devfeed.tech/articles/gnu-coreutils-9-12-released-with-performance-optimizations-new-uname-option-17444.md>)

Original publisher: [Read original article](<https://www.phoronix.com/news/GNU-Coreutils-9.12>)

Author: Michael Larabel

Published: 2026-09-14T17:45:05Z

Content type: news

Language: en

Sources: [Phoronix](<https://devfeed.tech/sources/phoronix.md>)

Topics: [systems](<https://devfeed.tech/topics/systems.md>), [Filesystems](<https://devfeed.tech/topics/filesystems.md>), [Optimization](<https://devfeed.tech/topics/optimization.md>), [bug](<https://devfeed.tech/topics/bug.md>), [chmod](<https://devfeed.tech/topics/chmod.md>), [ls](<https://devfeed.tech/topics/ls.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [chmod](<https://devfeed.tech/tags/chmod.md>), [core](<https://devfeed.tech/tags/core.md>), [desktop-linux](<https://devfeed.tech/tags/desktop-linux.md>), [linux-benchmarking](<https://devfeed.tech/tags/linux-benchmarking.md>), [linux-hardware-benchmarks](<https://devfeed.tech/tags/linux-hardware-benchmarks.md>), [linux-hardware-reviews](<https://devfeed.tech/tags/linux-hardware-reviews.md>), [linux-how-to](<https://devfeed.tech/tags/linux-how-to.md>), [linux-performance](<https://devfeed.tech/tags/linux-performance.md>), [linux-server-benchmarks](<https://devfeed.tech/tags/linux-server-benchmarks.md>), [ls](<https://devfeed.tech/tags/ls.md>), [open-source-graphics](<https://devfeed.tech/tags/open-source-graphics.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [phoronix](<https://devfeed.tech/tags/phoronix.md>), [phoronix-test-suite](<https://devfeed.tech/tags/phoronix-test-suite.md>), [release](<https://devfeed.tech/tags/release.md>), [systems](<https://devfeed.tech/tags/systems.md>), [ubuntu-benchmarks](<https://devfeed.tech/tags/ubuntu-benchmarks.md>), [ubuntu-hardware](<https://devfeed.tech/tags/ubuntu-hardware.md>)

### AI overview

GNU Coreutils 9.12 fixes recursive traversal failures when files are removed concurrently, adds FailFS and NULLFS support to stat and tail, and introduces new uname labeling options. It also improves performance in cut, uniq, and sort, adds a copy fallback for cp, install, and mv, and includes additional bug fixes and warnings.

### Source excerpt

GNU Coreutils 9.12 released today with a mix of fixes, some new options, and various performance improvements to these widely-used set of core system utilities...

## Manage Vercel Flags targeting rules from the CLI

DevFeed: [Manage Vercel Flags targeting rules from the CLI](<https://devfeed.tech/articles/manage-vercel-flags-targeting-rules-from-the-cli-1007.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/manage-vercel-flags-targeting-rules-from-the-cli>)

Author: Chris Widmaier

Published: 2026-07-13T00:00:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>), [JSON](<https://devfeed.tech/topics/json.md>), [ls](<https://devfeed.tech/topics/ls.md>), [Script](<https://devfeed.tech/topics/script.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [checkout](<https://devfeed.tech/tags/checkout.md>), [cli](<https://devfeed.tech/tags/cli.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [json](<https://devfeed.tech/tags/json.md>), [ls](<https://devfeed.tech/tags/ls.md>), [production](<https://devfeed.tech/tags/production.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [update](<https://devfeed.tech/tags/update.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

### AI overview

Vercel CLI now supports managing Vercel Flags targeting rules from the terminal. Users and agents can add, reorder, and inspect rules, including entity or segment conditions and single-variant, weighted, or progressive rollout outcomes. The CLI also supports JSON output and handles configuration inheritance when rules are changed in an inheriting environment.

### Source excerpt

You can now manage targeting rules for Vercel Flags through the Vercel CLI. With the vercel flags rules command, you and your agents can add new rules, move existing ones, and inspect the current ordering without leaving your terminal. Rules you create from the CLI use the same model as the dashboard. Conditions can target entities or reusable segments, outcomes can serve a single variant, a weighted split, or a progressive rollout, and rules evaluate top to bottom. For scripts and agents, vercel flags rules ls --json prints the full rule set. An environment can inherit its flag configuration from another environment. When you add or update a rule in an inheriting environment, the CLI switches that environment to its own configuration, so your rule applies there without changing the environment it inherited from. Update to the latest Vercel CLI version and run vercel flags rules to get started. Learn more in the Vercel Flags CLI documentation. Read more

## Peeking at command-line ANSI escape sequences

DevFeed: [Peeking at command-line ANSI escape sequences](<https://devfeed.tech/articles/peeking-at-command-line-ansi-escape-sequences-20951.md>)

Original publisher: [Read original article](<https://jakewharton.com/peeking-at-colorful-command-line-output/>)

Published: 2020-10-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jake Wharton](<https://devfeed.tech/sources/jake-wharton.md>)

Topics: [Command-line interface](<https://devfeed.tech/topics/cli.md>), [ls](<https://devfeed.tech/topics/ls.md>), [Docker Compose](<https://devfeed.tech/topics/docker-compose.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>)

Tags: [command-line](<https://devfeed.tech/tags/command-line.md>), [commands](<https://devfeed.tech/tags/commands.md>), [compare](<https://devfeed.tech/tags/compare.md>), [display](<https://devfeed.tech/tags/display.md>), [examples](<https://devfeed.tech/tags/examples.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [ls](<https://devfeed.tech/tags/ls.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [terminal](<https://devfeed.tech/tags/terminal.md>)

### AI overview

This tutorial explains how command-line programs use ANSI escape sequences to add color, bold formatting, cursor movement, and dynamic output. It demonstrates these effects with ls and docker-compose, then shows how to inspect escape sequences by replacing the escape character before piping output.

### Source excerpt

Command-line programs use color to convey additional information and to look pretty. For example, compare the output of ls with and without the --color flag: The color helps convey information in this compact output that would otherwise only be available in more verbose forms (-l). In addition to color, a program may update existing output. You can see this when updating images with docker-compose: Both of these effects are created using something called ANSI escape sequences. ANSI escape crash course Reading the Wikipedia entry on ANSI escapes is a great starting point for learning how to recreate these examples. Each escape sequence starts with a 0x1B (escape) character followed usually by [ and then one or more commands using letters or numbers. The ls example above uses green and blue text as well as making the colored entries bold which we can recreate. echo -e "\e[1;32mbinary\e[0m file \e[1;34mfolder\e[0m" Let's break down the interesting parts: echo -e - Adding the -e flag to echo instructs it to enable backslash escapes. \e[1;32m - \e is a backslash escape for the 0x1B escape character and the [ starts a sequence. 1 enables bold and 32 is the color green. Numbers are separated by ; and terminated by m. Anything that follows will now be displayed as bold and green. \e[0m - Once again \e[ starts a sequence and m terminates it. The 0 clears all previous formatting. \e[1;34m - Nearly identical to the sequence from before except it uses 34 for a blue color. The docker-compose example moves the cursor to rewrite previous output which we can begin to recreate. echo "Pulling zulu-jdk-15 ... downloading" && \ echo "Pulling zulu-jdk-11 ... downloading" && \ echo "Pulling zulu-jdk-8 ... downloading" && \ sleep 2 && \ echo -e "\e[2A\e[24C\e[32mdone\e[0m\e[K" && \ sleep 1 && \ echo -e "\e[24C\e[32mdone\e[0m\e[K" && \ sleep 1 && \ echo -e "\e[3A\e[24C\e[32mdone\e[0m\e[K\n\n" Let's break down the interesting parts for this example: \e[2A - Each echo emits a trailing newlin

## My solutions to cmdchallenge

DevFeed: [My solutions to cmdchallenge](<https://devfeed.tech/articles/my-solutions-to-cmdchallenge-21529.md>)

Original publisher: [Read original article](<http://lifepluslinux.blogspot.com/2017/01/my-solutions-to-cmdchallenge.html>)

Author: Suresh Alse (noreply@blogger.com)

Published: 2017-01-28T16:36:00Z

Content type: tutorial

Language: en

Sources: [Life Plus Linux](<https://devfeed.tech/sources/life-plus-linux.md>)

Topics: [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [Script](<https://devfeed.tech/topics/script.md>), [ls](<https://devfeed.tech/topics/ls.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [challenges](<https://devfeed.tech/tags/challenges.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [linux](<https://devfeed.tech/tags/linux.md>), [solutions](<https://devfeed.tech/tags/solutions.md>)

### AI overview

The excerpt gives one-line Bash solutions for common file and text tasks: `pwd` prints the working directory, `ls -1` lists files, `tail -5` shows the last five log lines, and `grep` searches for matching text. It uses `find` with `xargs grep` to search matching log files recursively, extract leading IP-like fields, and delete a challenge directory's contents. The solutions illustrate basic shell utilities and pipelines; the supplied excerpt ends partway through the challenge list.

### Source excerpt

I recently stumbled upon https://cmdchallenge.com which sort of tests your command line knowledge and comfortability. You have to basically solve all the challenges in a single line of bash. It is pretty simple and fun. You should give it a try before checking the solutions. hello_world/ # Print "hello world". # Hint: There are many ways to print text on # the command line, one way is with the 'echo' # command. # # Try it below and good luck! # Solution: echo "hello world" current_working_directory/ # Print the current working directory. # Solution: pwd list_files/ # List all of the files in the current # directory, one file per line. # Solution: ls -1 last_lines/ # Print the last 5 lines of "access.log". # Solution: tail -5 access.log find_string_in_a_file/ # There is a file named "access.log" in the # current working directory. Print all lines # in this file that contains the string "GET". # Solution: grep GET access.log search_for_files_containing_string/ # Print all files, one per line that contain # the string "500". # Solution: grep -rl * -e 500 search_for_files_by_extension/ # Print the relative file paths, one path # per line for all files that start with # "access.log" in the current directory. # Solution: find . -name "access.log*" search_for_string_in_files_recursive/ # Print all matching lines (without the filename # or the file path) in all files under the current # directory that start with "access.log" that # contain the string "500". # Solution: find . -name "access.log*" | xargs grep -h 500 extract_ip_addresses/ # Extract all IP addreses from files that # that start with "access.log" printing one # IP address per line. # Solution: find . -name "access.log*" | xargs grep -Eo '^[^ ]+' delete_files/ # Delete all of the files in this challenge # directory including all subdirectories and # their contents. # Solution: find . -delete count_files/ # Count the number of files in the current # working directory. Print the number of # files as a single intege