Operating systems (2) Flashcards

1
Q

You create a shell script and attempt to run it. You are prompted with the permission denied error. Before executing a shell script, which permission must you assign it with the chmod command?

+r

+w

+x

A

+x

After creating a shell script, if you attempt to execute it, you will get the permission denied message. You first need to assign it the executable permissions using the +x operator. For example, after creating the plab. sh script, you need to change its permission with the following command: chmod +x plab.sh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

You want to create a homegroup to be used by some systems that are out of the company’s domain. Which operating system should you opt for to create and use homegroup? (Choose all that apply)

Windows 8

Windows 10

Windows 7

Windows Vista

A

Windows 8

Windows 7

You need Windows 7 and Windows 8 systems.
Windows Vista does not have the homegroup capability as it was introduced in Windows 7. Microsoft removed this feature from Windows 10 and therefore, only Windows 7 and 8 can be useful in the given situation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

You have a Windows system with multiple hard drives. Two hard drives are unutilized and need to be used after creating multiple partitions on each disk. What should you do?

Use the fsck command

Use the chkdisk command

Use the diskpart command

A

Use the diskpart command

To be able to create partitions on a hard drive in Windows, you can use the diskpart command. This command supersedes the fdisk command. You will first need to list the drives and then choose one. Diskpart will then use the selected drives after you issue commands to create a partition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

You want to invoke the Remote Desktop Connection from the Run dialog box. Which of the following command do you need to execute to achieve this?

Msinfo32

Msconfig

Devicemgr.msc

Mstsc

A

Mstsc

You need to type mstsc command. MSTSC stands for Microsoft Terminal Service Client. Either you can invoke Remote Desktop Connection from the Programs menu or run this command in the Run dialog box.
The msconfig utility allows you to make configuration changes, such as boot and allows you to manage services on a local system. Misinfo32 provides completer information about the system. The devicemgr.msc command opens the Device Manager console.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

You have been assigned a new laptop with Windows 10. You want to find the following information.

. Operating system version
. Processor type
. Amount of RAM
. Hardware installed

Which of the following tool should you use to get this information?

MMC

Msinfo32

Msconfig

Device Manager

A

Msinfo32

You need to use the misinfo32 tool. It will provide the required information mentioned in the scenario. The MMC command is used for adding snap-ins. The msconfig command opens the MSCONFIG utility that helps you configure various options, such as boot order. The Device Manager console is used to view the hardware installed in the system. You can use it to update drivers or uninstall hardware etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

You have a file named PLAB that contains thousands of lines. You want to find all the lines that start with the word testing. Which of the following commands will provide the desired output?

grep “Testing$” PLAB

grep “(^Testing)” file1

grep -i “Testing”

grep “^Testing” PLAB

A

grep “^Testing” PLAB

To meet the requirements stated in the scenario, you need to use the grep “^Testing” PLAB command. The ^Testing will search the beginning of the lines for the word Testing.
The grep “Testing$” PLAB command will find all the lines that have the word Testing at the end. The grep -i “Testing” command will locate all the lines that contain the word Testing, which can be upper or lower case. The grep “(^Testing)” file1 command will find all the lines that do not contain the word Testing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly