Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the linux terminal and commands, perform the following activities 1 1 . Change to the / etc directory, stay here and create a directory

Using the linux terminal and commands, perform the following activities
11. Change to the /etc directory, stay here and create a directory latedir in your home directory.
12. Create in one command the directories ~/dirr1/dirr2/dirr3(dirr3 is a subdirectory from dirr2, and dirr2 is a subdirectory from dirr1).
13. Remove the directory tyingd.
14. Display the type of file of /bin/cat,/etc/passwd and /usr/bin/passwd.
15. Create a directory ~/touceh and enter it.15. Create the files derrie.txt and dvant.txt in touched.
16. Change the date on dvant.txt to match yesterday's date.
17. Copy dvant.txt to copy.dvant.txt
18. Rename copy.dvant.txt to kimono
19. Create a directory called ~/testbackup and copy all files from ~/touceh into it.
20. Use one command to remove the directory ~/testbackup and all files in it.
21. Use rename to rename all *.conf files to *.backup .
22. Display the first 12 lines of /etc/services.
23. Display the last line of /etc/passwd.
24. Use cat to create a file named counter.txt that looks like this:UnDeuxTroixQuatreCinq
25. Use cp to make a backup of this file to cnt.txt.
26. Use cat to make a backup of this file to catcnt.txt.
27. Display catcnt.txt, but with all lines in reverse order (the last line first).
28. Use more to display /etc/services.
29. Display the readable character strings from the /usr/bin/passwd command.
30. Use ls to find the biggest file in /etc.
31. Use cat to create a file named fishing.txt that contains the contents this is a wonderful opportunity for me followed by the contents of /etc/passwd.
32. Use cat to create a file named tailing.txt that contains the contents of fishing.txt preceded by the contents of /etc/passwd.33. Is tac a shell builtin command ?
34a. Create an alias called 'village' that echoes your hometown. 34b. Use your alias to test that it works.
35. Execute set -x to display shell expansion for every command.
36. Test the functionality of set -x by executing your city and rm aliases.
37 Execute set +x to stop displaying shell expansion.
38. Remove your village alias.
39. What is the location of the cat and the passwd commands?
40. Explain the difference between the following commands:echo/bin/echo
41. Explain the difference between the following commands: echo Heloloecho -n Helolo
42. Display X Y Z with two spaces between Y and Z.
43. Complete the following command (do not use spaces) to display exactly the following output:5+5=1012+12=24
44. Use echo to display the following exactly:?\?\
45. Use one echo command to display three words on three lines.
46. Execute ls after cd /etc, but only if cd /etc did not error.
47. Execute cd /etc after cd etc, but only if cd etc fails.
48. Use echo to display Hello followed by your username. (use a bash variable!)
49. Create a variable answer with a value of 42.
50. How many commands can be kept in memory for your current shell session?

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

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions