User Tools

Site Tools


bash:cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bash:cheat_sheet [2021/01/26 11:50] – [Command Completion] peterbash:cheat_sheet [2021/01/26 11:55] (current) – [String Operators] peter
Line 256: Line 256:
 </code> </code>
  
 +
 +----
  
 ==== Adding Timestamps ==== ==== Adding Timestamps ====
Line 264: Line 266:
 HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S " # Log with timestamps HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S " # Log with timestamps
 </code> </code>
 +
 +----
  
 ==== Easier History Navigation ==== ==== Easier History Navigation ====
  
-If you do not like Ctrl-R to nagivate the history you can define other keys as PgUp and PgDown in /etc/inputrc:+If you do not like Ctrl-R to navigate the history you can define other keys as PgUp and PgDown in /etc/inputrc:
  
 <code bash> <code bash>
Line 273: Line 277:
    "\e[6~": history-search-forward    "\e[6~": history-search-forward
 </code> </code>
 +
 +----
  
 ==== History Hardening ==== ==== History Hardening ====
Line 315: Line 321:
 wait wait
 </code> </code>
 +
 +----
  
 ==== Kill childs on exit ==== ==== Kill childs on exit ====
bash/cheat_sheet.1611661830.txt.gz · Last modified: 2021/01/26 11:50 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki