Last active
April 15, 2016 14:36
-
-
Save jabedude/2a0735af0b37da9064e1bca766bc308e to your computer and use it in GitHub Desktop.
not completely real nix survey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
date | |
ls -la / | |
ls -la /etc | |
ls -la /sbin | |
ls -la /usr | |
ls -la /usr/bin | |
ls -la /usr/sbin | |
ls -la /etc/rc2.d | |
ls -la /etc/rc3.d | |
ls -lac /etc/rc3.d | |
ls -la /etc/init.d | |
ls -la /etc/cron.d | |
ls -la /var/spool/cron/crontabs | |
ls -la /var/spool/cron/atjobs | |
tail -50 /var/log/syslog | |
tail -50 /var/adm/messages | |
tail -50 /var/log/authlog | |
cat /etc/resolve.conf | |
echo /proc/* | |
cat /etc/inittab | |
cat /var/spool/cron/crontabs/root | |
cat /etc/syslog.conf | |
cat /etc/inetd.conf | |
cat /etc/passwd | |
cat /etc/group | |
cat /etc/shadow | |
cat /.history | |
cat /.bash_history | |
cat /root/.history | |
cat /root/.bash_history | |
cat /proc/version | |
cat /proc/cpuinfo | |
date | |
uptime | |
uname -a | |
psrinfo -v | |
hostid | |
modinfo -c | |
ps -ef | |
who -r | |
who -b | |
id -a | |
w | |
env | |
df -k -l | |
ls -1 /export/home | xargs -Ixxx cat "/export/home/xxx/.history" | |
ls -1 /export/home | xargs -Ixxx cat "/export/home/xxx/.bash_history" | |
vmstat | |
arp -an | |
netstat -nr | |
chkconfig --list | |
netstat -anp | |
prtpicl | |
netstat -na | |
ls -lart /etc/rc.d/rc3.d/ | |
lsmod | |
rpcinfo -p | |
netstat -antup | |
ldd /usr/sbin/sshd | |
ldd //usr/libexec/mysqld | |
ldd /usr/bin/sendmail | |
ldd /usr/sbin/sendmail | |
modinfo -c | |
hostid | |
id -a | |
locale | |
lsof -i -Pn | |
#find log files modified in last 20 min | |
find / -type f -iname "*.log*" -mmin -20 2> /dev/null -exec ls -lrt {} \; | |
#Find all files that are executable and then lists them oldest last. | |
#The -iname "*" is just a placeholder here... can change to whatever ... like .py | |
find / -type f -executable -iname "*" -printf '%T@ %c %s %p\n' 2>/dev/null | sort -k 1n,1 -k 7 | cut -d' ' -f3- | |
find / -type f -executable -iname "*.py" -printf '%T@ %c %s %p\n' 2>/dev/null | sort -k 1n,1 -k 7 | cut -d' ' -f3- | |
find / -type f -executable -iname "*.sh" -printf '%T@ %c %s %p\n' 2>/dev/null | sort -k 1n,1 -k 7 | cut -d' ' -f3- | |
date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment