Answered step by step
Verified Expert Solution
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 ESTIMATED TIME: minutes OBJECTIVE: Create device files. DESCRIPTION: In this handson project, you view and create device files. Boot your Fedora Linux virtual machine. After your Linux system has loaded, switch to a commandline terminal tty by pressing CtrlAltF Log in to the terminal using the user name of root and the password of LINUXrocks!. At the command prompt, type ls l devtty and press Enter. What device does devtty represent? Is this file a block or character device file? Why? What are the major and minor numbers for this file? At the command prompt, type rm f devtty and press Enter. Next, type ls l devtty at the command prompt and press Enter. Was the file removed successfully? Switch to tty by pressing CtrlAltF and attempt to log in to the terminal using the user name of root and the password of LINUXrocks!. Were you successful? Switch back to tty by pressing CtrlAltF type the command mknod devtty c at the command prompt, and press Enter. What did this command do Next, type ls l devtty at the command prompt and press Enter. Was the file recreated successfully? Switch back to tty by pressing CtrlAltF and log in to the terminal using the user name of root and the password of LINUXrocks!. Why were you successful? At the command prompt, type ls l devtty 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? 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? At the command prompt, type less procdevices and press Enter. Note the devices and major numbers present on your system. What character devices have a major number of How does this compare with what you observed in Step Press q to exit the less utility when finished. Type exit and press Enter to log out of your shell.
Project
ESTIMATED TIME: minutes
OBJECTIVE: Create device files.
DESCRIPTION: In this handson project, you view and create device files.
Boot your Fedora Linux virtual machine. After your Linux system has loaded, switch to a commandline terminal tty by pressing CtrlAltF Log in to the terminal using the user name of root and the password of LINUXrocks!.
At the command prompt, type ls l devtty and press Enter. What device does devtty represent? Is this file a block or character device file? Why? What are the major and minor numbers for this file?
At the command prompt, type rm f devtty and press Enter. Next, type ls l devtty at the command prompt and press Enter. Was the file removed successfully?
Switch to tty by pressing CtrlAltF and attempt to log in to the terminal using the user name of root and the password of LINUXrocks!. Were you successful?
Switch back to tty by pressing CtrlAltF type the command mknod devtty c at the command prompt, and press Enter. What did this command do Next, type ls l devtty at the command prompt and press Enter. Was the file recreated successfully?
Switch back to tty by pressing CtrlAltF and log in to the terminal using the user name of root and the password of LINUXrocks!. Why were you successful?
At the command prompt, type ls l devtty 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?
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?
At the command prompt, type less procdevices and press Enter. Note the devices and major numbers present on your system. What character devices have a major number of How does this compare with what you observed in Step Press q to exit the less utility when finished.
Type exit and press Enter to log out of your shell.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started