cat /etc/lsb-releaseWhich returns the distribution information, parsed as follows:
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04.5 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu Precise Pangolin (LTS)"LSB_release can also be run as a command, as follows:
lsb_release -aWhich returns the following:
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu Precise Pangolin (LTS) Release: 12.04.5 Codename: preciselab_release can be used as a command as well:
cat /etc/issue.netWhich returns:
Ubuntu Precise Pangolin (development branch)In Debian, you can simply look at the version file:
cat /etc/debian_versionWhich returns the following:
wheezy/sidOr Red Hat Enterprise can also be located with /etc/issue.net:
cat /etc/issue.netWith many variants, including OS X, you can also use uname to determine kernel extensions, etc:
uname -aThe thing I’ve learned about Linux is that there’s always a better way to do things. So feel free to comment on your better way or favorite variant!
krypted March 5th, 2015
rpm -qaWhen you locate the name of a package you’d like to know more about, use the -i to get more information, along with the -q to query, followed by the name of the package:
rpm -qi libcapThis shows a list of all the files installed as part of the package.
krypted September 19th, 2013
mkdir /disabledThen, we’re going to need to move the cvfs files and folders, mostly stored as /etc/init.d/cvfs, /etc/init.d/cvfsold and the contents of /usr/cvfs:
mv /etc/init.d/cvfs /disabled/ mv /etc/init.d/cvfsold /disabled/ mv /usr/cvfs /disabled/Next, reboot and you should be good. If you remove a system from a network and only edit fstab then it will still lock up when loading the fsmpm, so make sure to do all the steps indicated. You can then re-activate StorNext by uncommenting the lines in /etc/fstab and putting the files back by running the following:
mv /disabled/cvfs /etc/init.d/cvfs mv /disabled/cvfsold /etc/init.d/cvfsold mv /disabled/cvfs /usr/cvfsThen reboot and voila, you’re back on the SAN. Good luck!
krypted September 14th, 2013
yum install wiresharkRun a capture:
tethereal -i eth1 -w ~/mycapture.pcapThis command will run a Wireshark capture on the eth1 interface and output the data to a file called mycapture.pcap in your home directory. You can then view this file in the X11 interface for Wireshark or grep it for specific information.
krypted April 14th, 2007