1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
| uname -a
lsb_release -a cat /etc/os-release
cat /proc/cpuinfo | grep 'core id' sudo lshw -class processor sudo dmidecode -t 4 ncpu lscpu
sftp user@host scp
whatis man info
sudo date --set "2021-07-01 01:00:00" sudo date -s "2021-07-01 01:00:00"
dns-sd -q google.com
find locate
ps -eo pid,command
ps aux | awk '{print $1, $2, $3, $11}' | sort -n -k3 -r | head -n 10
ls 1> output.log 2> error.log ls &> output_error.log grep abc < content grep abc < content &> out_error.log
grep xxx < input.txt | sort
grep -rnw 'path/to' -e 'pattern'
grep --include=\*.{c,h} -rnw '/path/to/somewhere/' -e "pattern" grep --exclude=\*.o -rnw '/path/to/somewhere/' -e "pattern" grep --exclude-dir={dir1,dir2,*.dst} -rnw '/path/to/search/' -e "pattern"
nvidia-smi -l 5 watch -n 1 -d nvidia-smi
sudo adduser xxx sudo deluser --remove-home xxx su xxx sudo groupadd yyy sudo groupdel yyy groups [xxx] id [xxx] /etc/passwd /etc/group
Owner/OwnerGroup/Other chown chmod
find . ! -newermt "2020-05-29 00:00:00" | xargs rm -rf
sudo lsof -i tcp:2222 | grep ssh | awk '{print $2}' | xargs kill -9 sudo fuser -k 5000/tcp
ssh -N -f -L localhost:3307:192.168.1.51:3306 username@host -i file
systemctl status firwalld firewall-cmd --list-ports firewall-cmd --reload firewall-cmd --zone=public --add-port=80/tcp --permanent systemctl start/stop firewalld.service systemctl disable firewalld.service
service iptables status service iptables stop service iptables save iptables -L -n -v iptables -F iptables -A INPUT/OUTPUT -p tcp --dport 80 -j REJECT/ACCEPT systemctl start iptabels systemctl enable iptables systemctl disable iptables
|