What happens after issuing the command vi without any additional parameters?
Show answerHide answer
Correct answer: D
vi starts in command mode and opens a new empty file.
LPIC-1 Exam 101, Part 1 of 2, version 5.0
Free 101-500 questions on Topic 3, GNU and Unix Commands, each with the answer and an explanation.
20 questions · 33 minutes · free, no sign-up
What happens after issuing the command vi without any additional parameters?
Correct answer: D
vi starts in command mode and opens a new empty file.
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
Answer: jobs
Which of the following files, located in the user home directory, is used to store the Bash
history?
Correct answer: A
bash_history
Explanation:
QUESTIONNO: 26
Which Bash environment variable defines in which file the user history is stored when
exiting a Bash process? (Specify ONLY the variable name.)
Which of the following commands will print the last 10 lines of a text file to the standard output?
Correct answer: D
tail -n 10 filename
Which of the following statements is correct regarding the command foo 1> bar?
Correct answer: B
The stdout from the command foo overwrites the file bar.
Which of the following commands displays the contents of a gzip compressed tar archive?
Correct answer: B
tar ztf archive.tgz
You've seen the free 30% (16 of 56 questions). Full access unlocks every question and full-length 101-500 mock exams (65 questions, 105 minutes), a different mock on every attempt.
Full-length mocks with the same number of questions and the same time limit as the real 101-500 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.
Get full 101-500 mock exam