Free Linux Foundation LFCS Exam Braindumps (page: 12)

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



Viewing page 12 of 66
Viewing questions 45 - 48 out of 260 questions



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

LFCS Exam Discussions & Posts