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
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. | ||
c | The shell is also known as the firewall for Unix. | |
d | 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?
a | It means that your last command was invalid. | |
b | It means that you have logged in from a remote terminal. | |
c | It means that the terminal session has superuser or root privilges. | |
d | 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?
a. | df | |
b. | diskstat | |
c. | free | |
d. | fs |
QUESTION 4- Which command would you type to display your current working directory?
a.prwd | ||
b. | lwd | |
c. | pwd | |
d | workdir |
QUESTION 5- Which command would you type to view the detailed contents of a directory, including file permssions?
a. | ls | |
b. | ls -l | |
c. | dir -a | |
d. | 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. | ||
b. | To scan for viruses. | |
c. | 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. | |
d. | 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 | ||
b | . | /var |
c. | /etc | |
d. | /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
a. | computers.doc | |
b.homework1.txt Household-repairs.txt homeworkold.txt computers.doc help.txt | ||
c.Household-repairs.txt | ||
d. | 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 | ||
b. | mv Homework* Homework-old | |
c. | mv -a Homework/Homework-old | |
d. | mv Homework-old Homework * |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started