issueBlog
issueBlog copied to clipboard
linux命令
- md5 CentOS-7-x86_64-Minimal-XXXX.iso
- vimtutor (start the Vim tutorial)
- vi /etc/hosts vi /etc/resolv.conf (responsible for configuring static DNS server addresses)
nameserver 8.8.8.8 nameserver 8.8.4.4
- cat /etc/passwd
- id root
- usermod -G your_new_group your_new_username
- rsync -avz --delete /path/to/source/files/ ~/sync-target
- diff -r /path/to/source/files/ ~/sync-target
- rsync --delete -avz --exclude=".zip" --exclude=".iso" /path/to/source/ /path/to/external/disk/
- openssl base64 -in abc.pdf -out encoded.txt
dirname
http://www.computerhope.com/unix/udirname.htm http://stackoverflow.com/questions/17167769/what-does-dirname-do
deployDir=$(cd "$(dirname "$0")"; cd ..; pwd)
http://www.ibm.com/developerworks/cn/linux/l-lpic1-map/
https://www.lifewire.com/learn-how-linux-4102755
https://www.howtoforge.com https://www.tecmint.com/category/linux-commands/