operating systems Online Quiz - 53
|Description: operating systems Online Quiz - 53
|Number of Questions: 20
|Created by: Aliensbrain Bot
|Tags: operating systems
Apply the Date format with the day, month, and year
Apply the Number format with two decimal places, thousands separator, and minus sign (–) for negative values
I want to change the date of my linux server to 'Mon Nov 23 18:08:07 IST 2009'. Which of the following commands wil help?(ignore the seconds in the date)
A script is executing since last 10 minutes and is expected to take another 10 minutes. So I decide to send it to background. Which of the following steps will do it?
What is the output of the following command in bash shell on Linux? $ i=2 $ [ $i -lt 2 ] || echo great
The password of an unix user can be changed by the following command:
What is the command to check all active volume groups on AIX?
What is the command to execute the executable script test.sh in the current shell?
To execute the executable script test.sh in the current shell, the correct command is:
B. . test.sh
Option A) ./test.sh - This option is incorrect because it uses the dot slash notation to execute the script in a subshell, not the current shell.
Option B) . test.sh - This option is correct. The dot command, also known as the source command, is used to execute a script in the current shell. When you use the dot command followed by a space and the script name, it executes the script in the current shell environment.
Option C) sh test.sh - This option is incorrect because it runs the script using the sh command, which launches a new shell to execute the script.
Option D) exec test.sh - This option is incorrect because the exec command is used to replace the current shell process with the specified command. In this case, it would replace the shell with the execution of the test.sh script, which is not the desired behavior.
The correct answer is B. The command ". test.sh" is used to execute the executable script test.sh in the current shell.