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:00
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut off on an hev are both colored orange
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
You know the right answer?
1. Type the following commands:

$ head /etc/services

$ ls /etc

$...
Questions
question
Geography, 03.06.2021 20:10
question
Mathematics, 03.06.2021 20:10
question
Mathematics, 03.06.2021 20:10
question
Mathematics, 03.06.2021 20:10
Questions on the website: 13722363