
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
Shell
Experiment with changing your PS1 and PS2 prompt so it is set to what you want once you log in. You can also add to your PATH variable and set a CDPATH.
A. What file should you modify in your home directory to do this task?
B. What command(s) will change the prompts and what command(s) will have that change take effect once you log in?
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
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
- Which 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_forwarddo the following in the codeThe shell environment should contain shell=<pathname>/myshell where <pathname>/myshell is the full path for the shell executable (not a hardwired path back to your directory, but the one from which it was executed). #!/bin/bashflag=0echo "Welcome to myshell"while [[ $flag == 0 ]]doread -p "myshell > " str#spilliting the textIFS=' ' #setting space as delimiterread -ra ARR <<<"$str" #reading str as an array as tokens separated by IFScommand=0 # >>>>>>>>>>>>>>>>>>>>>>>>>> 1. cd <<<<<<<<<<<<<<<<<<<<<<<<<if [[ ${ARR[0]} == "cd" ]]thencommand=1word=$(echo ${ARR[@]} | wc -w) # after cd hav no argument then report to current directoryif [[ $word == 1 ]]thencd $PWDelseif [[ -d ${ARR[1]} ]]thencd ${ARR[1]}elseecho "[${ARR[1]}] path is not correct"fififi…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.arrow_forward
- Within Windows 10, a user is moving files from the C:data folder to the E:data folder. Disk C: can be formatted using NTFS, whereas disk D: can be formatted with FAT32.What happens to the file's permissions when a file is transferred from the D:/ Drive?arrow_forwardfind The find command takes a pattern as a command-line argument and recur- sively searches through directories to find a filename matching that pattern. It should print a relative path starting with "./" for every file/directory that matches. For example, running ./find 1s.c from within the hw2 directory should print ./1s.c. If run from the parent directory, the output would be . /hw2/1s.c. There may be multiple matches. If we run ./find .c from within the hw2 directory, we should see: ./find.c ./1s.c ./tree.c The output does not need to be sorted. If nothing matches, it shouldn't print anything. Pattern matching should be case sensitive.arrow_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
- Kevin is working on an audio file in his audio editing software for a client. He is done with the editing but feels that it might need changes later. What is the best practice for Kevin to follow here? A. stop editing until he is sure B. save the file in a work in progress version C. create a duplicate file of the original file D. export the file and send it to the clientarrow_forwardIn 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_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
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