Ubuntu – List files appended with an order number

bashls

Is there a quick way to list all the files from a location having an appended order number?

something like:

ls -a

generates the result:

1 file a

2 file b

100 file whatever

Thanks.

P.S. I need this because I am exporting a list to a file, and I have to analyse those files, and it would help me to be able to identify the files.

Best Answer

From the terminal use the following command:

ls -a | cat -b
Related Question