Forrest logo
back to the ls tool

git-column:tldr:f1d9b

git-column: Format the standard input as multiple columns with a maximum width of `100`.
$ ls | git column --mode=column --width=${100}
try on your machine

This command is a combination of the ls and git column commands, connected together with a pipe (|) symbol.

The ls command is used to list the files and directories in the current working directory. It displays the names of the files and directories in a single column format by default.

The git column command is a utility provided by git that allows you to display tabular data in a more organized and readable way. It has various options and modes to control the appearance and behavior of the output.

In this case, the --mode=column option tells git column to display the data in a columnar format. By default, git column uses tab widths for column separation. However, the command specifies a custom width using --width=${100}. This means that the width of each column will be set to 100 characters.

The pipe (|) symbol is used to redirect the output of the ls command as input to the git column command. It takes the output of ls, formats it using git column, and then displays the resulting formatted output.

Overall, this command will list the files and directories in the current directory and display them in a columnar format using git column, with each column having a width of 100 characters.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ls tool