forked from l0b0/tilde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_history
1800 lines (1800 loc) · 68.1 KB
/
.bash_history
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
ack-grep --all --ignore-dir .jhw-cache --ignore-dir .sass-cache --ignore-dir log --ignore-dir public --ignore-dir tmp "pattern" . # search rails
ack-grep "pattern" . # search
acpi_listen # events power configuration
alias ls
align_image_stack -vl -a aligned *.jpg # graphics
alsamixer # audio input output volume
aplay --list-pcms # list audio output speaker
aplay recording.wav # audio output
apropos . # all help man
apropos bash # help man
apropos --exact mv # help man
arandr & # screen layout graphics hardware
arch # hardware
arecord --duration 5 --format dat recording.wav # record audio file
arecord --format dat | aplay # test audio input capture output playback default microphone speakers
arecord --list-devices # list audio input capture microphones
ash -o noexec ~/dev/makeThin/makeThin.ash # verify syntax
aticonfig --initial=check # graphics amd x configuration
autoconf # compile
autoreconf --install # compile
avahi-browse-domains --terminate # network domains scan
avahi-browse --terminate --all # network services scan local remote
avahi-browse --terminate --ignore-local _workstation._tcp # network tcp workstations scan remote
avconv -i %04d.jpg -vcodec libx264 -bf 0 -crf 12 -an -r 25 -s hd1080 timelapse2.mp4 # video convert
avconv -i input.mov -codec copy -ss 15 output.mov # video cut
avconv -i input.mov -codec:video libx264 -codec:audio copy -filter transpose=clock output.mov # video rotate
awesome --check # configuration verify parse
basename -- "$PWD" # current directory name
bash -c 'trap "echo baz" INT; kill -INT $$' > test.txt # signal
bashdb test.sh # debug script
bash --noprofile --norc -x # test trace
bash -o noexec ~/.bash_history # verify syntax
bash -o xtrace # debug
bash test.sh # run script
bash --version
bc <<< '2+2' # calculator math
bchunk image.bin image.cue image.iso
bc --mathlib <<< 'e(1)' # calculator math e power
bc <<< 'scale = 10; sqrt ( 2 )' # calculator math precision scale float decimal
bg # background job
bind -P | grep --fixed-strings ' can be found on ' | perl -pe 's/((?<!\\)(?:\\\\)*)\\C/\1Ctrl/g;s/((?<!\\)(?:\\\\)*)\\e/\1Esc,/g' # keyboard shortcuts
bind -p | grep --invert-match --regexp '^$' --regexp '^#' --regexp 'self-insert$' | sed "s/\(.*\)/bind '\1'/" | tr --squeeze-repeats '\n' ';' # shortcuts code
builtin # bash list
bundle help # rails
bundle init # rails
bundle install # rails
bundle package
bundle update # rails
bunzip2 file.bz2 # compression bzip
cap deploy:check # rails
cap deploy:login
cap deploy:migrations # rails
cap deploy # rails
cap deploy:rollback # rails
cap deploy:setup # rails
capify . # rails
cap # rails
cat ~/contacts/*.vcf > ~/all.vcf # concatenate vcard
cat /dev/zero > /tmp/ramdisk.XXXXXXXXXX/full.log # fill ramdisk partition file tmpfs
cat /etc/papersize # print
cat /etc/*release # os
cat /proc/1/stat | awk '{ print $22 }' # process start time jiffies since boot
cat /proc/cpuinfo # hardware
cat /proc/devices # hardware
cat /proc/filesystems # hardware
cat /proc/misc # hardware
cat /proc/stat # hardware
cat /proc/sys/kernel/pid_max # process
cat /proc/vmstat # hardware
cat /sys/class/hwmon/hwmon0/device/fan1_output # hardware macmini4,1 speed
cd -- $'--$`!*@\a\b\E\f\r\t\v\\\'"\360\240\202\211 \n' # test
cd - # back
cd -- "$(mktemp --directory)" # create temporary directory
certutil # help
checkbashisms ./*.sh
chmod u+x test.sh
clamtk & # antivirus
cmp --print-bytes $(which arch) $(which uname) # binary diff
coffee -v # coffeescript
comm -23 <(grep --no-filename ^FN: ~/contacts.vcf | sort --unique) <(grep --no-filename ^FN: ~/contacts/*.vcf | sort --unique) # compare vcard names
comm -23 --nocheck-order <(alias -p) <(bash -lc 'alias -p') # list session aliases
./configure --help | less # packaging
./configure # packaging
convert -density 150 -quality 100 input.pdf output.jpg # graphics extract image
convert ./*.jpg output.pdf # graphics combine image
convert ./name-*.gif name-%04d.png # format number graphics
count . # filesystem
cp --archive dir target # recursive owner permissions
cp file{,.orig} # filesystem
cppcheck foo.c # lint c code
createdb --template template0 --username username dbname # postgresql
cronlist
cronlist --help
cronlist --system
cronlist --to '23:59:59'
crontab -e # edit
crontab -l # list
csplit --prefix contact- --suffix-format %02d.vcf --elide-empty-files --quiet ~/contacts.vcf '/BEGIN:VCARD/' '{*}' # split vcard file
csplit --prefix header- --suffix-format %02d.txt --elide-empty-files --quiet headers.txt '/----------------------------------------------------------/1' '{*}' # split file
csvtool col 3 test.csv # csv column
csvtool --help | less
cucumber --dry-run # rails
cucumber # rails
cucumber --version # rails
curl https://aur.archlinux.org/packages/tt/ttf-source-sans-pro/ttf-source-sans-pro.tar.gz | tar -zx
curl --insecure --location http://xrl.us/perlbrewinstall | bash # development perl
curl --version
cut --delimiter ':' --fields 1 /etc/group | sort
date --date="2001-09-09 03:46:40+02:00" +%s # convert timestamp
date --date="6 months ago" # past time
date --date="6 months" # future time
date --date="Friday" # today future midnight
date --date="Monday" # today future midnight
date --date="now" # time
date --date="Saturday" # today future midnight
date --date="Sunday" # today future midnight
date --date="Thursday" # today future midnight
date --date="Tuesday" # today future midnight
date --date="Wednesday" # today future midnight
date --date="yesterday" # time
date +%FT%T.%N # iso time
date --rfc-3339=ns --date="2001-02-03T04:05:06.7 + 1 year 2 months 3 days 4 hours 5 minutes 6.7 seconds" # dst time iso
date --rfc-3339=seconds --date="@1000000000" # convert timestamp
date +%Y-%m-%dT%H:%M:%S # iso time
dd if=/dev/null of=/file/to/truncate seek=1 bs=1024 # truncate file bytes
dd if=/dev/urandom bs=1kB count=1 | ent # calculate entropy
dd if=/dev/zero of="${sandbox}/zeros.bin" bs=1000 count=5 # create file size
deactivate # virtualenv
declare -a # arrays
declare -f function_name # function definition
declare -F # functions
declare -p # color variables functions
declare # variables functions
deluge & # bittorrent gui
~/dev/awmtt/awmtt start --config ~/.config/awesome/rc.lua # debug awesome configuration
~/dev/awmtt/awmtt stop # debug awesome configuration
~/dev/meta2jpeg/meta2jpeg.sh *.CR2 # copy metadata graphics image
~/dev/minecraft-scripts/backup.sh # game directory
~/dev/minecraft-scripts/backup.sh ~/.techniclauncher # game directory
~/dev/minecraft-scripts/install-lwjgl.sh
~/dev/minecraft-scripts/install-Minecraft.sh # game
~/dev/minecraft-scripts/install-Minecraft.sh -o 1.4.6 # game old version
~/dev/schemaspy2svg/schemaspy2svg.sh ~/db # database graphics convert svg
~/dev/tilde/scripts/make-links.sh --verbose --diff meld ~/settings/.* ~ # filesystem symlink
~/dev/vcard/format-TEL.sh ~/contacts/*.vcf # format telephone number vcard
~/dev/vcard/sort-lines.sh ~/dev/vcard/sorts/Gmail.re ~/contacts/*.vcf # sort vcard files
~/dev/vcard/split.sh ~/contacts/*.vcf # split vcard files
~/dev/xterm-color-count/xterm-color-count.sh -v # xterm color
~/dev/xterm-color-count/xterm-color-count.sh # xterm color
df --human-readable . # filesystem current directory
df --human-readable # filesystem list all
! df --portability | awk '{print $5}' | grep --fixed-strings --line-regexp --quiet '100%' # disk space available
df --portability . | tail --lines 1 | cut --delimiter ' ' --fields 1 | grep --fixed-strings --invert-match --line-regexp --regexp '-' # directory partition
difff --help
diff <(git diff --staged --minimal) <(~/bin/git diff --staged --minimal) # test option
diff --unified file{.orig,} # files
diff --unified <(hexdump -C /bin/uname) <(hexdump -C /usr/bin/arch)
diff --unified <(printf %s $'--$`!*@\a\b\E\f\r\t\v\\\'"\360\240\202\211 \n' | uniname -bcp) <(bash -c 'trap -- $'\''printf %s --\$\`!*@\ \\\\\\\'\''\\"𠂉\ $\'\''\\n\'\'''\'' INT; traps="$(trap)"; eval "$traps"; kill -INT $$' | uniname -bcp) # test
diff --unified <(sudo sh -c env | sort) <(sudo -i sh -c env | sort) # environment variables root login shell
dig example.org # dns lookup internet network
dig example.org mx # dns email lookup internet network
digikam & # photo manager
dirname -- "$PWD" # parent directory
disown # job
dmesg | less # debug os startup
dos2unix test.txt # convert newline
dot -O -Tsvg ./*.dot # graphics
dot -Tsvg graph.dot # graphics
dotty graph.dot # graphics
dot -V
dropdb --username username dbname # postgresql
du --si --summarize . # disk size
echo 0 61 62 63 | xxd -revert # hex dump convert string character byte
echo $BASHPID # shell subshell pid
echo "body" > ~/.events/summary # notify
echo "${COLUMNS}x${LINES}" # terminal size dimensions
(echo 'ctrl_interface=/var/run/wpa_supplicant' && wpa_passphrase ssid passphrase) | sudo tee /etc/wpa_supplicant.conf # configuration wireless network wpa supplicant
echo $? # exit code
echo 'LC_PAPER="en_GB.UTF-8"' | sudo tee --append /etc/environment # print
echo "$OSTYPE"
echo "${paths[0]}" # array
echo "${paths[@]: -1}" # array
echo "${paths[@]}" # array
echo "$PATH" | tr ':' $'\n' # user path
echo "${PIPESTATUS[@]}" | tr --squeeze-repeats ' ' + | bc # array sum
echo "$PROMPT_COMMAND" # shell
echo "$REPLY" # read
echo return _VERSION | awesome-client # lua version
echo $$ # shell pid
echo "$TERM" # shell
echo 'test foo test bar test' | grep --only-matching test | wc --lines # count
echo "$WINEPREFIX"
eject # hardware cd dvd
enable -a # builtins
enable -n # disabled builtins
env - HOME="$HOME" LOGNAME="$USER" PATH="/usr/bin:/bin" SHELL="$(which sh)" command # emulate cron command
env --ignore-environment bash -c 'printf "%s\n" "${?+?=$?}" "${#+#=$#}" "${*+*=$*}" "${@+@=$@}" "${-+-=$-}" "${!+!=$!}" "${_+_=$_}" "${$+$=$$}"; env'
env # variable
eval `resize -s 24 80` # terminal
eval `ssh-agent` && ssh-add
eval "$traps" # signal
evince /usr/share/doc/gnu-standards/maintain.pdf.gz # help maintenance
evince /usr/share/doc/gnu-standards/standards.pdf.gz # help
evince /usr/share/doc/msort/msort.pdf.gz & # help
evince /usr/share/doc/quilt/quilt.pdf.gz # help
ex -c '1' -c '?^[[:space:]]*[^[:space:]#]?' -c $'a\n# New comment' -c 'wq' ~/.bashrc # insert after last match
exec $SHELL # replace
exit
exiv2 print IMG_1234.exv # metadata
expand --tabs=4 test.txt # convert tab space
facter # hardware os
facter --help
facter id # user
fc # edit command history
fc -l # list commands history
fc -s # execute last command history
feh --auto-zoom --scale-down --recursive . # images viewer resize
feh --fullscreen --hide-pointer ./* # images viewer
ffmpeg -i %04d.jpg -vcodec libx264 -bf 0 -crf 12 -vpre medium -an -r 25 -s hd1080 timelapse.mp4 # video convert
ffmpeg -i %04d.jpg -vcodec libx264 -bf 0 -crf 12 -vpre medium -an -r 25 -s hd1080 -vf "transpose=2" timelapse.mp4 # video convert rotate
fg # foreground job
fgit gc -- ~/*/.git/.. ~/.*/.git/.. ~/dev/*/.git/.. /media/$USER/*/*/.git/..
fgit --help
fgit pull -- ~/*/.git/.. ~/.*/.git/.. ~/dev/*/.git/.. /media/$USER/*/*/.git/..
fgit push -- ~/*/.git/.. ~/.*/.git/.. ~/dev/*/.git/..
fgit status -- ~/*/.git/.. ~/.*/.git/.. ~/dev/*/.git/.. /media/$USER/*/*/.git/..
file README.markdown
find . -empty
find . -empty -delete # remove files
find . -exec printf '%s\0' {} + | while read -r -d ''; do printf %q "$REPLY"; printf '\n'; done
find . -group 1000 -exec chgrp $(id --group) {} + # update files permissions
find -L . -type l # broken symlinks
find . -mindepth 1 -exec printf '%s\0' {} + | shuf --head-count 10 --zero-terminated # random shuffle files
find . -mindepth 1 -exec printf x \; | wc -c # count files posix safe
find . -name '*.marks' -delete # remove jedit temp files
find . -path ./.git -prune -o \( -type f -exec grep --files-with-matches $'\t' {} + \) # exclude vcs directories tab files
find /proc -regex '/proc/[0-9].*' -prune -o -print # not process number
find . -regex '.*\.\(orig$\|\(BACKUP\|BASE\|LOCAL\|REMOTE\)\..*\)' -delete # remove git rebase temp files
find . -type f -executable # files
find . -type f -name '*.*' | sed -e 's/.*\.//' | sort | uniq --count | sort --general-numeric-sort # file extensions count
find -version
firefox -no-remote -P secondary &
firefox -profilemanager & # config
firefox -safe-mode &
firefox /tmp/xterm-screenshot.*.html
firefox /usr/share/doc/c-cpp-reference/html/C/cref.html # help c dev
firefox /usr/share/doc/c-cpp-reference/html/CPLUSPLUS/cref.html # help c++ cpp dev
firefox /usr/share/doc/debian-policy/policy.html/index.html # packaging linux dev
firefox /usr/share/doc/developers-reference/index.html # packaging linux dev
firefox /usr/share/doc/git-doc/index.html # dev help
firefox /usr/share/doc/ipython/html/index.html # dev help
firefox /usr/share/doc/maint-guide/html/index.en.html # packaging linux dev help
firefox /usr/share/doc/nethack-spoilers/gazetteer/index.html # game
firefox /usr/share/doc/ntp-doc/html/ntpq.html # help
firefox /usr/share/doc/python-doc/html/index.html # dev help
firefox /usr/share/doc/python-matplotlib-doc/html/index.html # dev help
firefox /usr/share/doc/python/python-policy.html/index.html # debian dev help
firefox /usr/share/doc/w3-recs/html/www.w3.org/TR/2003/REC-SVG11-20030114/index.html # help reference svg 2d graphics
fold --width 1 <<< foo # split characters lines
for path in ./*.jpg; do mv --verbose "$path" "$(printf "%04d" $index).jpg"; let index+=1; done; unset index
for path in ~/.minecraft/saves/*; do overviewer.py --rendermodes=smooth-lighting,smooth-night,spawn "$path" "$path"/map; done
for path in ./*.sass; do sass-convert "$path" "${path%.*}.scss"; done
for path in ./*.zip; do unzip "$file"; done # all
fortune
for vcard in ./*.vcf; do msort --bp 'BEGIN:VCARD.*?END:VCARD\r\n\r\n' --sp '^N:(.*)$' < "$vcard" > "$vcard"2; mv "$vcard"2 "$vcard"; done
free # memory
fromdos -- file # convert newline
fuseiso -p file.bin "/media/${USER}/mountpoint" # mount
fusermount -u "/media/${USER}/mountpoint" # unmount
gcc --version
gcc -Wall -o a.out foo.c # compile
gem help rdoc # ruby
gem install bundler
gem install pry pry-doc
gem list --help
gem list --local
gem rdoc --all
gem server
gem uninstall foo # remove
getconf ARG_MAX # arguments
getconf -a # system configuration
getent ahosts example.org # dns hosts internet ipv4 decimal
getent hosts example.org # dns hosts internet ipv6 hex
gethostip -d example.org # dns hosts internet ipv4 decimal
git
git add .
git add .gitignore
git add --interactive
git add LICENSE
git add Makefile
git add --patch
git add README.markdown
git add tools.mk
git bisect bad
git bisect good
git bisect reset
git bisect run ./bisect.sh
git bisect start HEAD HEAD~10
git blame 1234abcd filename # revision
git blame filename
git branch
git branch --all # list
git branch --delete topic # local
git branch --remotes
git branch --set-upstream master origin/master # track
git branch --track topic master
git checkout -b topic remotes/origin/topic # branch change create
git checkout master # branch change
git checkout . # revert
git cherry-pick HEAD@{5}
git cherry-pick master:HEAD
git clean --dry-run -d # directories
git clean --dry-run -dx # directories .gitignore
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv # install ruby
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build # install ruby
git clone git://libdivecomputer.git.sourceforge.net/gitroot/libdivecomputer/libdivecomputer
git clone --recurse-submodules https://github.com/l0b0/cronlist.deb ~/dev/cronlist-0.1 && cd ~/dev/cronlist-0.1 && git remote add upstream git://github.com/l0b0/cronlist.git && git fetch upstream && git branch upstream && wget --output-document ~/dev/cronlist_0.1.orig.tar.gz https://github.com/l0b0/cronlist/tarball/v0.1 && git-import-orig --pristine-tar ~/dev/cronlist_0.1.orig.tar.gz
git clone --recurse-submodules https://github.com/l0b0/mkgithub.git
git commit
git commit --all --message "Example"
git config diff.minimal
git config diff.minimal false
git config diff.minimal invalid
git config diff.minimal true
git config --global github.user l0b0
git config --global mergetool.prompt false
git config --list
GIT_CURL_VERBOSE=1 git pull # debug
git diff
git diff --color-words
git diff | diff-ignore-moved-lines
git diff --exit-code # check
git diff 'HEAD@{2013.04.30 08:00}' # date
git diff HEAD^ -- README.markdown
git diff --ignore-all-space
git diff --ignore-all-space --no-color | git apply --cached
git diff --ignore-space-change
git diff master origin/master
git diff origin/master..HEAD # remote
git diff --raw
git diff --staged
[[ "$(git diff --staged | grep --count ^-)" -eq "$(git diff --staged | grep --count ^+)" ]] # verify sort
git diff --staged --ignore-space-at-eol
git diff --staged --stat
git difftool old new # gui
git diff --word-diff
git fetch
git fetch && git merge FETCH_HEAD # pull
git format-patch --find-renames HEAD^
git gc # garbage collect
git grep -I --name-only --null -e '' | xargs --null sed --in-place 's/[ \t]\+\(\r\?\)$/\1/;$a\' -- # whitespace eol eof
git gui &
git help add
git help bisect
git help blame
git help branch
git help checkout
git help cherry-pick
git help clean
git help clone
git help commit
git help config
git help diff
git help difftool
git help fetch
git help format-patch
git help gc # garbage collection
git help grep
git help gui
git help help
git help ignore
git help init
git help instaweb
git help log
git help ls-tree
git help merge
git help mergetool
git help mv
git help pull
git help push
git help rebase
git help reflog
git help remote
git help request-pull
git help reset
git help revert
git help show
git help stash
git help status
git help submodule
git help tag
git init
git instaweb start
git instaweb stop
gitk --all . & # gui
git log
git log --after '2012-01-20 17:06' --before '2012-04-03 16:15' # date range
git log Makefile
git log --oneline --decorate
git log origin/master..HEAD # remote
git log --patch-with-stat
git log --stat
git ls-tree --long HEAD ./* | awk '{print $4 " " $5}' # file size commit
git merge --abort # cancel revert
git merge origin/master
git mergetool &
git merge topic # local branch
git mv README{,.markdown}
git pull
git pull origin master
git push
git push --force
git push origin :dead-branch # delete remote branch
git push origin :refs/tags/name # delete remote
git push --set-upstream origin master
git push --tags
git rebase --abort
git rebase --continue
git rebase --interactive HEAD~20
git rebase master
git reflog
git reflog show --patch-with-stat
git remote add -f origin ssh://[email protected]/home/user/repo
git remote --verbose # list
git reset --soft HEAD~1 # commit undo
git reset v0.1
git revert 123abc # commit undo
git show commit:./path > path.old
git stash drop stash@{0} # delete
git stash && git merge origin/master && git stash pop
git stash && git pull && git stash pop
git stash && git rebase --interactive HEAD~20
git stash list --date=local
git stash list --patch # diff
git stash --patch # diff create
git stash pop
git stash pop stash@{1}
git stash save --keep-index "message"
git stash save "message"
git stash save --patch "message" # diff create
git stash show
git stash show --patch # diff
git stash show --patch stash@{1} # diff
gitstats ~/dev/tilde ~/gitstats && x-www-browser ~/gitstats/index.html # statistics history repo
git status
git submodule add --force git://github.com/l0b0/make-includes.git
git submodule add --force git://github.com/l0b0/shell-includes.git
git submodule update --init
git tag --delete name # local
git tag v0.1
git --version
gksudo etherape & # network traffic visualization
gksudo java -jar jdivelog-installer-*.jar &
gksudo nm-connection-editor & # network configuration
gksudo wifi-radar &
glabels & # graphics
glc-capture --out recording.glc minecraft
glc-play recording.glc
glc-play recording.glc -a 1 -o recording.wav # audio
glc-play recording.glc -y 1 -o - | mencoder -demuxer y4m - -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=3000 -audiofile recording.wav -oac mp3lame -o recording.avi # video encoding mp4 mpeg4
glxgears # 3d graphics benchmark
glxinfo
gpg --allow-secret-key-import --import ~/secring.gpg
gpg --import ~/pubring.gpg
gpg --keyserver keys.gnupg.net --recv-keys 55D0C732 # import pgp signature
gpg --verify ./*.sig # pgp signature
grep '\(\b\|^\)command\b.* .*help' ~/.bash_history # search
grep --files-with-matches --null --regexp "pattern1" ./* | xargs -0 grep --files-with-matches --regexp "pattern2" # search and patterns
grep --files-with-matches --null --regexp "pattern" ./* 2>/dev/null | tr --complement --delete '\000' | wc --chars # count occurrences pattern
grep --fixed-strings --recursive --exclude-dir .git --regexp 'foo' . # search literal source
grep --invert-match --file ~/dev/vcard/sorts/Gmail.re < ~/contacts.vcf | grep --invert-match --regexp '^ '
(grep --invert-match '^nameserver' /etc/resolv.conf; echo nameserver 208.67.222.222; echo nameserver 208.67.220.220) | sudo tee /etc/resolv.conf # dns configuration
grep --quiet "^flags.*\blm\b" /proc/cpuinfo # 64 bit long mode
grep --recursive --no-filename --only-matching 'foo' . | wc --lines # sum count search
grep --regexp ^ --regexp "^$USER:" /etc/passwd # context highlight
grep ":$USER\$" /etc/group
grep "^$USER:" /etc/passwd # password
grep --version
groups
groups nobody
groups "$USER"
guard
guard --group functional:controller # test
guard --group unit:decorator
guard --group unit:model
guard help
guard list
guard show
gunzip example.gz
gzip example.txt # compress
help alias
help bg
help bind
help builtin
help command
help continue
help declare
help disown
help echo
help enable
help exit
help fc
help fg
help help
help history
help jobs
help kill
help # list all
help local
help printf
help [r]ead # read
help [s]et # set
help shift
help shopt
help . # source
help test
help [t]ime # time
help trap # signal
help [t]ype
help typeset
help ulimit
help umask
help unset
help until
help wait
history | less
host example.org # dns lookup internet network ipv4 ipv6
hostname # internet network
hostname --ip-address # internet network address dns
hostname --short # internet network
hp-setup # printer
hp-wificonfig # printer
htop
iconv --from-code=utf-8 --to-code=iso-8859-1 utf8.txt > latin1.txt # convert encoding
id --group
id # group user
id --user
id "$USER"
if [[ -r /proc/sys/kernel/ns_last_pid ]]; then while true; do while read; do if [[ "$REPLY" != "$old" ]]; then printf '%(%s)T %d\n' -1 "$REPLY"; old="$REPLY"; fi; done < /proc/sys/kernel/ns_last_pid; read -t 1 || true; done; fi # processes pids log
IFS=':' read -a paths <<< "$PATH" # tokenize array
imapfilter
indent ./*.c
indentect --help
indentect --verbose < "$(which indentect)"
indentect < "$(which indentect)"
infocmp -1 # list terminal
info --raw-escapes --subnodes autoconf | less --raw-control-chars # help
info --raw-escapes --subnodes automake | less --raw-control-chars # help
info --raw-escapes --subnodes date | less --raw-control-chars # help
info --raw-escapes --subnodes dd | less --raw-control-chars # help
info --raw-escapes --subnodes find | less --raw-control-chars # help
info --raw-escapes --subnodes ls | less --raw-control-chars # help
info --raw-escapes --subnodes mktemp | less --raw-control-chars # help examples temporary files
info --raw-escapes --subnodes sed | less --raw-control-chars # help
inkscape & # editor svg
iostat
ip addr show dev eth0 # ipv4 ipv6 device address
ip addr show # ipv4 ipv6 network address
ipcalc 0.0.0.0/0 # network
ipcalc 192.168.0.1/24 # network
ip link show down # network
ip link show up # network
ip -oneline -family inet addr show dev eth0 # ipv4 address
ip route show dev eth0 # network
ipython
irb # interactive ruby shell
iwconfig # wireless network configuration
java -classpath ~/dev/hello-world/out/production/hello-world/ hello
JAVA_HOME=~/bin/jre ~/bin/pycharm/bin/pycharm.sh & # python ide dev
java -jar ~/schemaSpy.jar -dp /usr/share/java/mysql.jar -hq -t mysql -host localhost:3306 -db database -u user -p password -o ~/db && x-www-browser file://"$HOME"/db/index.html # db visualization
java -jar ~/schemaSpy.jar -dp /usr/share/java/postgresql.jar -hq -t pgsql -host localhost:5432 -db database -s public -u user -p password -o ~/db && x-www-browser file://"$HOME"/db/index.html # db visualization
java -jar /usr/local/bin/technic-launcher-latest.jar
java -Xmx1024M -Xms512M -classpath ~/.minecraft/minecraft.jar net.minecraft.LauncherFrame
jedit -reuseview # dev editor
jhead -da2010:11:12/13:14:15-2005:01:01 ./*.jpg # adjust date time image
jobs -l # list all background
json_xs < test.json # prettify json
json_xs -t null < test.json # verify json format
keepassx &
kill -0 $! # check background process pid
killall process
kill -INT $$ # signal
kill -l # list signals
komodo &
kvm -boot d -m 512 -cdrom archlinux-*.iso # vm
kvm -hda /tmp/my.img -cdrom boot.iso -boot d # vm
l
l ~
la
la ~
lastlog # login users
ldconfig --print-cache # list all libraries
ldd $(which bash)
less /etc/issue
less /etc/passwd # password
less Makefile
less /proc/bus/input/devices
less --RAW-CONTROL-CHARS filename # color
less --raw-control-chars typescript
less /sys/class/dmi/id/product_name
less /sys/class/dmi/id/sys_vendor
less /usr/share/doc/nethack-common/Guidebook.txt.gz # help
less /var/log/auth.log
less /var/log/dmesg
less /var/log/kern.log
less /var/log/messages
less /var/log/syslog
less /var/log/Xorg.0.log
libreoffice &
/lib/udev/findkeyboards
livestreamer http://www.twitch.tv/foo high & # video web
ll
ln --symbolic -- target source
locale
locale --all-locales
localectl list-keymaps # keyboard layout list
localectl list-x11-keymap-layouts # keyboard layout list
localectl list-x11-keymap-models # keyboard list
localectl list-x11-keymap-variants us # keyboard list
locate file
lpstat -d # default printer cups
lpstat -v # list all printers cups
lsblk # list block device disk
lsb_release --all # linux version distro
lscpu # hardware architecture processor
ls --directory /proc/[^0-9]* # metadata
lshw
ls -l --all # list
ls -l --block-size 1 # list files size bytes
ls -l --directory ./*/ # list directories
ls -l --reverse # list
ls -lt /var/log/ # sort time list
lsmod # kernel modules
lsof +c 0 | grep process-name | wc --lines # count files
lsof # files
lsof -i :22 # internet port network
lsof -i tcp # internet network
lsof -p $$ # files process
lspci | grep --ignore-case audio
lsusb | grep --ignore-case cam
lyx file.lyx
m4 --version # compile dev
make 2>&1 | tee > make_compile.out~ # compile dev
make clean # dev
make # compile dev
make configure # dev
make --directory ~/dev/tilde clean
make && echo finished > ~/.events/compilation || echo failed > ~/.events/compilation
make explain 2>&1 | grep MAKE # dev
make explain-MAKE # dev
make install # dev
makepkg --syncdeps # package build tarball
make python-lint
make python-pep8
make python-pychecker
make python-pyflakes
make python-pylint
make release # dev
make test 2>&1 | tee > make_test.out~ # dev
make test # dev
make variables # dev
make variable-SHELL # dev
man 1p mv # posix help
man 1p sort # posix help
man 1p xargs # posix help
man 2 open # help
man 3 exit # help
man 3 printf # help format %d %f %s
man 5 crontab # help
man 5 passwd # help password
man 7 glob # help
man ack-grep # help
man acpid # help
man acpi_listen # help
man addgroup # help
man adduser # help
man align_image_stack # help
man alsamixer # help
man aplay # help
man apropos # help
man arandr # help
man arch # help
man arecord # help
man ascii # help
man ash # help
man asn1parse # help
man avahi-browse # help
man avconv # help
man awk # help
man basename # help
man bashdb # help
man bash # help
man bc # help
man blkid # help
man builtins # help bash
man bunzip2 # help
man cal # help
man charsets # help
man checkbashisms # help
man chfn # help
man chgrp # help
man chmod # help
man chown # help
man chroot # help
man clamtk # help
man cloc # help
man cmp # help
man comm # help
man convert # help
man cp # help
man cppcheck # help
man createdb # help postgresql
man createuser # help
man crontab # help
man csplit # help
man curl # help
man cut # help
man debhelper # help
man delgroup # help
man deluge # help
man deluser # help
man df # help
man dhclient # help
man dh_make # help
man diff # help
man dig # help
man digikam # help
man dirname # help
man dmidecode # help
man dos2unix # help
man dot # help
man dotty # help
man download-mibs # help
man dropdb # help postgresql
man dropuser # help
man dsa # help
man du # help
man eject # help
man ent # help
man env # help
man errno # help
man etherape # help
man exiv2 # help
man expand # help
man expect # help
man extundelete # help
man fakeroot # help
man fdisk # help
man feh # help
man ffmpeg # help
man file # help
man find # help
man firefox # help
man fmt # help
man fold # help
man fortune # help
man free # help
man fuseiso # help
man fusermount # help
man gcc # help
man genrsa # help
man getconf # help
man getent # help
man gethostip # help
man getopt # help
man gfortran # help
man git # help
man gitk # help
man gitstats # help
man gksudo # help
man glabels # help
man gnome-keyring-daemon # help
man gpasswd # help
man gpg # help
man grep # help
man groups # help
man gunzip # help
man head # help
man <(help2man help2man) # help
man hexdump # help
man hier # help
man history # help
man host # help
man hostname # help
man hosts # help
man htop # help
man id # help
man ifdown # help
man iftop # help
man ifup # help
man imake # help
man imapfilter_config # help
man imapfilter # help
man indent # help
man infocmp # help
man initdb # help postgresql server database
man inkscape # help
man inotify # help
man inotifywait # help
man install # help
man interfaces # help
man ionice # help
man iostat # help
man iotop # help
man ipcalc # help
man ip # help
man iptables # help
man iwconfig # help
man java # help
man jedit # help
man jhead # help
man join # help
man json_pp # help
man json_xs # help
man keepassx # help
man kill # help
man kvm # help
man ldconfig # help
man ldd # help
man ld # help
man less # help
man libreoffice # help
man lighttpd # help
man line # help
man lintian # help
man ln # help
man localectl # help
man locate # help
man logger # help
man lpadmin # help
man lpstat # help
man lsblk # help
man lsb_release # help
man lscpu # help
man lsof # help
man lynx # help
man make # help
man makepkg # help
man man # help
man markdown # help
man md5sum # help
man mencoder # help
man mkdir # help
man mkfifo # help
man mktemp # help
man mount # help
man mp3fs # help
man mutt # help
man mv # help
man nautilus # help
man ncal # help
man nc # help
man nethogs # help
man netstat # help
man NetworkManager # help
man nfs # help
man nice # help
man nl # help
man nmap # help
man nm-applet # help
man nmcli # help
man nm # help
man node # help
man notify-send # help
man nslookup # help
man ntpdate # help
man ntpd # help
man ntpq # help
man objdump # help
man od # help
man openssl # help
man pacman # help
man paperconfig # help
man passwd # help
man paste # help
man patch # help
man pbuilder # help
man pdebuild # help
man pdfimages # help
man pdfinfo # help
man pdftk # help
man pep8 # help
man perldoc # help
man perl # help
man perlrun # help
man pg_dumpall # help postgresql backup
man pg_dump # help postgresql backup
man pgrep # help
man php # help
man pidgin # help
man pidof # help
man ping # help
man pip # help
man pkcs8 # help
man pngcrush # help
man pod2man # help
man postgres # help postgresql server
man powertop # help
man ppc386 # help
man proc # help
man ps # help
man psql # help
man psql # help postgresql
man pstree # help
man pts # help
man puppet # help
man python # help
man qemu # help
man quilt # help
man rake # help
man rdesktop # help
man readelf # help
man readlink # help
man reboot # help
man recordmydesktop # help
man rename # help
man resize # help
man rm # help
man route # help
man rrdcreate # help
man rrddump # help
man rrdgraph # help
man rrdinfo # help
man rrdlast # help
man rrdtool # help
man rrdupdate # help
man rsa # help
man rsync # help
man ruby # help
man runlevel # help
man sane-find-scanner # help
man scanimage # help
man scp # help
man screen # help
man script # help
man scrot # help
man seq # help
man service # help
man setkeycodes # help
man setxkbmap # help
man sha1sum # help
man sha512sum # help
man sh # help
man showkey # help
man shred # help
man shuf # help
man shunit2 # help
man shutdown # help
man signal # help
man simple-scan # help
man sipcalc # help
man sleep # help
man sloccount # help
man snmpd # help
man snmpget # help
man snmptranslate # help
man snmpwalk # help
man sort # help
man speaker-test # help
man splint # help
man ssh-agent # help
man ssh_config # help
man ssh-copy-id # help
man sshd # help
man sshfs # help
man ssh # help
man ssh-keygen # help
man stat # help
man stdlib.h # help dev c header
man strace # help
man strfile # help
man strftime # help format string date
man stty # help
man sudoers # help
man sudo # help
man su # help
man sweethome3d # help
man synclient # help
man system-config-printer # help
man systemd-analyze # help
man tac # help
man tail # help
man tar # help
man tcpdump # help
man tee # help
man tig # help
man timedatectl # help
man time # help
man timeout # help
man tkmib # help
man tofrodos # help
man top # help
man touch # help
man tput # help
man traceroute # help
man trash # help
man tr # help
man tty # help
man udevadm # help
man umask # help