Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. When you run the command user@ubuntu The following output is displayed: useradd: Permission denied Explain the situation and provide a solution to fix the

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

3. When you run the command user@ubuntu The following output is displayed: useradd: Permission denied Explain the situation and provide a solution to fix the problem. [3 marks] 4. When you sit in front of your server, the prompt looks like: aan a) bbb:/ccc/s What do 'aaa', 'bbb' and 'cec' indicate here? [3 mark] 5. Explain about what the command below will perform a) cat /myuser/quiz.pdf [2. marks] b) cd ... . 12 marks] 6. Given the command is > file a) By using the example above, explain the concept behind single redirection. b) What is the different between single redirection and double redirection? SECIION II: Structured Questions ( 6 Question, 30 Marks) Instruction. Answer all question in the gostion booket 1. Given the hierarchy for the file structure as follow: You are currently at mike directory. a) Write a single command to copy file.txt to lisa directory [3 marks] b) Write a single command to delete sound mp 3 file [2marks] c) Write a single command to change the owner for images.jpg to root [2 marks] d) Write a single command to archive the john and lisa directory to the archive file name mybackup.tar. [5 marks] 2. rm is the command to delete files and non-empty directory. Based on the command above, determine the meaning of the parameter: (a) R [2 mark] (b) f Why this output happens? A. myfolder not empty B. There is some data in timezone D. timezone is protected from being deleted by the kernel 17. su command WITH '- 'argument will ensure: A. Recreates user's environment C. Administrator is presented the different environment other than root. B. Maintains the retain user's current environment D. Runs as same sub shell 18. The command and the output as shown below: username(a)ubuntu : $ hostname myfacebook What is the output for the command username@ubuntu :\$ echo "My server is "hostname"" A. My server is "hostname" B. My server is hostname C. My server is myfacebook D. My server is "myfacebook" 19. What is the reason to have a correct file permission? A. Give access to everyone. B. Easy to manage user account. C. Avoid exploit by malicious user. D. Easy to anti-virus to detect the virus/malware during scanning. 20. Based on the content in etc/passwd below, what does bin/ksh represent? B799:x:987:900:Surizal Nazeri:/home/B799:bin/ksh A. Comment/GCOS B. Username. C. User ID number. D. Login shell. 10. Given the output for the is command as follow. What will be the output when the command 15mmm ? was executed? A. midsemsor the is command as follow: B. midsems 1 midsems02 midterm midtermo2 midterm3 midterm4 C. midsem1 midterm3 midterm4 11. User can enter the command when they have a terminal A. pipelining at their Linux B. prompt C. metacharacter D. run level 12. rmdir command in Linux is used to A. Create a directory B. Make changes to the directory C. Empty the file in the directory D. Delete the directory 13. The list of users in Linux server can be derive from the A. /etc/user B. /home/user C. /usr/ D. /etc/passwd 14. What are the used of init process? A. To change from one run level to another run level. B. Decides which processes to run for each run level. C. To be parent to all other process. D. To block other process from making a change at the kernel. 15. You are running the command as follow: username a, ubuntu : S sudo apt-get install pacman 4 console Where is the lits of packages that you install at your Linux Server will be store? A. packages.tar B. sources.list C. Program File D. packagesinstall 16. You are running the command below to delete a directory with the file inside it: username Q ubuntu $rmR my folder remove write-protected regular file 'myfolder/timezone'? 1. When the user ID and passivord for root is created? A. Booting B. Installation C. Using useradd command proposal. docx is permission for proposal docx when the command chmod 123 2. Given the output for 1s1 as follow: A. -rwxrwerwx B. rxr1r D. xw1x 3. Given the prompt and command as follow: username@ubuntu \$\$ pwd /home/username/myfolder username@ubuntu $cp /etcltimezone. Where is the timezone file will be copied? A. /etc B. /home C. /home/username D. /username/myfolder

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago