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

QUESTION 1- What is the definition of the Unix shell? a.The shell is a program t

ID: 3814362 • Letter: Q

Question

QUESTION 1-What is the definition of the Unix shell?

a.The shell is a program that takes keyboard commands and passes them to the operating system to carry out.

bThe shell is a program that must run on the graphical user interface in Unix.

The shell is also known as the firewall for Unix.

The shell is also known as the kernel of the operating system

  

QUESTION 2-When the last character in the shell prompt is a pound sign (#) instead of a dollar sign ($), what does this usually mean?

It means that your last command was invalid.

It means that you have logged in from a remote terminal.

It means that the terminal session has superuser or root privilges.

It means that you have just logged on and there is no command history yet.

QUESTION 3-What command would you type to view the amount of used and free space on the computer's disk drives?

df

diskstat

free

fs

QUESTION 4- Which command would you type to display your current working directory?

a.prwd

lwd

pwd

workdir

QUESTION 5- Which command would you type to view the detailed contents of a directory, including file permssions?

ls

ls -l

dir -a

ld -p

QUESTION 6- Why would you inspect a file using the "file" utility before viewing it with the "less" command?

a.To verify the permissions.

To scan for viruses.

To make sure you are trying to open a text file and not a binary file, as attempting to view binary files can mess up your terminal.

To convert the file into a format that "less" can understand.

QUESTION 7- Which directory holds most of the system configuration files in Unix?

a./bin

/var

/etc

/root

QUESTION 9

Given a directory with the following files, which files would remain after typing "rm [a-z]*"

homework1.txt

Household-repairs.txt

homeworkold.txt

computers.doc

help.txt

computers.doc

b.homework1.txt

Household-repairs.txt

homeworkold.txt

computers.doc

help.txt

c.Household-repairs.txt

none would remain

QUESTION 10- You have two folders in your home directory:Homework and Homework-old. Which command would you type to move all the files within the Homework directory to the Homework-old directory?

a.mv Homework/* Homework-old

mv Homework* Homework-old

mv -a Homework/Homework-old

mv Homework-old Homework *

a.The shell is a program that takes keyboard commands and passes them to the operating system to carry out.

bThe shell is a program that must run on the graphical user interface in Unix.

c

The shell is also known as the firewall for Unix.

d

The shell is also known as the kernel of the operating system

Explanation / Answer

1 ans: A.

A Unix shell is a command-line interpreter or shell that provides a traditional Unix-like command line user interface. so the anser is A.

2ans: C

It means that the terminal session has superuser or root privilges.The shell prompt will change to end in a pound sign (#) instead of a dollar sign ($) when you are in root mode. Press Ctrl-D or type exit to drop superuser access and return to your regular shell prompt.

3 ans: A

df- command is used to know the free space

4 ans:

pwd commnad is used to getthe current working directory information.

5 ans:

ls - is prints all the lists of the directoryu content. and ls -l use a long listing format so ans is B.

6ans: C

the less command is more powerful. it is used to view (but not change) the contents of a text file one screen at a time.To make sure you are trying to open a text file and not a binary file, as attempting to view binary files can mess up your terminal.

7 ans: is /bnin folder

/etc contains system configure infomation files.

9ans: D

it removes all files that start with an uppercase letter, but with bash this removes all files that start with a letter. so thers is file remains

10ans: A

mv commadnd helps to move fale one place to another means one folder another por system to system or same another loaction.

mv filename source destination is the syntax.

a.mv Homework/* Homework-old

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