Oracle Linux/Quick Reference
From r00tedvw.com wiki
(Difference between revisions)
Line 21: | Line 21: | ||
==determine packages installed & search== | ==determine packages installed & search== | ||
~$ rpm -qa | less | grep term | ~$ rpm -qa | less | grep term | ||
+ | ==netstat== | ||
+ | determine gateway | ||
+ | ~$ netstat -nr | ||
+ | Kernel IP routing table | ||
+ | Destination Gateway Genmask Flags MSS Window irtt Iface | ||
+ | 0.0.0.0 10.45.9.1 0.0.0.0 UG 0 0 0 eth0 | ||
+ | 10.45.9.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 | ||
+ | 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 |
Revision as of 11:40, 28 April 2014
Contents |
yum
update repo cache (agt-get update equivalent)
~$ yum check-update
update all packages
~$ yum update
install software
~$ yum install lynx
search for software
~$ yum search apache
remove software
~$ yum remove lynx
Add user & add to sudoers
add user
~$ useradd user
set password for user
~$ passwd user
add to sudoers
~$ visudo ... user ALL=(ALL) ALL
determine packages installed & search
~$ rpm -qa | less | grep term
netstat
determine gateway
~$ netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 10.45.9.1 0.0.0.0 UG 0 0 0 eth0 10.45.9.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0