检查远程端口是否对bash开放:
echo >/dev/tcp/8.8.8.8/53 && echo "open"
Ctrl + z
fg
openssl rand -hex n
source /home/user/file.name
${variable:0:5}
ssh -vvv user@ip_address
ssh user@ip_address -i key.pem
wget -r --no-parent --reject "index.html*" http://hostname/ -P /home/user/dirs
mkdir -p /home/user/{test,test1,test2}
ps axwef
jar -cvf name.war file
dd if=/dev/zero of=/tmp/output.img bs=8k count=256k; rm -rf /tmp/output.img
hdparm -Tt /dev/sda
echo -n "text" | md5sum
xmllint --noout file.xml
tar zxvf package.tar.gz -C new_dir
curl -I http://www.example.com
touch -t 0712250000 file
wget -m ftp://username:password@hostname
LANG=c < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-16};echo;
cp some_file_name{,.bkp}
smbclient -U "DOMAIN\user" //dc.domain.com/share/test/dir
!100
unzip package_name.zip -d dir_name
cat > test.txt
> test.txt
ntpdate ntp.ubuntu.com
netstat -lnt4 | awk '{print $4}' | cut -f2 -d: | grep -o '[0-9]*'
qemu-img convert -f qcow2 -O raw precise-server-cloudimg-amd64-disk1.img \ precise-server-cloudimg-amd64-disk1.raw
watch ps -ef
getent passwd
mount -o remount,rw /
mount --bind /source /destination
nsupdate < <EOF update add $HOST 86400 A $IP send EOF
grep -r "some_text" /path/to/dir
lsof / | awk '{ if($7 > 1048576) print $7/1048576 "MB "$9 }' | sort -n -u | tail
free -m | grep cache | awk '/[0-9]/{ print $4" MB" }'
vim + some_file_name
git clone git@github.com:name/app.git -b master
git checkout develop
git branch -d myfeature
git push origin :branchName
git push -u origin mynewfeature
!cat:p
!cat
find /home/user -maxdepth 1 -type d -empty
< test.txt sed -n '50,60p'
sudo !!
mount -t tmpfs tmpfs /tmpram -o size=512m
grep -w "name" test.txt
echo "some text" | sudo tee -a /path/file
kill -l
kill -9 $$
nmap -p 8081 172.20.0.0/16
git config --global user.email "me@example.com"
git pull --rebase origin master
find -iname "*txt*" -exec mv -v {} /home/user \;
paste test.txt test1.txt
pv data.log
echo "hosts.sampleHost 10 `date +%s`" | nc 192.168.200.2 3000
expand test.txt > test1.txt
< space >cmd
cd -
split –b 100m /path/to/large/archive /path/to/output/files cat files* > archive
curl -sL -w "%{http_code}\\n" www.example.com -o /dev/null
/usr/bin/mysql_secure_installation
Ctrl + \
stat -c %U file.txt
lsblk -f
find . -type f -exec egrep -l " +$" {} \;
find . -type f -exec egrep -l $'\t' {} \;
printf '%100s\n' | tr ' ' =