Merge pull request #285 from dufferzafar/less

Update less cheatsheet
This commit is contained in:
Chris Lane 2016-08-05 14:56:14 -04:00 committed by GitHub
commit 8c056d09e9

View file

@ -1,2 +1,9 @@
# To disable the terminal refresh when exiting # To disable the terminal refresh when exiting
less -X less -X
# To save the contents to a file
# Method 1 - Only works when the input is a pipe
s <filename>
# Method 2 - This should work whether input is a pipe or an ordinary file.
Type g or < (g or less-than) | $ (pipe then dollar) then cat > <filename> and Enter.