Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
16 Cards in this Set
- Front
- Back
Why is it easy to manipulate most devices on a Unix system?
|
Because the kernel presents many of the device I/O interfaces to user processes as files. These device files are sometimes called device nodes.
|
|
What directory are device files stored in?
|
/dev
|
|
What characters in the read bits denote if a file is a device?
|
b c p s block, character, pipe, socket
|
|
How is a block device used?
|
Programs access data from a block device in fiexed chunks. A block device's total size is fixed and easy to index, so processes have random access to any block in the device with the help of the kernel.
|
|
What are sockets?
|
Special-purpose interfaces that are frequently used for interprocess communication.
|
|
What is the function of the program dd?
|
To read from an input file or stream and write to an output file or stream, possibly doing some encoding conversion on the way.
|
|
What is an example of dd syntax?
|
dd if=/dev/zero of=new_file bs=1024 count=1
|
|
What is the dd option format based on and how is it different than other option formats of Unix commands?
|
It is based on IBM Job Control Language (JCL) and rather than using a dash to signal an option you name an option and set its value to something with the equals sign.
|
|
dd if
|
input file (default is stdin)
|
|
dd of
|
output file (default is stout)
|
|
dd bs
|
block size in bytes (can also do kilobytes, or 1024 bytes)
|
|
dd ibs=size, obs=size
|
input and output block sizes
|
|
dd count=num
|
The total number of blocks to copy.
|
|
Why is it important to add a stopping point for dd with count?
|
When working with a huge file, or with a device that supplies an endless stream of data, such as /dev/zero, you want dd to stop at a fixed point or you could waste a lot of disk space, CPU time, or both.
|
|
dd skip=num
|
skip past the first num blocks in the input file or stream adn do not copy them to the output
|
|
What is the command to see the block and character devices for which your system currently has drivers?
|
cat /proc/devices
|