NFS/NIS command. NFS mount request server. mountd reads the file /etc/exports to determine which filesystems are available for
mounting by which machines. It also provides information about which filesystems are mounted by which clients. See also nfsd.
mount [options] [[device] directory]
|$ mount -t smbfs -o fmask=666,guest //windows_box/share /mnt/share||Mount a windows share|
|$ mount -o loop cdrom.iso /mnt/dir||Mount the cdrom image at /mnt/dir (read only)|
|$ mount | column -t||List mounted filesystems on the system (and align output)|
modprobe [options] [modules] [moduleoptions]
System administration command. With no options, attempt to load the specified module, as well as all modules on which it depends. If
more than one module is specified, attempt to load further modules only if the previous module failed to load. When specifying a
module, use only its name without its path or trailing .o. modprobe will pass to the kernel any options following the module name.
modinfo [options] object-file
System administration command. Print information about kernel module object-file. Information is read from tag names in the modinfo
section of the module file. By default, it will print the module’s filename, description, author, license, and parameters.
mktemp [options] [template]
Generate a unique temporary filename for use in a script. The filename is based on the specified template, which may be any
filename with at least six Xs appended (e.g., /tmp/mytemp. XXXXXX). mktemp replaces the Xs with the current process
number and/or a unique letter combination. The file is created with mode 0600 (unless -u is specified), and the filename is written to
standard output. With no template specified, the default file tmp. XXXXXXXXXX is created.
mkswap [options] device
System administration command. Prepare swapspace on device: a disk partition or a prepared file. This command can create old and
new style swap areas. The older style provides backward compatibility with 2.2 kernels, but is less efficient and more limited in size.
The mkswap command has some dangerous options we have omitted here. They provide backward compatibility and solutions to problems with older libraries, but can destroy a disk if specified incorrectly.
mknod [options] name type [major minor]
Create a special file (a file that can send or receive data). Special files can be character files (read one character at a time), block files
(read several characters at a time), or FIFO pipes (see mkfifo). To choose which type of device to create, use one of the following arguments: