Unix-Text-Processing icon indicating copy to clipboard operation
Unix-Text-Processing copied to clipboard

Correct ambiguous 'ls' command

Open N0NB opened this issue 2 years ago • 0 comments
trafficstars

In the "Copying and Moving Files" section the '-F' option is passed to 'ls' to show two files and two directories. The next command moves one of the files to a directory and the following example shows a bare 'ls' but with one of the directories with a trailing '/' character (the result of the '-F' option).

This patch removes the ambiguity by showing the result when '-F' is passed to 'ls' by adding the option to the command and showing both directories with trailing '/' characters.

This ambiguity is also present in the original book available from: https://www.oreilly.com/openbook/utp/

N0NB avatar Aug 13 '23 21:08 N0NB