Multiple choice unix

The filed separator in cut command is specified with

  1. -a option

  2. -d option

  3. -r option

  4. -x option

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The cut command uses the -d option to specify the delimiter (field separator). For example, cut -d: uses : as the delimiter to split input into fields. This is the standard way to define what character separates fields when extracting columns.

AI explanation

-d is correct. The Unix/Linux cut command uses -d to specify the field delimiter (default is tab) together with -f to pick which field(s) to extract, e.g. cut -d',' -f2 file.csv. -a and -x aren't cut options at all, and -r isn't used for delimiter specification either.