Basic Linux Tips and Tricks, Part 2 - page 3
dmesg prints the startup boot message file onscreen. To get this info into a text file (if you're asking for help, you are likely to be asked for a copy):
$ dmesg > bootmessage.txt
lsmodlists the active kernel modules. (Kernel modules are software installed into the Linux kernel itself, usually drivers.)
lsusblists the active USB hardware. If your problem is a USB peripheral, anyone willing to help you fix this is going to want to see this information. If you want more than a simple device listing,
vis for verbose;
vprints more information about the devices,
vvprints a lot more info.)
You can search within the terminal as well. If you are using the KDE Konsole application from your desktop, just use the Edit > Find in history menu command.
You can also save your terminal session with "Save History As," and you can print or e-mail the text file as a file attachment, or simply copy/paste into your e-mail or a web forum where someone asked for it.
One thing you will need to determine is, is the application you want to run actually installed?
You can search for a package without having to become root.
alizard@terrarium:~$ aptitude search apache $ p apache - versatile, high-performance HTTP server
The most important status tags (shown in the left column)
p--purged, no configuration files on system, totally removed or never installed
c--package removed, configurations files remain
C--half installed; program install attempt failed
Finding where any given file is:
$ locate filename
If you just installed a package and can't find it:
and take a coffee break,
updatedb takes a few minutes to run. Then enter
# cd /var/lib/dpkg/info
look for the application filename with a .list extension and open it with a text editor. Unfortunately, there is no equivalent directory for rpm.
terrarium: /var/lib/dpkg/info# ls lha* lha.list $ nano lha.list . /usr /usr/bin /usr/bin/lha /usr/share /usr/share/man /usr/share/man/man1 /usr/share/man/man1/lha.1.gz
Usually, the entry in
/usr or the directory tree under it), or
/etc will contain the executable.
/usr/share will contain docs, or there may be docs or configuration files under
Configuration files are usually in the form of
programname.conf and if the program has its own directory, it will usually be there.
This will also solve the occasional problem of finding out where the installer put the files on an application you just installed and can't find as menu entry or icon. Installing a program and not being able to discover where it went can be frustrating.
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: CoreOS, Oracle Enterprise Linux 7 and Ubuntu 14.10
- 2Linux Top 3: Debian Dumps SPARC, Ubuntu Takes Over Linux 3.13 and the Core Infrastructure Initiative
- 3Linux Top 3: Fedora, Ubuntu and Gluster Lose Community Leaders
- 4Red Hat Enterprise Linux 7 Finally Hits the Big Time
- 5Linux Top 3: Tails 1.0, OpenMandriva Lx 2014.0 and Debian 7.5