
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Write a shell script that allows users to choose and execute the respective Linux commands. The following are the command options that the users can select based on the respective alphabets:
A: Display current user.
B: Display current date.
C: Display help page of a Linux command.
D: Add new user to the system.
E: Switch to another user.
If the user selects any other choices from above, prompt the user to select again, only from A to E
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Write a shell script that allows the user to enter six numbers, and sends it to a file. After which, the script will then display it on the screen. Hint: Make sure the script "cleans up" before running again.arrow_forwardPlease help with the following in Linux help complete the following table Example of what it should look like Command Description Option/Flags Log chmd (ugoa +/- rwx) chmd – octal system (0-7): 1=execute;2=write;4=read zip(-r sf) unzip(-l) date(-u, + “Year: %Y,Month: %m, Day: %d”,-d 20210105) ncal(-h-b-j) head (-n)arrow_forwardThese are using Linux permissions and system calls, please helparrow_forward
- This is regarding Linux System callsarrow_forwardWhich of the following statements is true?a. The GRUB boot loader is stored in the /usr/grub directory.b. LILO needs to be reinstalled after it has been modified.c. The GRUB2 boot loader is often used on legacy Linux systems.d. GRUB needs to be reinstalled after it has been modified.arrow_forwardlinux.txt is owned by a group that has full control over the file's access settings. Specify who has read/write access to linux.txt. Which of these commands will allow the user/owner to make whatever changes they want to the file?arrow_forward
- C shell. A child process executes shell commands. Shell script. The user's executables may be in (/bin/). Shell doesn't take command line arguments or pipes.arrow_forwardIn Linux In a Linux system, it is recommended that you login and do all your workdirectly as the root user, this way you have full administrative power, and do nothave to worry about permissions. true or falsearrow_forwardWrite a shell script that reads a directory name and displays all the files in this directory if it is a valid directory; otherwise keeps displaying a message like "Enter a valid directory" until the user enters a valid directory. Hints: you can use a while loop.arrow_forward
- In Command Prompt, we can run two commands on the same line independent of each other with the ampersand & (e.g. DIR & WHOAMI), and we can do the same in PowerShell with this character: Group of answer choices Comma , Semicolon ; Ampersand & Pipe |arrow_forwardA file called linux.txt has a group named "owner" that has full control over the file's access. Provide details on who has access to linux.txt and what privileges they have. Which of the following commands will provide the user/owner full access to the file?arrow_forwardOn the cmsy255 server, write a bash shell script called usrinfo that displays information about a specified user. Make sure the script file is executable. Also make sure that you can run the script without having to specify the directory. For example, you should NOT have to enter ./usrinfo in order for it to run. The script should: ● ● ● Accept 1 argument from the command line (this is the User ID that you want to display info for) finger the User ID display any lines from the who command that match this User ID display any lines from the ps -ef command that match this User ID In addition, if the number of arguments is not exactly 1, display an appropriate error message and exit with an exit code of 1.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education