Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NEED YALL TO DO 1-7 31.15 Exercises 1. The date command prints the date and current time. Add the following line to your .bash-profile, making

NEED YALL TO DO 1-7image text in transcribed

31.15 Exercises 1. The date command prints the date and current time. Add the following line to your .bash-profile, making sure to use backquotes around date echo "The date and time are 'date'." Exit the editor and run the .bash profile using the "dot" command. What happens? 2. The backquotes were needed in the previous exercise to tell the shell that date was to be interpreted as a command, not as a word. What happens if the back- quotes are omitted? Try it. Open .bash_profile and remove the backquotes from date echo "The date and time are date" Exit the editor and run the . bash-profil e using the dot" command, what happens? (Now open up the file and replace the backquotes.) 3. What is your search path (PATH)? 4. What is the complete pathname for your shell? 5. The rm, cp, and mv commands are dangerous because they can overwrite or remove existing files. The -i ("interactive") option will ask you to confirm that this is what you want. If this option is available to you, add the following lines to your .bashrc file: alias -x rm='rm -i, alias -x cp='cp -i, alias -x mv'mv -i' Note that quotes are required around a command that contains a space. 6. Explain what the following lines would do if they were placed in your shell ini- tialization file all as m-more alias f-finger alias ls '1s -R 7. Most users set up their history mechanism to remember about 100 com mands. To do this yourself, open your .bashrc file and insert this line HISTSIZE-100 If you neglect to set the HISTSIZE variable, bash will remember the most recent 128 commands by default

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions