# all files in current dir (recursive)find.-typef-ls# OS name, versioncat/etc/issuecat/etc/*-releasecat/proc/versionldd--version# usernamecat/proc/self/environ# IP address (without ifconfig)cat/etc/sysconfig/network-scripts/<files>|grepIP# internal portsnetstat-anot|netstat-alnp|netstat-antp|netstat-tulnpnetstat-anptcp#freeBSD# neighorsarp-anmclidevshow# process running on portlsof-i:PORT# extended permsgetfacl [FILE |FOLDER]# processespsfauxwww# firewall enumgrep-Hsiptables/etc/*
Search for text in files (and !)
# search keyword in all files recursivegrep-iR"<keyword>"<SEARCH-PATH>--color=alwauys2>/dev/nullgrep-Rnw<path-to-search>-ie"<keyword>"--color=always2>/dev/null# grep all files not containing certain textgrep-L"TEXT_FILE_SHOULD_NOT_CONTAIN" [files |*.extension]# print file contents without comments (#) and removes the empty lines.grep-v"^[#;]"FILE|grep-v"^$"