Linux Foundation LFCS Exam Questions
Linux Foundation Certified System Administrator (Page 10 )

Updated On: 17-Feb-2026

Which of the following files, located in the user home directory, is used to store the Bash history?

  1. .bash_history
  2. .bash_histfile
  3. .history
  4. .bashrc_history
  5. .history_bash

Answer(s): A



Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)

  1. ssh --port 2222 example.com
  2. ssh -p 2222 example.com
  3. ssh -o Port=2222 example.com
  4. ssh -o GatewayPort=2222 example.com
  5. ssh example.com:2222

Answer(s): B,C



Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?

  1. file /tmp/myfile.txt
  2. echo "Hello" >/tmp/myfile.txt
  3. sed -ie "s/1/2/" /tmp/myfile.txt
  4. echo -n "Hello" >>/tmp/myfile.txt
  5. touch /tmp/myfile.txt

Answer(s): A



When the command echo $$ outputs 12942, what is the meaning of 12942?

  1. It is the process ID of the echo command.
  2. It is the process ID of the current shell.
  3. It is the process ID of the last command executed.
  4. It is the process ID of the last command which has been placed in the background.

Answer(s): B



Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)

  1. uptime
  2. up
  3. top
  4. uname -u
  5. time ­up

Answer(s): A,C






Post your Comments and Discuss Linux Foundation LFCS exam dumps with other Community members:

Join the LFCS Discussion