The
-i
option to ls gives inode numbers. You might want to use
-F
option, which appends a '/' for directories, and '@' for symbolic links, and '*' for executables (plus a couple of others indicators we can probably ignore for now).
e.g.
$ ls -iF
872499 bar@ 13150 foo/ 1142157 x* 19583190 x.c
Whether that will fit on a single screen or not depends on how big your screen is and how many files and directories you have. There's also a
-m
option that outputs all directory entries in a single line, separated by ', '. That might be useful in situations where you have a huge number of entries that you want to process in script.