Question 1
Which command displays the current working directory?
- AOption A:
pwd
- BOption B:
ls
- COption C:
cd
- DOption D:
whoami
Show answer and explanation
Correct answer: A
CKA is the Linux Foundation exam Certified Kubernetes Administrator. Paid practice material for this exam is not available yet, but you can try its free sample questions.
Taken from the free sample set for CKA.
Which command displays the current working directory?
pwd
ls
cd
whoami
Correct answer: A
You need to display the last 20 lines of a log file.
Which command should you use?
tail -20 /var/log/syslog
head -20 /var/log/syslog
head -20 /var/log/syslog
less -20 /var/log/syslog
Correct answer: A