List Of Commands To Collect System Information Of A Linux Computer
I am keeping this article short and going straight to the list. It is meant as a reference article for whenever anyone or myself needs the commands to get system information on various kinds of Linux and Unix OS based servers, or stations. Many of these commands work for OSs like Red Hat Linux, RHEL, Debian, Ubuntu, Fedora, CentOS, SUSE, Slackware, various Unix OSs, etc.
If the command from the list below does not apply to your particular OS, you will simply get an error message that the command does not exist; no harm will be done. The list already takes into consideration a system that has up to 4 Ethernet connections/ports and up to 8 Ethernet aliases per physical Ethernet port. If your system has less Ethernet ports or aliases, it is okay to paste all the ones listed here. Nothing bad will happen.
Please note that I do not get paid to write these articles. This article took an hour or 2 to make, and if past research and time to collect all the commands is included, then it took a day and maybe 2 days of work.
List Of Commands To Gather Information About Your Linux/Unix Computer.
ifconfig -a
cat /proc/cpuinfo
free
sysctl -a
cat /proc/version
more /etc/sysconfig/network-scripts/ifcfg-eth0
more /etc/sysconfig/network-scripts/ifcfg-eth0:0
more /etc/sysconfig/network-scripts/ifcfg-eth0:1
more /etc/sysconfig/network-scripts/ifcfg-eth0:2
more /etc/sysconfig/network-scripts/ifcfg-eth0:3
more /etc/sysconfig/network-scripts/ifcfg-eth0:4
more /etc/sysconfig/network-scripts/ifcfg-eth0:5
more /etc/sysconfig/network-scripts/ifcfg-eth0:6
more /etc/sysconfig/network-scripts/ifcfg-eth0:7
more /etc/sysconfig/network-scripts/ifcfg-eth1
more /etc/sysconfig/network-scripts/ifcfg-eth1:0
more /etc/sysconfig/network-scripts/ifcfg-eth1:1
more /etc/sysconfig/network-scripts/ifcfg-eth1:2
more /etc/sysconfig/network-scripts/ifcfg-eth1:3
more /etc/sysconfig/network-scripts/ifcfg-eth1:4
more /etc/sysconfig/network-scripts/ifcfg-eth1:5
more /etc/sysconfig/network-scripts/ifcfg-eth1:6
more /etc/sysconfig/network-scripts/ifcfg-eth1:7
more /etc/sysconfig/network-scripts/ifcfg-eth2
more /etc/sysconfig/network-scripts/ifcfg-eth2:0
more /etc/sysconfig/network-scripts/ifcfg-eth2:1
more /etc/sysconfig/network-scripts/ifcfg-eth2:2
more /etc/sysconfig/network-scripts/ifcfg-eth2:3
more /etc/sysconfig/network-scripts/ifcfg-eth2:4
more /etc/sysconfig/network-scripts/ifcfg-eth2:5
more /etc/sysconfig/network-scripts/ifcfg-eth2:6
more /etc/sysconfig/network-scripts/ifcfg-eth2:7
more /etc/sysconfig/network-scripts/ifcfg-eth3
more /etc/sysconfig/network-scripts/ifcfg-eth3:0
more /etc/sysconfig/network-scripts/ifcfg-eth3:1
more /etc/sysconfig/network-scripts/ifcfg-eth3:2
more /etc/sysconfig/network-scripts/ifcfg-eth3:3
more /etc/sysconfig/network-scripts/ifcfg-eth3:4
more /etc/sysconfig/network-scripts/ifcfg-eth3:5
more /etc/sysconfig/network-scripts/ifcfg-eth3:6
more /etc/sysconfig/network-scripts/ifcfg-eth3:7
route -n
route
netstat -tulpn
sfdisk -d
sfdisk -l
more /etc/fstab
more /etc/hosts
more /etc/resolv.conf
chkconfig --list
df
df -h
more /var/log/dmesg
more /proc/ioports
more /proc/partitions
more /proc/ide/ide0/hda/settings
more /proc/ide/ide0/hda/driver
more /proc/ide/ide0/hda/media
more /proc/ide/ide0/hda/model
more /proc/ide/ide0/hda/identify
more /proc/ide/ide0/channel
more /proc/ide/ide0/config
more /proc/ide/ide0/mate
more /proc/ide/ide0/model
more /proc/mounts
more /proc/mdstat
more /etc/lilo.conf
more /etc/grub.conf
more /proc/rd/c0/current_status
more /proc/rd/status
rpm -qa
service --status-all
ulimit -a
lsmod
xdpyinfo
uname -a
more /etc/network/interfaces
w
who
ps auxw
dpkg --list
cat /etc/*-release
iptables -L
The below can be copied into an executable batch file and ran at system command level (usually don on servers) to get a text file output that contains all the system information. When the batch is ran, it checks for the .txt file outpu and removes any old ones first. So, you can repeatedly and keep getting updated results. You can create a file named something like SystemInfo.bat and set it's permissions to 700 (wrx------) so you can execute the batch file commands by simply typing ./SystemInfo.bat at command level. You can download the below batch file here (on some OS, you may need to right mouse click and choose Save-Link or Save-Link-As). Note that the iptables -L
command has not been included in the below batch, since on some servers it takes a long time to output it's results, and instead, I have included iptables -L -n
in the below batch.
Batch File Commands To Run To Get Information For Most Popular Linux Type OSs.
rm -f TechNotes_whw1_com-SysInfoBatchOutput.txt ; touch TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"ifconfig -a\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; ifconfig -a >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"cat /proc/cpuinfo\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; cat /proc/cpuinfo >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"free\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; free >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"sysctl -a\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; sysctl -a >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"cat /proc/version\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; cat /proc/version >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth0\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth0 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth0:0\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth0:0 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth0:1\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth0:1 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth0:2\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth0:2 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth0:3\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth0:3 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth0:4\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth0:4 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth0:5\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth0:5 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth0:6\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth0:6 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth0:7\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth0:7 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth1\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth1 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth1:0\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth1:0 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth1:1\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth1:1 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth1:2\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth1:2 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth1:3\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth1:3 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth1:4\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth1:4 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth1:5\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth1:5 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth1:6\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth1:6 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth1:7\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth1:7 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth2\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth2 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth2:0\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth2:0 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth2:1\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth2:1 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth2:2\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth2:2 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth2:3\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth2:3 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth2:4\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth2:4 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth2:5\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth2:5 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth2:6\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth2:6 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth2:7\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth2:7 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth3\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth3 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth3:0\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth3:0 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth3:1\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth3:1 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth3:2\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth3:2 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth3:3\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth3:3 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth3:4\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth3:4 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth3:5\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth3:5 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth3:6\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth3:6 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/sysconfig/network-scripts/ifcfg-eth3:7\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/sysconfig/network-scripts/ifcfg-eth3:7 >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"route -n\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; route -n >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"route\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; route >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"netstat -tulpn\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; netstat -tulpn >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"sfdisk -d\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; sfdisk -d >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"sfdisk -l\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; sfdisk -l >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/fstab\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/fstab >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/hosts\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/hosts >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/resolv.conf\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/resolv.conf >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"chkconfig --list\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; chkconfig --list >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"df\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; df >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"df -h\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; df -h >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /var/log/dmesg\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /var/log/dmesg >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/ioports\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/ioports >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/partitions\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/partitions >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/ide/ide0/hda/settings\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/ide/ide0/hda/settings >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/ide/ide0/hda/driver\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/ide/ide0/hda/driver >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/ide/ide0/hda/media\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/ide/ide0/hda/media >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/ide/ide0/hda/model\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/ide/ide0/hda/model >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/ide/ide0/hda/identify\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/ide/ide0/hda/identify >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/ide/ide0/channel\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/ide/ide0/channel >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/ide/ide0/config\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/ide/ide0/config >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/ide/ide0/mate\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/ide/ide0/mate >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/ide/ide0/model\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/ide/ide0/model >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/mounts\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/mounts >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/mdstat\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/mdstat >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/lilo.conf\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/lilo.conf >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/grub.conf\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/grub.conf >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/rd/c0/current_status\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/rd/c0/current_status >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /proc/rd/status\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /proc/rd/status >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"rpm -qa\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; rpm -qa >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"service --status-all\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; service --status-all >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"ulimit -a\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; ulimit -a >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"lsmod\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; lsmod >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"xdpyinfo\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; xdpyinfo >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"uname -a\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; uname -a >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"more /etc/network/interfaces\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; more /etc/network/interfaces >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"w\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; w >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"who\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; who >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"ps auxw\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; ps auxw >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"dpkg --list\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; dpkg --list >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"cat /etc/*-release\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; cat /etc/*-release >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
echo -e "Results for \"iptables -L -n\":" >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; iptables -L -n >> TechNotes_whw1_com-SysInfoBatchOutput.txt ; echo -e "\n#################\n" >> TechNotes_whw1_com-SysInfoBatchOutput.txt
Please feel free to contribute your own commands to the above list by putting them in the bellow Comments section.
Also, iptables -L
is useful for providing the current firewall access and filter list. Simply looking at a file like /etc/sysconfig/iptables may not show you all that is currently being used by the Firewall list, since other programs can modify the firewall (iptables) in memory without modifying the /etc/sysconfig/iptables files (or similar file or location). I did not include the iptables command in the above batch because sometimes the iptables list can be very long and take a very long time on some systems. So, it is left as an option item to execute at command level. Instead, I have included iptables -L -n
in the above batch, which shows only numerical IPA info, and no reverse looked up names.
Consider Contributing
If you found this article or any Tech Notes article useful, then consider making a contribution as a simple thanks. Any amount can be given; even just one dollar ($1). The Paypal contribution button is safe and does not require you to have a Paypal account to make a contribution to Tech Notes.
Consider submitting an article of your own to Tech Notes. I will create a sub-category for your article if needed. Guest articles are welcome!
Feel Free To Leave A Good Comment. :)
Look around this site and it's menus, and you may find other useful articles.