Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please include all commands and codes. Thanks 1. Type the following commands: s head /etc/services $ 1s /etc $ who s date $ uname -a

Please include all commands and codes. Thanks image text in transcribed
image text in transcribed
1. Type the following commands: s head /etc/services $ 1s /etc $ who s date $ uname -a 2. Use history and tail (Sobell, page 327) to list the 10 most recent commands you issued. It is okay if you have only the preceding five commands in your history list. 3. Read "Using an Exclamation Point (!) to Reference Events" on Sobell, page 331. a. Repeat the Is /etc command using that command's event number (Sobell, page 332). b. Repeat the uname command by specifying it as the nth preceding com- mand. Be careful: Each time you issue a command, the relative number of each preceding command changes. You might want to give another history command before you proceed. c. Repeat the previous command. d. Repeat the most recent command that started with the string head (Sobell, page 332). 4. Create an alias (Sobell, page 342) that translates the command d into date. Make sure the new alias works. Display the alias. 5. Create an alias that translates the command Is into ls-l. Test the alias. Give an ls command that does not use the alias. Remove the alias and show that the alias no longer exists. Where would you define an alias so that it is available each time you log in? 6. 7. Write a one-line function (Sobell, page 346) named welcome that displays 8. Write a function named long that displays the date and a long listing of the 9. Wh Welcome to my computer. Demonstrate that the function works working directory. Demonstrate that the function works. ere would you define a function so that it is available each time you log in

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

More Books

Students also viewed these Databases questions