#file-content #cat #command #directory #unix-command #ls #list

app c-cli

cat and ls combined into one command

4 releases

0.2.2 Oct 2, 2023
0.2.1 Aug 24, 2023
0.2.0 Aug 4, 2023
0.1.0 Aug 3, 2023

#913 in Filesystem

Apache-2.0

7KB
77 lines

C

cat and ls combined into one command

This CLI program emulates the basic functionality of the ls command found in Unix-like systems combined with cat. It lists the names of all files and directories in the current directory as well as showing the file content of the specified file.

Installing

cargo install c-cli

Usage

  • List files in current directory, just like ls
c

or

c {foldername}
  • Show file content like cat. You can also specify multiple files
c {filename}

No runtime deps