find . | xargs grep 'string' -sl
sudo find / | xargs grep 'http://127.0.0.1:4567' -sl
find / -iname 'wOrDs'
find . -type d -name "audit" -ls
ls -l -S
du -h | sort -nr
du -ksh /*
du -ksh * | sort -nr
sudo du -a / | sort -n -r | head -n 10
ls -lrt
# (Same but reverse)
ls -l --sort=time
# Show ubuntu distro
cat /etc/issue
Ubuntu 14.04.1 LTS \n \l
# Show centos distro
cat /etc/*release | grep release
# Show RedHat distro
cat /etc/redhat-release
sudo update-rc.d tomcat disable
tar -zcf archivename.tar.gz /my/dir
tar zcfv messages.rollup.20151016_0850.tar.gz messages-20140*
ls -Rl | wc -l
find . -type f -mtime +3 -exec rm {} \;
:set ff=unix
:wq
grep -B 3 -A 2 foo README.txt
sed -i '/\#/d' ./*.log
nproc
curl -L https://github.com/GESkunkworks/collectd-cloudwatch/tarball/feature/addDimensions > collectd-cloudwatch.tar.gz && tar -xvzf collectd-cloudwatch.tar.gz
sftp -o "IdentityFile=keyname" [email protected]
[email protected]
ps haux Ou | cut '-d ' -f1 | uniq -c
runuser -l userNameHere -c '/path/to/command arg1 arg2'
cp /etc/security/access.conf /etc/security/access.conf.2020-01-27
sed -i '/ALL : ALL/i + : ssm-user: ALL' /etc/security/access.conf
grep ":" /etc/security/access.conf