Skip to content

PhoenixMaster123/ls_new

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ls_new - Extended version of the ls command"

Features ✨

  • Display hidden files (-a)
  • Detailed file information (-l)
  • Recursive traversal with and without threads (-r, -R)
  • Recursive listing of subdirectories with parallel processing (threads) (-z)
  • Sorting by size, time, or alphabetically (-S, -t, -X)
  • Filtering by file pattern ("*.(pattern)")

Installation 🛠️

  1. Install prerequisites

    sudo apt update && sudo apt install cmake make gcc
  2. Clone the repository

    git clone https://<TOKEN>@github.com/PhoenixMaster123/ls_new.git
    cd ls_new
  3. Create a build directory

    mkdir build
    cd build
  4. Configure CMake

    cmake ..
  5. Compile the program

    make
  6. Run the program

    ./ls_new [Optionen] [Pfad]

Available Options ⚙️

Option Beschreibung
-a Shows all files, including hidden ones (files starting with .)
-l Displays detailed information such as permissions, size, and date.
-r Recursively traverses directories (without threads)
-R Recursively traverses directories with parallel processing (threads)
-z Recursively lists subdirectories with parallel processing (threads)
-t Sorts by timestamp (newest first)
-S Sorts by file size (largest first)
-X Sorts by file extension
"*.(pattern)" Filters files based on the specified pattern

Practical Examples 💡

  1. List files in the current directory

    ./ls_new
  2. Show all files (including hidden ones)

    ./ls_new -a
  3. Display detailed file information

    ./ls_new -l
  4. Recursive listing of a directory without threads

    ./ls_new -r /path/to/directory
  5. Recursive listing of a directory with threads

    ./ls_new -R /path/to/directory
  6. Sort by size

    ./ls_new -S
  7. Sort output by timestamp, newest first

    ./ls_new -t
  8. Recursively list subdirectories using threads

    ./ls_new -z
  9. Sort files by extension

    ./ls_new -X
  10. Show only specific files (e.g., all PNG files)

    ./ls_new "*.png"

ls_new: Explained - An Advanced Version of the ls Command (5 min.) (German)

ls_new.mp4

Video link: ls_new

License ⚖️

This project is licensed under the MIT License. More details can be found in the LICENSE file.

Authors 👨‍💻👩‍💻

  • Enrico Ebert
  • Max Tremel
  • Kristian Popov
  • Zacharias Priller

About

Extended version of the ls command

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •