Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project 5 - 1 ESTIMATED TIME: 1 5 minutes OBJECTIVE: Create device files. DESCRIPTION: In this hands - on project, you view and create device

Project 5-1
ESTIMATED TIME: 15 minutes
OBJECTIVE: Create device files.
DESCRIPTION: 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 (tty5) by pressing Ctrl+Alt+F5. Log in to the terminal using the user name of root and the password of LINUXrocks!.
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 tty6 by pressing Ctrl+Alt+F6 and attempt to log in to the terminal using the user name of root and the password of LINUXrocks!. Were you successful?
5
Switch back to tty5 by pressing Ctrl+Alt+F5, type the command mknod /dev/tty6 c 46 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
Switch back to tty6 by pressing Ctrl+Alt+F6 and log in to the terminal using the user name of root and the password of LINUXrocks!. 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 under the /dev directory. Are there many files? Next, type du hs /dev at the command prompt and press Enter. How large in KB are all files within the /dev directory? Why?
9
At the command prompt, type less /proc/devices and press Enter. Note the devices and major numbers present on your system. What character devices have a major number of 4? How does this compare with what you observed in Step 2? Press q to exit the less utility when finished.
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 with AI-Powered 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

Students also viewed these Databases questions