subject

1. Type the following commands:

$ head /etc/services

$ ls /etc

$ who

$ date

$ uname -a

2. Use history and tail to list the 10 most recent commands you issued. It is okay if you have only the preceding five commands in your history list. [Show your work]

3. Regarding using an exclamation point (!) to reference events: (!! references the last command) see page 129

a. Repeat the ls /etc command using that command’s event number [Show your work]

b. Repeat the uname command by specifying it as the nth preceding command. 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. [Show your work]

c. Repeat the previous command. [Show your work]

d. Repeat the most recent command that started with the string head. [Show your work]

4. Create an alias that translates the command d into date. Make sure the new alias works. Display the alias. [Show your work]

5. Create an alias that translates the command ls 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. [Show your work]

6. Where would you define an alias so that it is available each time you log in?

7. Assume the following set of commands are run in the order presented:

MYNAME=joe

CMD=echo

$CMD $MYNAME

$CMD my name is $MYNAME.

CMD="echo hello world"

$CMD

CMD="echo $MYNAME"

$CMD

Explain, in your own words, what is happening when commands 2, 4, 5, and 7 executed.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:40
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
How do you take a green screen out of the video while editing?
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
You know the right answer?
1. Type the following commands:

$ head /etc/services

$ ls /etc

$...
Questions
question
Geography, 28.08.2019 23:00
question
History, 28.08.2019 23:00
Questions on the website: 13722363