nerdexam
Cisco

350-201(NEW-127Q) · Question #32

A system administrator must organize files, navigate directories, and set environment variables to optimize the development environment on a Linux server. The administrator must perform several…

The correct answer is C. Use mv to move files, ls to list directory contents, and add environment variables to .bashrc to persist across sessions. Option C is correct because it pairs each task with the right tool: mv moves (renames) files without duplicating them, ls lists directory contents, and appending export VAR=value to .bashrc ensures environment variables are re-set every time a new shell session starts…

Linux System Administration

Question

A system administrator must organize files, navigate directories, and set environment variables to optimize the development environment on a Linux server. The administrator must perform several operations: moving files between directories, listing directory contents, and setting environmental variables for a session that should persist across the user's sessions. Which Bash commands must the administrator use to efficiently perform the tasks?

Options

  • AUse move to move files, cd to navigate directories, and set environment variables using addenvor envor.
  • BUse rm to move files, echo to navigate directories, and store environment variables in /etc/profile to persist across user sessions.
  • CUse mv to move files, ls to list directory contents, and add environment variables to .bashrc to persist across sessions.
  • DUse cp to move files, cd to list directory contents, and set environment variables with export to persist across sessions.

How the community answered

(51 responses)
  • A
    4% (2)
  • B
    2% (1)
  • C
    92% (47)
  • D
    2% (1)

Explanation

Option C is correct because it pairs each task with the right tool: mv moves (renames) files without duplicating them, ls lists directory contents, and appending export VAR=value to .bashrc ensures environment variables are re-set every time a new shell session starts - achieving true persistence per user.

Why the distractors fail:

  • A - move, addenvor, and envor are not valid Bash commands; they don't exist.
  • B - rm removes files, it doesn't move them; echo prints text, it doesn't navigate directories. /etc/profile is system-wide, not user-specific, making it the wrong choice for a single user's persistent variables.
  • D - cp copies files (leaving the original in place), so it doesn't truly move anything; cd changes directories rather than listing their contents.

Memory tip: Think "M-L-B" - Move, List, Bashrc" - mv to Move files, ls to List contents, and .bashrc for persistent Bash variables. If a command's name doesn't match its job description in the answer (like rm for "move"), it's a trap.

Topics

#Bash Commands#File Management#Environment Variables#Shell Configuration

Community Discussion

No community discussion yet for this question.

Full 350-201(NEW-127Q) Practice