~/ learn/ comp-325/ cards/ Anatomy of a UNIX command
1 of 7

Three spellings of the same command line

Three spellings of the same command line

Answer

cut -d: -f 1 /etc/passwd cut -d : -f 1 /etc/passwd cut -d: -f1 /etc/passwd

All three run identically. The space between an option and its option argument is optional, so `-d:`, `-d :`, `-f 1` and `-f1` are free choices of style — not different commands.

Sarwar & Koretsky 3e ch2 §2.2

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/318c561c-5caf-4e3f-be99-dbe7dd3e6c12/flashcard utf-8 LF