- 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)")
-
Install prerequisites
sudo apt update && sudo apt install cmake make gcc -
Clone the repository
git clone https://<TOKEN>@github.com/PhoenixMaster123/ls_new.git cd ls_new
-
Create a build directory
mkdir build cd build -
Configure CMake
cmake ..
-
Compile the program
make
-
Run the program
./ls_new [Optionen] [Pfad]
| 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 |
-
List files in the current directory
./ls_new
-
Show all files (including hidden ones)
./ls_new -a
-
Display detailed file information
./ls_new -l
-
Recursive listing of a directory without threads
./ls_new -r /path/to/directory
-
Recursive listing of a directory with threads
./ls_new -R /path/to/directory
-
Sort by size
./ls_new -S
-
Sort output by timestamp, newest first
./ls_new -t
-
Recursively list subdirectories using threads
./ls_new -z
-
Sort files by extension
./ls_new -X
-
Show only specific files (e.g., all PNG files)
./ls_new "*.png"
ls_new.mp4
Video link: ls_new
This project is licensed under the MIT License. More details can be found in the LICENSE file.
- Enrico Ebert
- Max Tremel
- Kristian Popov
- Zacharias Priller