shell command basic ascii to binary 1 2 3 4 5 $ echo -n "A" | xxd -b 0000000: 01000001 A $ echo -n "A" | xxd -b | awk '{print $2}' 01000001 https://unix.stackexchange.com/questions/98948/ascii-to-binary-and-binary-to-ascii-conversion-tools base64 > hex 1 echo "YWJj" |base64 -d|xxd Display the last users who have logged onto the system 1 last Display the user and group ids of your current user 1 id Display who is online
修改 MySQL 字符集 查看字符集设置 1 2 3 show variables like 'character_set_%'; 1 2 3 4 5 6 7 8 9 10 11 set character_set_client=utf8; set character_set_connection=utf8; set character_set_database=utf8; set character_set_results=utf8; set character_set_server=utf8; set character_set_database=utf8; ..character_set_client ..character_set_connection ..character_set_database sudo emacs /etc/MySQL/my.cnf 在[client]下添加 default-character-set=utf8 在[MySQLd