terminalforlife
15bb07c27a
Elaborate/correct wording & formatting of `ss`
5 years ago
terminalforlife
4f2627dbeb
Add header to `df`
5 years ago
terminalforlife
6493c38859
Tidy & add to the descriptions for `sudo`
5 years ago
terminalforlife
ebf2f97633
Add `colrm` file
5 years ago
terminalforlife
ade78aaafb
Mass-replace tabs with 4-width spacing
...
This seems to be the predominant choice, and matches the last commit I
just made, so I went ahead and converted them all, and changed any, -
for example, 2-space indents.
Let me know if this is undesired.
To understand why I chose to do this, please refer to the previous
commit's message.
5 years ago
terminalforlife
4df5219c66
Convert tabs to 4 spaces for consistency
...
This was probably my fault to begin with, as I'm a big fan of tabs.
My bad. It just occurred to that not only do I have my tabs set to 4
columns, but some people may have wonky formatting because of whichever
setting we have for our tabs.
5 years ago
terminalforlife
f8b7f7e3c4
Add examples of useless uses of `cat`
5 years ago
terminalforlife
beb310e2ae
Add basically a hint to a useful file in `/proc`
5 years ago
terminalforlife
489af58ee9
Add nifty Awk trick to fetch the total RAM
5 years ago
terminalforlife
6201e1c588
Add additional `printf` examples
5 years ago
terminalforlife
2d32a8369c
Tweak formatting, code, & wording
5 years ago
terminalforlife
7d524d8205
Capitalize abbreviations
5 years ago
terminalforlife
c4ea4f09d0
Tweak formatting & add another example
5 years ago
terminalforlife
05fe95ee72
Merge branch 'master' of https://github.com/chubin/cheat.sheets
5 years ago
Igor Chubin
565df5eff0
Update fdisk
5 years ago
David Haines
a8ca925b2e
adding to fdisk cheatsheet
5 years ago
terminalforlife
2ce193c0ba
Fix typos, tidy formatting, & improve writing
...
This is what late-night boredom does to you. lol
5 years ago
terminalforlife
d7473ac185
Fix trailing whitespace on all files
...
Tidy files; tidy soul!
5 years ago
terminalforlife
9bda601ca8
Tweak and add to `fdisk` and `df`
5 years ago
terminalforlife
59ac157226
Add to `_perl/1line`
5 years ago
terminalforlife
341ff5636f
Make header more accurate for `proc`
5 years ago
terminalforlife
bd0d11690d
Add `wget` file & examples
5 years ago
terminalforlife
dde9356508
Add `apt-key` file & an example
5 years ago
terminalforlife
476cf1ee98
Add additional `dpkg` examples
5 years ago
terminalforlife
74c8191b3c
Add `dpkg` and an example
5 years ago
terminalforlife
1186810822
Mention whether builtin of `printf` or not
5 years ago
terminalforlife
12331213f2
Add `printf` file with examples
5 years ago
terminalforlife
0e758e9d40
Add `cat` file and a POSIX line
5 years ago
terminalforlife
fbb1d392d5
Add additional example
5 years ago
terminalforlife
9297e1874f
Add `perldoc` file & an example
5 years ago
terminalforlife
3279f62125
Add a few more Perl examples
5 years ago
terminalforlife
56e57af09c
Add method to display terminal cols and lines
5 years ago
terminalforlife
3972687447
Remove random `sudo` instance
5 years ago
Alex Berry
15f7213025
Append, not amend.
...
intact is not hyphenated.
Newline for formatting.
5 years ago
Igor Chubin
6f9aa78d7e
Merge pull request #89 from schneiderl/master
...
emacs: fix typos
5 years ago
Igor Chubin
c9c425d37d
Merge pull request #90 from roryokane/patch-1
...
Fix indentation in Ruby cheat sheet
5 years ago
Igor Chubin
4b35ff0a27
Merge pull request #91 from alexberry/patch-1
...
Adding a few more useful examples to sed.
5 years ago
Igor Chubin
167657879b
Merge pull request #92 from terminalforlife/master
...
New Examples & `sysctl` File + Wording & Formatting Improvements
5 years ago
Tom Vincent
1ba369f630
Add a jq filter example
5 years ago
terminalforlife
c8d0c9e9c0
Tidy up and somewhat improve wording of `ssh`
5 years ago
terminalforlife
16fbc6f6eb
Improve formatting and descriptions of `git`
...
I've also maintained a column limit of 80, for smaller terminals.
Some of these description changes are superfluous, but either improve
clarity, or make things a touch more concise, I believe.
5 years ago
terminalforlife
e6da32c2b1
Show `tee` some love, for clarity and consistency
5 years ago
terminalforlife
4c5344e70c
Add example to `perl`
5 years ago
terminalforlife
cb863ec73c
Add `sysctl` file with a few examples
5 years ago
alexberry
3f48743dee
g flag is per-line, not per-file
...
Make comment clearer
5 years ago
alexberry
b2ef20e0d9
Forgot to add paths as utilised -i
...
Must add a file path when not piping to sed.
5 years ago
alexberry
b2210a9ca2
Adding a few more useful examples.
...
Sed's cheat sheet was a little light, here are a few more examples.
5 years ago
Rory O’Kane
1556ce6b1f
Fix indentation in Ruby cheat sheet
5 years ago
Lucas Gabriel Schneider
706a5e0c0c
fix typos on emacs
5 years ago
terminalforlife
7da14d62dd
Improve wording, grammar, and overall message
...
I've also corrected some syntax and cleaned up anything that was a bit
messy. I believe it's now more presentable.
5 years ago
terminalforlife
36b9feb0a2
Add pretty-print output taken from `/etc/passwd`
5 years ago
terminalforlife
524924166c
Merge branch 'master' of https://github.com/chubin/cheat.sheets
5 years ago
Petr Šťastný
a8c7a70316
Split configuration guide into multiple segments
5 years ago
Petr Šťastný
9ac8548d2a
Fixed workspace ascii visualisation
5 years ago
terminalforlife
497c345247
Merge branch 'master' of https://github.com/chubin/cheat.sheets
5 years ago
Petr Šťastný
e977e75e65
Removed empty line between sections
5 years ago
Petr Šťastný
50c8fce5bd
Changed meta key symbol and added configuration guide
5 years ago
terminalforlife
e2b22d476b
Address empty line issue mentioned in #83 PR
...
Had to remove the empty line else it would mess with the search
feature. I didn't realise these sheets are parsed.
5 years ago
Petr Šťastný
1b0728ca42
Added guide to precise new window positioning
5 years ago
Petr Šťastný
a14798aab4
Added most useful i3 keybindings
5 years ago
terminalforlife
09e06fc821
Add syntax for fetching lines between patterns
5 years ago
terminalforlife
187916318f
Tweaked comments and added alternative
5 years ago
Igor Chubin
7c88ba98f0
moved _scala/:main to _scala/_info.yaml ( fixes #84 )
5 years ago
terminalforlife
0b61d3884e
Fetch unique list of uppercase-only variables
...
Just wrote this because I'm wanting to convert numerous uppercase
variables in lots of shell programs to lowercase, except the initial
letter of a word. Manually, doing this would take forever.
First, however, I need to compile a list of variable names so I know
for what I want to search and replace, then omit certain ones typically
named in all uppercase, like `UID`, `USER`, `HOSTNAME`, etc, which I
will probably do by parsing `env` and various other special parameters
used by Bash.
Fun times.
5 years ago
terminalforlife
0ab091a8cd
Add alternative approach to parsing `xev`
5 years ago
terminalforlife
81711828bc
Add more examples using associate array variables
5 years ago
terminalforlife
6e507588ec
Prefer `grep -[EF]` over deprecated `[ef]grep`
5 years ago
terminalforlife
cd41a3e2ca
Add line to list out available sections
5 years ago
terminalforlife
9c6e04b5c0
Add line to list unique DEB sections, using awk
5 years ago
terminalforlife
c08786cb0e
Added alternative syntax for easier reading
5 years ago
terminalforlife
25f4ef1390
Add examples for `dpkg-deb`
5 years ago
terminalforlife
2c2a1f4fb6
Add file 'dpkg-deb'
5 years ago
terminalforlife
e699f7c298
Add two examples for `apt-cache`
5 years ago
terminalforlife
a388ee6534
Add file 'apt-cache'
5 years ago
terminalforlife
6955dd2709
Add extra information on source
5 years ago
terminalforlife
b83d187fee
Add file 'source', and briefly show its usage
5 years ago
terminalforlife
2e4f7be1b8
Add examples and detailed explanation of `umask`
5 years ago
terminalforlife
be76804476
Add file 'umask'
5 years ago
terminalforlife
9feb9d7ddf
Add a multitude of examples for apt-get
5 years ago
terminalforlife
4a67b1d9ad
Add file 'apt-get'
5 years ago
terminalforlife
27c86e12f5
Add a number of examples for udisksctl
5 years ago
terminalforlife
f5ec296286
Add 'udisksctl' file
5 years ago
terminalforlife
cddd2c0e11
List executable files found in PATH
...
Many uses for this!
Say you install a large set of updates, so want to cross-check the old
list to the new one, in order to find out which new executables were
installed.
Or, perhaps less obscure, you might this list, without the `-printf`
part, to check their permission and ownership settings.
5 years ago
terminalforlife
a7e9bd13e1
Add 'nl' file and show basic example
...
Interestingly -- to me, at least, `nl` by default will only number
non-empty lines (coreutils v8.25), whereas `cat` will show all.
5 years ago
terminalforlife
f04907ea0d
Add examples and clean up existing ones
...
The examples given using xargs are so far mostly never or rarely ever
best used or even well used with xargs, such as with find, which is
popular, unfortunately.
My reason for adding counters to some of these examples, is that, as an
educational resource, I believe it's important users understand what is
and is _not_ good practice; this is, at least, how I taught myself.
5 years ago
terminalforlife
76109ca8cd
Add 'sed' and give example of in-place changes
...
The `-i` flag with `sed` means "in-place", if you're curious; the use
thereof allows for making actual changes to the file, not just
superfluously, such as for additional parsing.
The `s///` is a simple substitution, wherein the `s` marks that it's a
substitution, the `/` marks the boundaries*, and the final boundary can
be suffixed with various flags, such as `g`, for global operations, -
and `i`, for case-insensitive operations.
* required, but the slash can switched for something else, if needed, -
such as `|`, which is commonly used for paths. For example:
`s|/path/to/file|/path/file|`
5 years ago
terminalforlife
8af39f5168
Merge with upstream master
5 years ago
terminalforlife
69bbce3d28
Add vignette and grayscale example
...
I mostly use this sort of thing to create backgrounds which seem to go
nicely with my terminal theme and layout. Works well on nature images.
5 years ago
terminalforlife
0f22053f54
Fix and clean code and comments
...
The for loop was problematic for numerous reasons my headache won't
allow me to list. I've optimized it, while hoping to maintain the point
for which it was submitted.
A couple of typos were fixed; nothing major.
5 years ago
Igor Chubin
2a42d6b73d
Merge pull request #79 from terminalforlife/master
...
A Few Additional Code Lines (Likely More to Come)
5 years ago
Igor Chubin
3bb0fbb1c8
Added missing /
5 years ago
Nic Acton
6530225403
sheet for /proc pseudo-directory
...
Feel like there's good use. There's a `man proc` so this can do that as well.
5 years ago
terminalforlife
86007dd5db
Delete extension-specific files using logic
...
This was taken from my own notes amassed over several years. Commands
like these are a real time-saver.
A lot of people, I imagine, will probably use `-exec rm {} \+` which is
fine and all, but it's another process you'd have to launch, which
isn't necessary at all, unless you need certain `rm` functionality.
5 years ago
terminalforlife
8e5e9dd0a4
Minor comment cleanup, to keep it consistent
5 years ago
terminalforlife
d69a3c8e3a
Very useful when you need to test for certain permissions. I imagine
...
this would be most useful when dealing with more advanced permission
schemes.
5 years ago
terminalforlife
c12d8e2df2
Show counting lines awk reads from STDIN
...
This is useful, but not if this is _all_ you're after; in those
cases, you're better off just using `free | wc -l` or similar.
However, there may be times you need to count the number of lines in
order to achieve _other_ things programmed in awk, which would then be
crucial!
For example, you may wish to output text informing the user of how many
log entries were discovered in one or more files given to awk.
5 years ago
terminalforlife
ff4af91485
Access environment variables from within awk.
...
ENVIRON is a special associative array variable, and LS_COLORS is an
index therein. If you want to see the available variables you could
use, you could execute the trusty `env` command.
5 years ago
terminalforlife
fec416c763
Show using awk without data via STDIN
...
This is useful for those times you want to just do something in awk, -
on-the-fly, without having to rely on its standard input (STDIN).
It's especially handy when you want to perform floating-point
arithmetic, if you're not a shell like ZSH which does support it.
5 years ago
Igor Chubin
8566d86739
Merge pull request #73 from Nondv/patch-4
...
add note on ruby -l switch
5 years ago
Igor Chubin
f7f987fd68
Merge pull request #74 from Nondv/patch-5
...
[ruby][case] Add a note about ===
5 years ago
Igor Chubin
453904eb92
Merge pull request #76 from Nondv/divide-emacs
...
[emacs] move some info to separate files
5 years ago
Igor Chubin
32e18c603a
Merge pull request #77 from Nondv/patch-1
...
[ruby] merge if/else with if/elsif/else
5 years ago
Dmitry Non
d68cc4281a
delete recursion from root
...
there's theory/recursion for that
5 years ago
Dmitriy Non
32ab01e12a
remove extra empty line
5 years ago
Dmitriy Non
4cabda0a56
[ruby] merge if/else with if/elsif/else
...
No need to add extra lines to the output. Shorter is better :)
5 years ago
Dmitry Non
0dd42bed00
[emacs] move macros info to new file
5 years ago
Dmitry Non
246adf89fc
[emacs] move dired to new file
5 years ago
Dmitry Non
6ae4d1ad45
[emacs] move telnet to new file
5 years ago
Dmitriy Non
6083bca0a8
[ruby][case] Add a note about ===
...
A bit advanced but required knowledge about the magic in `case`
5 years ago
Dmitriy Non
10313bda28
add note on ruby -l switch
...
Quite a useful switch for one-liners
5 years ago
Igor Chubin
ed061663ba
Merge pull request #71 from lucis-fluxum/python3-args-kwargs
...
*args, **kwargs for python
5 years ago
Igor Chubin
fec7314c85
Merge pull request #72 from lucis-fluxum/python3-super
...
Superclass __init__ and parameters in python
5 years ago
Igor Chubin
4752f11b4c
Merge pull request #70 from lucis-fluxum/python3-threads
...
Basic multithreading for python
5 years ago
Igor Chubin
8e793c7755
Merge pull request #69 from lucis-fluxum/python3-classes
...
Basic python classes and methods
5 years ago
Luc Street
83e59ad722
Mention use of splat operator to unpack arguments
5 years ago
Luc Street
d03c115396
Basic multithreading for python
5 years ago
Luc Street
d1e103ad15
Superclass __init__ and parameters in python
5 years ago
Luc Street
e25ea979f5
*args, **kwargs for python
5 years ago
Luc Street
5a81bc7c1d
Basic python classes and methods
5 years ago
Luc Street
8b04830b56
Add python list comprehension sheet
5 years ago
Dayne Broderson
7f9c0b04dc
Create dcfldd
5 years ago
Anatoli Babenia
57156de1a3
Cheat sheet for PostgreSQL
5 years ago
Thomas Sullivan
a0a7ced9b4
synced cargo and _rust/Cargo
5 years ago
Igor Chubin
a21c2c2fdf
Merge pull request #61 from mwl/patch-1
...
Wildcards (`*`) should always be in single quotes
5 years ago
Igor Chubin
9be9095dea
Merge pull request #63 from sullivant/rust
...
Added page for Cargo package manager.
5 years ago
Igor Chubin
affa6bad69
Merge pull request #64 from angoca/master
...
More instructions for Db2
5 years ago
Andres Gomez Casanova
5026a1a373
Create sqlpl
5 years ago
Andres Gomez Casanova
536bea6d49
Update queries
5 years ago
Andres Gomez Casanova
0f69119a48
Update dml
5 years ago
Andres Gomez Casanova
dea825fcc4
Update ddl
5 years ago
Andres Gomez Casanova
b87e883de5
Update dcl
5 years ago
Igor Chubin
cdea744f8e
added sheets/_latex/_info.yaml
5 years ago
Thomas Sullivan
2600ab05ee
Added page for Cargo package manager.
5 years ago
Thomas Sullivan
cb468a8080
added latex
5 years ago
Martin Westergaard Lassen
474823fbd7
Wildcards (`*`) should always be in single quotes
...
Otherwise bash might expand with if matches are found
5 years ago
Igor Chubin
b01259c674
Merge pull request #58 from jmcguire/patch-1
...
update aspell
5 years ago
Hai Vu
30c09038ce
Fix Merge two dicts
...
The square brackets are wrong and will generates a `SyntaxError`, the correct way is to use curly brackets. I have tested this before making the update.
5 years ago
Justin McGuire
90ad9e4458
update aspell
...
fixing spell -> aspell
5 years ago
Igor Chubin
85e8e86feb
added nim support
5 years ago
Alexander Popov
16e40d1c0f
Add cheatsheet for kafka-consumer-groups cli
5 years ago
Igor Chubin
065d3151bb
Merge pull request #55 from AlexVPopov/kafka-topics
...
Add a cheat sheet for kafka-topic cli
5 years ago
Thomas
69edd93083
Added quick "check for equals" step
5 years ago
Alexander Popov
3f288b74e7
Add a cheat sheet for kafka-topic cli
5 years ago
Thomas
9cc0359b7c
updated git - added branch cheat
5 years ago
Igor Chubin
8e8730f431
Merge branch 'master' of https://github.com/chubin/cheat.sheets
5 years ago
Altynbek Isabekov
d7cfd90004
find: "-exec" example for renaming files by changing extension and preserving base name.
5 years ago
Igor Chubin
f22076391e
Merge branch 'master' of https://github.com/chubin/cheat.sheets
6 years ago
Igor Chubin
72da844ecb
Merge pull request #51 from SirFerdek/patch-1
...
ssh: add info about escape sequences
6 years ago
redroc
d37d75a41e
really remove the files
6 years ago
SirFerdek
5e78f9e43c
ssh: add info about escape sequences
...
Most useful for terminating unresponsive sessions
6 years ago