Я выполняю команду less
ls /usr/bin | less
получил много строк каталогов.
2to3-
2to3-2.7
AssetCacheLocatorUtil
AssetCacheManagerUtil
AssetCacheTetheratorUtil
BuildStrings
CpMac
...
Как перечислить их?
Я полагаю, вы имеете в виду ls /usr/bin
? В любом случае вы можете использовать опцию -N
:
ls /usr/bin | less -N
Из man less
:
-N or --LINE-NUMBERS
Causes a line number to be displayed at the beginning of each
line in the display.