Allen Pomeroy

IT security thoughts and personal stuff

Linux and Mac OS X bash_history nuggets

Tags: , ,

Here’s some notable CLI entries that I refer to occassionally. You can also select the Notes category and you’ll get more specific topics such as Linux LVM and Mac OS X commands.

Mac OS X:

sudo /usr/sbin/sysctl -w net.inet.ip.fw.enable=1
sudo /sbin/ipfw -q /etc/firewall.conf
sudo ifconfig en0 lladdr 00:1e:c2:0f:86:10
sudo ifconfig en1 alias 192.168.0.10 netmask 255.255.255.0
sudo ifconfig en1 -alias 192.168.0.10
sudo route add -net 10.2.1.0/24 10.3.1.1

Linux:
rpm commands:
List files in an rpm file
rpm -qlp package-name.rpm

List files associated with an already installed package
rpm --query –-filesbypkg package-name

Tags: , ,

Leave a Reply

© 2011 Allen Pomeroy. All Rights Reserved. This is the personal website of Allen Pomeroy. Opinions expressed are not necessarily those of my employer.