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

QUESTION 1 Which of the following are examples of Unix shells? (Might be more th

ID: 3825914 • Letter: Q

Question

QUESTION 1

Which of the following are examples of Unix shells? (Might be more than one)

/bin/ls - The List Shell

/bin/csh - The C Shell

/bin/zsh - The Z Shell

/bin/bash - The Bourne Again Shell

QUESTION 2

You have finished your thesis, and want to set the permissions so that it is hard to accidentally delete or overwrite the file.

Normally, if you were to type "rm Thesis.txt", it would just delete it without asking. Or, if you moved a file with the same name into the same directory as your original Thesis.txt, it would overwrite it with the new version.

Which command would change the permissions for a file called Thesis.txt so that you are less likely to delete or overwrite it by accident?

chmod a+w Thesis.txt

chmod a-w Thesis.txt

chmod o-rwx Thesis.txt

chmod a+rwx Thesis.txt

QUESTION 3

You want to create a directory to store all your homework files. What command would you type to create a directory named "homework"?

a. crd homework

mkdir homework

mkdir Homework

cd homework

QUESTION 4

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

prwd

workdir

pwd

d.lwd

  

QUESTION 5

Which of the following are true statements?

Unix filenames cannot contain spaces or punctuation characters

Unix filenames don't require extensions like .txt or .doc to determine the file type or purpose.

Unix filenames cannot be longer than 8 characters

Unix filenames are case sensitive, meaning that upper case a lowercase are treated differently

QUESTION 6

Which of the following commands uses sort as a filter?

ls > sort > tail

cat /etc/passwd | sort | head

sort /etc/passwd | more

ps ax | wc > sort

QUESTION 7

True or False? Unix does not have a graphical user interface, and can only be operated by entering text commands.

True

False

QUESTION 8

Which of the following commands will bring you to your home directory (there might be more than one)?

cd ~

cd $HOME

cd /

cd

QUESTION 9

Which line of the following output is a symbolic link?

Line 1

Line 2

Line 3

Line 4

QUESTION 10

On debian-based systems, which command will list currently installed software packages?

dpkg -l

pkg --list

list-packages

apt-get -l

QUESTION 11

What is the numeric or Octal version of the following permissions for a file? -rw- r-- r--

Or, put a different way: u=rw,g=r,o=r

655

755

644

311

QUESTION 12

Which command is used to search the contents of a file for lines that contain a particular pattern?

grep

wc

ls

tee

QUESTION 13

You asked your team to collect the serial numbers of all your equipment for insurance purposes. Unfortunately some members of the team visited the same rooms and you are certain that some of the lists they sent in contain the same serial numbers.

Assuming you have three text files of serial numbers named "serials-andy", "serials-mary", and "serials-pat", how would you remove all the duplicate serial numbers?

(You can verify your answer by creating three files with these names, puting some random numbers in them with some duplicates, and trying the commands)

uniq serials-* | sort

cat serials-* | sort | uniq

uniq serials-andy | uniq serials-mary | uniq serials-pat

sort serials* | uniq -d

QUESTION 14

When you type "ls /usr/bin" to view a detailed list of available unix programs, the list is longer than the screen so much of it scrolls by quickly. How would you use a pipe to view it one page at a time?

a.less | /usr/bin

b.ls | /usr/bin | less

c.ls /usr/bin | less

d.ls /usr/bin > less

QUESTION 15

What is the purpose of the su command?

It sets permissions on symbolic links.

It is used to set up new users.

The su command set the computer's startup configuration.

Used to start a shell as another user.

QUESTION 16

In the vi text editor, which sequence of commands will copy the current line and past a copy of it below? (go ahead and try these to find out!)

"D" then "p"

"yy" then "p"

"C" then "p"

"c" then "v"

QUESTION 17

Which of the following is a definition of compiling?

Sending a computer executable the appropriate location for end users.

The process of translating source code into the native language of the computer’s processor.

Clustering multiple computers together to accomplish a task.

Joining multiple filesystems together as one storage device.

QUESTION 18

Which of the following are High-Level languages? (There might be more than one)

Binary

Assembly

FORTRAN

C

QUESTION 19

Which of the following are scripting or interpreted languages? (There might be more than one)

C++

Python

Assembly

PHP

QUESTION 20

What is an advantage of compiled programs over interpreted programs?

Complied programs don't have security vulnerabilities.

compiled programs

Compiled programs are more portable across different operating systems.

Compiled programs are easier to check for errors.

a.

/bin/ls - The List Shell

b.

/bin/csh - The C Shell

c.

/bin/zsh - The Z Shell

d.

/bin/bash - The Bourne Again Shell

Explanation / Answer

1)The Bourne Again Shell : /bin/bash
The C shell : /bin/csh

3) To create a directory we need to use mkdir command
mkdir homework

4) pwd will display current working directory

8) cd/ is the command to bring you to home directory.

12) grep is used to search contents of a fiile for lines that contain a particular pattern.

15) Used to start a shell as another user.

17) The process of transalting source code into the native language of computer's processor.

18) C and FORTAN are high level languages

19) PHP is scripting language

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