← Learn
Safe
cat /etc/hostname

linux · bash · Beginner

Prints the machine's configured hostname. cat opens a file for reading and writes it to standard output; it cannot modify the file it is reading no matter which file you point it at.

Think you can spot these under time pressure?

Start Training

More Linux