Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project 5-1 In this hands-on project, you view and create device files. 1. Boot your Fedora Linux virtual machine. After your Linux system has loaded,

Project 5-1 In this hands-on project, you view and create device files. 1. Boot your Fedora Linux virtual machine. After your Linux system has loaded, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2. Log in to the terminal using the user name of root and the password of LNXrocks!. 2. At the command prompt, type ls l /dev/tty6 and press Enter. What device does /dev/tty6 represent? Is this file a block or character device file? Why? What are the major and minor numbers for this file? 3. At the command prompt, type rm f /dev/tty6 and press Enter. Next, type ls l /dev/tty6 at the command prompt and press Enter. Was the file removed successfully? 4. Switch to the command-line terminal (tty6) by pressing Ctrl+Alt+F6 and attempt to log in to the terminal using the user name of root and the password of LNXrocks!. Were you successful? 5. Switch back to the command-line terminal (tty2) by pressing Ctrl+Alt+F2, type the command mknod /dev/tty6 c 4 6 at the command prompt, and press Enter. What did this command do? Next, type ls l /dev/tty6 at the command prompt and press Enter. Was the file re-created successfully? 6. At the command prompt, type reboot and press Enter. After your Linux system has loaded, switch to a command-line terminal (tty6) by pressing Ctrl+Alt+F6 and log in to the terminal using the user name of root and the password of LNXrocks!. Why were you successful? 7. At the command prompt, type ls l /dev/tty? and press Enter. What is similar about all of these files? Is the major number different for each file? Is the minor number different for each file? Why? 8. At the command prompt, type find /dev and press Enter to list all of the filenames underneath the /dev directory. Are there many files? Next, type du s /dev at the command prompt and press Enter. How large in kilobytes are all files within the /dev directory? Why? 9. At the command prompt, type cat /proc/devices | more and press Enter. Which devices and major numbers are present on your system? What character devices have a major number of 4? How does this compare with what you observed in Step 2? 10. Type exit and press Enter to log out of your shell.

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 Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

Evaluate employees readiness for training. page 275

Answered: 1 week ago

Question

help asp

Answered: 1 week ago