Most viewed posts
Search
L
Linux Command: lsusb
lsusb [options]
System administration command. List all Universal Serial Bus (USB) devices. This command has many options of use for debugging
device drivers. Here we document some of the more common options.
Linux Command: lsmod
lsmod
System administration command. List all loaded modules: name, size (in 4 KB units), and, if appropriate, a list of referring modules.
The same information is available in /proc/modules if the /proc directory is enabled on the system.
Linux Command: lspci
lspci [options]
System administration command. List all Peripheral Component Interconnect (PCI) devices. This command has many options that
are useful for debugging device drivers. Here we document some of the more common options:
Linux Command: lsattr
lsattr [options] [files]
Print attributes of files on a Linux Second Extended File System. See also chattr.
Options
-a List all files in specified directories.
-d List attributes of directories, not of contents.
-R List directories and their contents recursively.
-v List version of files.
-V List version of lsattr and then exit.
Linux Command: ls
ls [options] [names]
List contents of directories. If no names are given, list the files in the current directory. With one or more names, list files contained
in a directory name or that match a file name. names can include filename metacharacters. The options let you display a variety of
information in different formats. The most useful options include -F, -R, -l, and -s. Some options don’t make sense together (e.g., -u
and -c).
ls -lrt List files by date
ls /usr/bin | pr -T9 -W$COLUMNS Print in 9 columns to width of terminal
ls -lSr Show files by size, biggest last
Linux Command: lpstat
lpstat [options] [queues]
Show the status of the print queue or queues. With options that take a list argument, omitting the list produces all information for
that option. list can be separated by commas or, if enclosed in double quotes, by spaces. For the LPRng print service, lpstat is a
frontend to the lpq program. With no arguments, lpstat shows jobs queued by the current user.
Linux Command: lprm
lprm [options] [jobid]
Cancel print jobs. Job IDs can be obtained from lpq; if no job is specified, cancels the current job on the default printer.
Linux Command: lpr
lpr [options] [files]
Send files to be printed. If no files are given, accept standard input. We document the CUPS printing system here; the older LPRng and
BSD systems will vary slightly. CUPS lpr, for example, does not accept the options c, d, f, g, i, m, n, t, v, or w, used by LPRng.
Linux Command: lpq
lpq [options] [+interval]
Check the print spool queue for status of print jobs. For each job, display username, rank in the queue, filenames, job number, and
total file size (in bytes). We document the CUPS printing system here; other versions will vary slightly.
Linux Command: lpmove
lpmove [option] jobdestination
System administration command. Move the specified print job to a new destination.
Option
-E Force the use of encryption connecting to the server.