Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

QUESTION 11 After creating a shell script named this.sh, the permissions are rw-

ID: 3832419 • Letter: Q

Question

QUESTION 11

After creating a shell script named this.sh, the permissions are rw-rw-r--.

Which additional permissions should you set to make the script executable by you?

a.chmod +W this.sh

b.chmod u+x this.sh

ln -x this.sh

chmod x+u this.sh

QUESTION 12

You created a shell script named this.sh in your home directory. Your current working directory is your home directory. When you type "this.sh", you get the following error: "-bash: this.sh: command not found"

Why?

a.Because you are not logged in as root.

Because you have not set the execute bit.

Because the script does not have #!/bin/bash as the first line.

Because your home directory is not in your search PATH.

QUESTION 13

When you use the default compiler on Linux, what is the name of the compiled program by default?

gcc.out

program

run.exe

a.out

QUESTION 14

When downloading the source distribution of a computer program so you can compile it yourself, what is the purpose of the "./configure" step of the process?

a.To make slight adjustments to the source code for the build to accommodate differences between systems, and also check to see that necessary external tools and components are installed.

It is always the last step in the process, and is used to set the appropriate system configuration file defaults after compiling and installation.

It is used after compiling to place the program into the right system directory for all users.

It is used to set the right file permissions on the system so that the resulting programs are safe to use.

QUESTION 15

Which symbol is used to start a comment in a shell script?

a.(

<

#

!

a.chmod +W this.sh

b.chmod u+x this.sh

c.

ln -x this.sh

d.

chmod x+u this.sh

Explanation / Answer

QUESTION 11 :

b) chmod u+x this.sh

u means users and + means adds permission to the file directory.x stands for execute.

QUESTION 12 :

d) Because your home directory is not in your search PATH

QUESTION 13 :

d) a.out

It is the name of the compiled program in a default compiler on linux.

QUESTION 14 :

a) To make slight adjustments to the source code for the build to accommodate differences between systems, and also check to see that necessary external tools and components are installed.

This process is termed as booting and it start by invoking the NTFS file present in our Operating system and checks for the connected peripherals & others associated with it.

QUESTION 15 :

c) #

A symbol that is used to start a comment in a shell script is #.for example,#bin.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote