Test Out Linux Pro 2.1.7 The Linux Shell Practice Questions
Which of the following commands should a Linux user enter to see a list of all the commands the user recently ran at the command prompt?
history
A Linux user has an executable file named ni that can save a snapshot of network information with the date and time in a log file. The executable ni file is in the /root directory, and /root is the current working directory. Which of the following commands would run the executable file? (Select TWO).
/root/ni ./ni
Which of the following is displayed when the uname -a command is run?
All system information
Which of the following is the standard shell for MOST Linux computers?
Bourne-again shell (bash)
What would you enter at the command prompt to start a new Bourne-again shell (bash) session?
bash
As a Linux user, you have access to an executable file named myapp. It's found in the current directory, but not in the command path. What would you enter at the command prompt to start the myapp file and replace the shell with myapp process?
exec ./myapp
What would you enter at the command prompt to display the current working directory?
pwd