Environment Red Hat Enterprise Linux (RHEL) 4 5 6 7 Issue How to monitor the permission change and ownership change of a particular directory or file? How to configure auditd to find how a file was modified in Red Hat Enterprise Linux? What tool can audit files at a directory level? How do I monitor files or […]
$ tower-cli {resource} {action} ... The “resource” is a type of object within Tower (a noun), such as user, organization, job_template, etc.; resource names are always singular in Tower CLI (so it is tower-cli user, never tower-cli users). The “action” is the thing you want to do (a verb). Most Tower CLI resources have the following actions–get, list, create, modify, and delete–and have options corresponding to […]
vi mode commands Command Action k Move one line upwards l Move one character to the right h Move one character to the left w Move one word to the right W Move one word to the right past punctuation b Move one word to the left B Move one word to the left past […]
ciphers – SSL cipher display and cipher list tool. SYNOPSIS openssl ciphers [-s] [-v] [-V] [-ssl2] [-ssl3] [-tls1] [-stdname] [cipherlist] DESCRIPTION The ciphers command converts textual OpenSSL cipher lists into ordered SSL cipher preference lists. It can be used as a test tool to determine the appropriate cipherlist. COMMAND OPTIONS -s Only list supported ciphers: those consistent with the […]
The initial-status.gz and dpkg-query method from https://unix.stackexchange.com/a/80520/9132gives the most accurate and concise list for my needs. comm -13 \ <(gzip -dc /var/log/installer/initial-status.gz | sed -n ‘s/^Package: //p’ | sort) \ <(comm -23 \ <(dpkg-query -W -f=’${Package}\n’ | sed 1d | sort) \ <(apt-mark showauto | sort) \ ) Check_diff for i in `cat diff.txt`;do echo $i […]
Monitoring network interface statistics command: sar -n DEV The report contains the following IFACE: Name of the network interface for which statistics are reported. rxpck/s: packet receiving rate (unit: packets/second) txpck/s: packet transmitting rate (unit: packets/second) rxkB/s: data receiving rate (unit: Kbytes/second) txkB/s: data transmitting rate (unit: Kbytes/second) rxcmp/s: compressed packets receiving rate (unit: Kbytes/second) […]
credit: https://blkperl.github.io/puppet-dev-with-lxc.html Install LXC On Ubuntu installing LXC is easy and the package comes with working Ubuntu and Debian templates. sudo apt-get install lxc Create a puppet master The first thing we need is a puppet master. To do this we are going to use the lxc-create command to create a minimal Ubuntu Precise […]
Testing whether a proxy is set This command will show if there is a proxy server configured on the system: Raw echo $http_proxy Proxy setting for command line programs The http_proxy environment variable is used to specify proxy settings to client programs such as curl and wget. No username and password required: Raw export http_proxy=http://SERVER:PORT/ Username and password authentication: Raw […]