Oracle Linux/Quick Reference

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
Line 10: Line 10:
 
remove software
 
remove software
 
  ~$ yum remove lynx
 
  ~$ yum remove lynx
 +
search for package by command
 +
~$ yum whatprovides dig
 
==Add user & add to sudoers==
 
==Add user & add to sudoers==
 
add user
 
add user

Revision as of 02:37, 25 February 2017

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

search for package by command

~$ yum whatprovides dig

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

disable selinux

~$ /etc/selinux/config
change SELinux=enforcing to SELinux=disabled

check linux version

~$ rpm -qf /etc/redhat-release
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Open Source Products
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
2020 Election
Volkswagen
Covid
NCDMV
Toolbox