~/ learn/ comp-325/ cards/ Nine fields and a type character
1 of 10

The directory versus its contents

The directory versus its contents

Answer

ls -l ~/assignment2 ls -ld ~/assignment2 ls -il ~/assignment2

Run the first two back to back on the same directory and the difference is unmissable: `-l` prints a line per entry inside, `-ld` prints exactly one line about the directory itself. `-il` adds the inode number in front of each line, which is the form the links lesson lives in.

Sarwar & Koretsky 3e ch4 §4.5.5 Table 4.3, §4.5.6

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/e76bd209-307b-40da-a2dd-90a12df33763/flashcard utf-8 LF