In the Bourne shell, which file is responsible for configuring the user's Unix environment upon logging into their HOME directory?

Basic of linux unix MCQs for PPSC, FPSC, NTS, and Pakistan government job tests. Select an option below, then read the explanation.

PPSCFPSCNTSPakistan govt jobs
Subject
Basic of linux unixsoftware-engineering-mcqs › basic-of-linux-unix
Published
9 Apr 2019
Last updated
28 May 2026

Browse all Basic of linux unix MCQs

Choose the correct answer

Explanation

The .profile file is executed by the Bourne shell when a user logs into their HOME directory, setting up the Unix environment variables and configurations. The other files serve different purposes: .exrc is for editor settings, lastlogin records login times, and .mbox stores mail.

PakQuizHub — free MCQs and past papers for Pakistan government job tests. Content is for educational practice only.