Sys Admin Flashcards
What command would you use to check memory performance?
vmstat
vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity.
The first report produced gives averages since the last reboot. Additional reports give information on a sampling period of length delay. The process and memory reports are instantaneous in either case.
Or use memstat
What is the man command used for?
It displays information about the syntax for a command.
What tools are used to measure disk I/O?
vmstat - Report virtual memory statistics.
memstat -
iostat - Report CPU statistics and i/o statistics for devices, partitions and network filesystems (NFS).
sar - Collect, report, or save system activity information.
Where is the httpd.conf file located?
/etc/httpd/conf/httpd.conf
How would you restart the https service?
/usr/sbin/apachectl restart
If the httpd service having issues restarting, where would you look for more information?
/var/log/httpd/error_log
What log would you look in to find issues that may have happened during the boot process?
/var/log/dmesg
/var/log/boot.log
/var/log/messages
How can you find which ports are listening on a server, both locally and remotely?
Locally:
netstat –listen
netstat -tuplan
lsof -i (list open files)
Remotely:
nmap
netcat
What is the chroot command?
chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally not access) files outside the designated directory tree.
Where are default system / service config files located?
/etc/sysconfig/
How would you restart the httpd service?
/usr/sbin/apachectl restart
service httpd restart
What default port does HTTPS listen on?
443
What would occur if the system were booted into run level 3 and the command “init 1” was executed from the command-line?
As root, that would put the system into single user mode without a reboot
What is the difference between run level 3 and run level 5?
run level 3 is the default multiuser run level, run level 5 is for X11 or graphical/desktop.
What is the significance of the init process?
init - short for initialisation is a daemon process that is the direct or indirect ancestor of all other processes.