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, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
You have read about the beginnings of the internet and how it was created. what was the internet originally created to do? (select all that apply) share research. play games. communicate. share documents. sell toys
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
What can you prevent issues related to downloading content form the internet
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Write an expression that will cause the following code to print "equal" if the value of sensorreading is "close enough" to targetvalue. otherwise, print "not equal". ex: if targetvalue is 0.3333 and sensorreading is (1.0/3.0), output is:
Answers: 1
You know the right answer?
1. Type the following commands:

$ head /etc/services

$ ls /etc

$...
Questions
question
Social Studies, 13.10.2020 19:01
question
Mathematics, 13.10.2020 19:01
question
Mathematics, 13.10.2020 19:01
question
Mathematics, 13.10.2020 19:01