ã³ãã³ãã©ã¤ã³ã®ãã¼ãã·ã¼ã管çãã¼ã«ãCheatã
å æ¥ãTwitterãçºãã¦ãã¦ãtldrã¨ããã³ãã³ããç¥ãã¾ããã
man ã¯é·ãããã®ã§ãtldrã
ããã¯ä¾¿å©ãã¨ãã£ããå°å ¥ããã®ã§ãããã©ãããªãèªåã§ä½¿ããã¿ã¼ã³ãç»é²ã§ãããã®ããªããã®ãã¨æã£ã¦æ¢ãã¦ã¿ãã¨ãããCheatã¨ãããã¼ã«ãçºè¦ãã¾ãããã¨ãããã tldrã®GitHubãªãã¸ããªã®README ã§ç´¹ä»ããã¦ãã¾ããã
åºæ¬çã«ã¯tldrã¨åæ§ãæå®ããã³ãã³ãã®ãããã使ãæ¹ã®ãããªãã®ã表示ãã¦ããããã®ã§ããããã以å¤ã«ã表示å 容ãç·¨éããããæ°ããã³ãã³ãã®ä½¿ãæ¹ã追å ãããã¨ãã§ãããã¨ãããã®ã§ãã
ã¤ã³ã¹ãã¼ã«
Homebrewã§å ¥ãããã¨ãã§ãã¾ãã
$ brew install cheat
ã³ãã³ãèªä½ã¯Pythonã§ä½ããã¦ãããããªã®ã§ã pip
ã§ãã¤ã³ã¹ãã¼ã«ã§ããããã§ãã
使ãæ¹
ãã¼ãã·ã¼ãã®è¡¨ç¤º cheat <command>
å¼æ°ã¨ãã¦ã使ãæ¹ãç¥ãããã³ãã³ãã渡ããã¨ã§ããã®ä¸»ã ã£ã使ãæ¹ã表示ãã¾ãã
ä¾ãã° curl
ã®ä½¿ãæ¹ä¾ã観ããå ´åã¯ã以ä¸ã®ããã«å®è¡ãã¾ãã
$ cheat curl # Download a single file curl http://path.to.the/file # Download a file and specify a new filename curl http://example.com/file.zip -o new_file.zip ...
ãã¼ãã·ã¼ãã®ç·¨é cheat -e <command>
ã¨ãã£ã¿ãèµ·åãã¦ã表示å 容ãç·¨éãããã¨ãã§ããããã«ãªãã¾ãã
ç°å¢å¤æ° EDITOR
ãåç
§ãã¦ããããã§ãã
èªåã¯ãã curl
ã§ãªãã¤ã¬ã¯ãã辿ã£ã¦ãã¦ã³ãã¼ãããããªãã·ã§ã³ãå¿ããã®ã§ã curl
ã®ãã¼ãã·ã¼ããç·¨éãã¦ã以ä¸ã®ä¾ã追è¨ãã¦ããã¾ããã
# Follow the redirect curl -L http://example.com/file
ãã¼ããã·ã§ã³ã«æ³¨æ
ç§ã®ç°å¢ã§ã¯ cheat -e
ããã¨ãã«ãèªã¿åãå°ç¨ç¶æ
ã§éããã¾ããã
Homebrewã§å°å
¥ããã¨ããªãªã¸ãã«ã®ãã¼ãã·ã¼ããã¡ã¤ã«ã¯ /usr/local/Cellar/cheat/2.1.18/lib/python2.7/site-packages/cheat/cheatsheets/
ã¨ãã£ããã¹ã«ã³ãã³ãåä½ã§æ ¼ç´ããã¦ãããããªã®ã§ããããã®ãªãªã¸ãã«ãä¿è·ããããããåãã¡ã¤ã«ã¯èªã¿åãå°ç¨ã«ãªã£ã¦ãã¾ããã®ã§ããã®ãããã¨æãã¾ãã
ãã®å ´åã¯ãç·¨éå¾ã«å¥åä¿åãã¦ãå¿
è¦ãªã chmod
ã§æ¸ãè¾¼ã¿æ¨©éãä»ä¸ããã°OKã§ãã
ãªããç·¨éããå人ç¨ã®ãã¼ãã·ã¼ãã¯ãããã©ã«ãã§ã¯ ~/.cheat
ã¨ãããã¹ã«ä¿åãããããã§ãããããå¤æ´ãããå ´åã¯ã DEFAULT_CHEAT_DIR
ã¨ããç°å¢å¤æ°ãè¨å®ããã°è¯ãããã§ãã
ãã¼ãã·ã¼ãã®æ¤ç´¢ cheat -s <keyword>
æå®ãããã¼ã¯ã¼ããå«ããã¼ãã·ã¼ãå ãæ¤ç´¢ãããã¨ãã§ãã¾ãã
ä¾ãã° ãã¼ã¯ã¼ãã¨ã㦠awk
ãæ¤ç´¢ããã¨ã以ä¸ã®ããã«åºåããã¾ãã
$ cheat -s awk awk: printf '1\n2\n3\n' | awk '{ sum += $1} END {print sum}' printf '1:2:3' | awk -F ":" '{print $1+$2+$3}' seq 9 | sed 'H;g' | awk -v RS='' '{for(i=1;i<=NF;i++)printf("%dx%d=%d%s", i, NR, i*NR, i==NR?"\n":"\t")}' printf '1 2 3' | awk 'BEGIN {OFS=":"}; {print $1,$2,$3}' find: find . -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' history: history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 netstat: netstat -pln | grep <port> | awk '{print $NF}' openssl: awk '/-----BEGIN/,/END CERTIFICATE-----/' | \
awk
ã®ä½¿ç¨ä¾ã®ã»ããå
é¨çã« awk
ã使ã£ã¦ããã±ã¼ã¹ããããããã®ã§ãã³ãã³ãã®åå¼·ã«ããªãããããã¾ããã
ãã¼ãã·ã¼ãã®ä¸è¦§ cheet -l
ãããªæãã§ããºã©ãºã©ã£ã¨è¡¨ç¤ºããã¾ãã
7z /usr/local/Cellar/cheat/2.1.18/lib/python2.7/site-packages/cheat/cheatsheets/7z ab /usr/local/Cellar/cheat/2.1.18/lib/python2.7/site-packages/cheat/cheatsheets/ab apk /usr/local/Cellar/cheat/2.1.18/lib/python2.7/site-packages/cheat/cheatsheets/apk apparmor /usr/local/Cellar/cheat/2.1.18/lib/python2.7/site-packages/cheat/cheatsheets/apparmor apt-cache /usr/local/Cellar/cheat/2.1.18/lib/python2.7/site-packages/cheat/cheatsheets/apt-cache apt-get /usr/local/Cellar/cheat/2.1.18/lib/python2.7/site-packages/cheat/cheatsheets/apt-get aptitude /usr/local/Cellar/cheat/2.1.18/lib/python2.7/site-packages/cheat/cheatsheets/aptitude asciiart /usr/local/Cellar/cheat/2.1.18/lib/python2.7/site-packages/cheat/cheatsheets/asciiart asterisk /usr/local/Cellar/cheat/2.1.18/lib/python2.7/site-packages/cheat/cheatsheets/asterisk ...
ä¸è¨ã ã¨ãã¼ãã·ã¼ãèªä½ã®ãã¹ãåºåããã¦ãã¦å°ãè¦ã«ããã®ã§ãã³ãã³ãã ãæ½åºããã¨ã2/9æç¹(Cheat 2.1.18)ã§ã以ä¸ã®ã¨ããã§ããã
7z, ab, apk, apparmor, apt-cache, apt-get, aptitude, asciiart, asterisk, at, awk, bash, bower, chmod, chown, convert, crontab, csplit, cups, curl, cut, date, dd, df, dhclient, diff, distcc, dnf, docker, dpkg, du, emacs, ffmpeg, find, gcc, gdb, git, gpg, grep, gs, gzip, hardware-info, head, history, hub, ifconfig, indent, ip, iptables, irssi, iwconfig, journalctl, jq, jrnl, less, lib, ln, ls, lsof, lvm, man, markdown, mkdir, more, mount, mysql, mysqldump, nc, ncat, netstat, nmap, notify-send, nova, ntp, numfmt, od, openssl, p4, pacman, paste, pdftk, php, ping, ping6, pip, ps, python, readline, rm, route, rpm, rss2email, rsync, sam2p, scp, screen, sed, shred, smbclient, snmpwalk, sockstat, sort, split, sqlmap, ss, ssh, ssh-copy-id, ssh-keygen, stdout, strace, systemctl, systemd, tail, tar, tcpdump, tee, tmux, top, tr, truncate, udisksctl, uname, uniq, unzip, vagrant, vim, weechat, wget, xargs, yaourt, youtube-dl, yum, zip, zoneadm
é¢åãããã®ã§ä¸¡æ¹ä½¿ããã
ã¨ããã§ãåãã¿ã¤ãã³ã°ã®tldrã®å¯¾å¿ã³ãã³ãã¯ä»¥ä¸ã®ã¨ããã
â»tldrã¯æ§ã ãªè¨èªã»ãã©ãããã©ã¼ã ã®ãã®ãç¨æããã¦ãã¾ãããèªåçã«å°å ¥ããããNode.jsçã使ã£ã¦ãã¾ãã
7za, ab, ack, adb, ag, alias, apropos, ar, aria2c, arp, atom, autojump, autossh, awk, axel, bash, bashmarks, bc, bmaptool, bundle, cal, calibre-server, calibredb, cat, cd, chmod, chown, chsh, cksum, clang, comm, convert, convmv, cordova, cowsay, cp, csvclean, csvcut, csvformat, csvgrep, csvlook, csvpy, csvsort, csvstat, curl, cut, date, deluser, df, dhcpwn, diff, dig, docker, dokku, drush, ebook-convert, echo, electrum, emacs, enca, env, espeak, exiftool, fdupes, ffmpeg, file, find, for, fortune, fswebcam, fzf, gcc, gem, gifsicle, git-add, git-blame, git-branch, git-checkout, git-clone, git-commit, git-config, git-diff, git-fetch, git-init, git-log, git-merge, git-mv, git-pull, git-push, git-rebase, git-remote, git-rm, git-stash, git-status, git-svn, git-tag, git, glances, gpg, gradle, grep, gzip, handbrakecli, haxelib, history, host, iconv, if, ifconfig, in2csv, ionice, ioping, ipcs, jar, java, javac, kill, last, latexmk, less, license, ln, lp, lpstat, ls, lsof, lwp-request, mailx, make, man, mitmproxy, mkdir, mocha, montage, more, mount, mp4box, mtr, mv, mysql, mysqldump, nano, nc, nginx, nice, nix-env, nmap, node, nohup, npm, nvm, openssl, optipng, pandoc, parallel, pass, passwd, paste, patch, pdflatex, pg_dump, pg_restore, pgrep, php, phpize, phpunit, pigz, ping, pip, pkill, play, pngcrush, printf, ps, psql, pushd, pv, pwd, python, read, redis-cli, redshift, rename, renice, rm, rmdir, route, rsync, sails, salt-call, salt-key, salt-run, salt, sass, scp, screen, sed, seq, sftp, shred, skicka, sl, socat, sort, sox, split, srm, ssh-keygen, ssh, sshfs, strings, su, sudo, sum, svn, tabula, tac, tail, tar, tcpdump, tee, telnet, test, time, tldr, tldrl, tmux, touch, tr, traceroute, transcode, tree, ufraw-batch, umount, uname, uniq, unrar, unzip, uptime, vagrant, vim, vimtutor, virtualenv, w, watch, wc, wget, which, while, who, whoami, x_x, xargs, xz, yes, youtube-dl, zbarimg, zcat, zdb, zfs, zip, zless, zpool, airport, archey, base64, brew, caffeinate, dd, diskutil, ditto, drutil, du, head, hostname, locate, md5, mdfind, netstat, networksetup, nm, open, pbcopy, pbpaste, qlmanage, route, say, shutdown, sw_vers, sysctl, system_profiler, systemsetup, top, w, wacaw, xctool, xed, xsltproc
tldrã®æ¹ããµãã¼ããã¦ããã³ãã³ãã¯å¤ããã¾ãCheatã¨éã£ã¦ãã¼ãã·ã¼ãã®å
容ã®ã¿ã¢ãããã¼ãã§ããï¼ tldr -u
ï¼ã®ã§ãä»å¾ãã¾ã ã¾ã å¢ãã¦ããããã
ãã£ã¦æ®æ®µä½¿ãçã«ã¯tldrã®æ¹ããããããçãé«ããã§ãããCheatã¯èªåç¨ã®ãã¼ãã·ã¼ããç¨æã§ããã®ã便å©ã
ã¨ãããã¨ã§ã両æ¹å¼ã³åºãã·ã§ã«ã¹ã¯ãªãããä½ã£ã¦ä½¿ããã¨ã«ãã¾ããã
以ä¸ã®gistãå®è¡æ¨©éä»ãã§PATHãéã£ãå ´æã«ä¿åãã¦ã how <command>
ã§ä½¿ãã¾ãã
å®è¡ããã¨ã以ä¸ã®ãããªæã㧠cheat
㨠tldr
両æ¹ã®çµæãåºåãã¾ãã
$ how curl ======================================= cheat # Download a single file curl http://path.to.the/file # Download a file and specify a new filename curl http://example.com/file.zip -o new_file.zip # Follow the redirect curl -L http://example.com/file ... ======================================== tldr curl Transfers data from or to a server. Supports most protocols including HTTP, FTP, POP. - Download a URL to a file: curl "URL" -o filename - Send form-encoded data: curl --data name=bob http://localhost/form - Send JSON data: curl -X POST -H "Content-Type: application/json" -d '{"name":"bob"}' http://localhost/login ...
åè
- ä½è : æ¾æµ¦æºä¹,USPç 究æ
- åºç社/ã¡ã¼ã«ã¼: ã·ã¼ã¢ã³ãã¢ã¼ã«ç 究æ
- çºå£²æ¥: 2015/07/25
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- ãã®ååãå«ãããã° (4件) ãè¦ã