admin tools Flashcards
What tool is used to install software?
rpm - Red hat package manager
what web site provides more details about rpm?
rpm.org
rpm option for applying upgrades
–upgrade
uninstall a software package
rpm –erase
find out what is installed
rpm -qa
find out where a software package is installed
get the full name of the package you are lookng for:
rpm –query –all |grep <searchtoken></searchtoken>
List all the files associated with the package install
rpm -ql rpm -q <name>
</name>
to get a complete listing of all apps installed
rpm –query –all
what command would provide a detailed list of all install applications?
rpm -qig Applications/System
- g show all groups for the provided string
- i show detailed information about each
what tells you the DHCP server being used by a linux workstation?
cat /var/lib/dhclient/dhclient-eth0.leases
what command will renew a DHCP lease?
dhclient -r
what authentication schemes are available?
using PAM (Pluggable Authentication Modules) the following can be used:
flat files
NIS
LDAP
Samba
Kerberos
What are the typical partitions on a linux server?
/ or root
/boot
/usr (program app files)
/home (user docs)
/var (system procs and logs)
/tmp
/swap (virtual memory)
how big should the swap partition be?
The swap file for virtual storage should be double the physical memory
what partition is /dev/sdb4 ?
the 4th partition on the disk with ID 2 (b)
what is used to install or remove applications?
Red Hat Package Manager RPM
how do you get a list of configuration files associated with an application?
rpm -qc <name></name>
rpm -qc bash
what command will show all apps installed with all details?
rpm -q -i –all
how do you get a list of installed shells?
rpm -qa –queryformat ‘%10{name} %20{GROUP}\n’ |grep -i shells
what is stored in the passwd file
login
encrypted password
UID
default GID
name
home directory
login shell
what appears in the passwd file if shadow passwords are being used?
an x appears in the encrypted password field in /etc/passwd
what command is used to change the system run level?
init { 0 1 2 3 4 5 6 }
0 — Halt
1 — Single-user text mode
2 — Multiuser but no NFS
3 — Full multi-user text mode
4 — Not used (user-definable)
5 — Full multi-user with X11
6 — Reboot
where are the default environment configuration template files stored?
/etc/skel
what file holds a list of available shells?
/etc/shells
what are the fields in the shadow file?
Login name
encrypted password
last passwd change
days until change allowed
days before change required
days warning for expire
days before account inactive
days before account disabled
reserved field
what are the fields in the group file?
group name
group password (optional: if set allows users to join group)
group ID
group members
(comma separated list)
Connection leaks to DB (exceeding limits?)
Look for SQL hang-ups
Check for hung threads ps –auxww
Check for messaging problems with corba or jms
Kill -3