User Tools

Site Tools


system-and-terminal

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
system-and-terminal [2020/04/20 20:23]
Miroslav Bernát
system-and-terminal [2020/04/20 20:25] (current)
Miroslav Bernát
Line 80: Line 80:
 | **unalias** <​your_own_command>​ | cancels an alias, **-a** removes all aliases | | **unalias** <​your_own_command>​ | cancels an alias, **-a** removes all aliases |
 | **script** <​file>​ | saves everything that is displayed after executing the program on STDOUT into the specified file, **-a** appends the output into the existing file, **-c** <​command>​ saves the specified command`s output only, **Ctrl**+**d** exits the program | | **script** <​file>​ | saves everything that is displayed after executing the program on STDOUT into the specified file, **-a** appends the output into the existing file, **-c** <​command>​ saves the specified command`s output only, **Ctrl**+**d** exits the program |
-| **history** (<n>) | prints history of last //n// commandslast 1000 commands by default, **-c** clears the history, **-d** <n> clears the history entry at the specified position (line) |+| **history** (<n>) | prints history of last //n// commands ​(last 1000 commands by default), **-c** clears the history, **-d** <n> clears the history entry at the specified position (line) |
 | **fc** (<n> / <n m>) | edits last (specified) command(s) by default editor, **-e** <​editor>​ selects an editor, **-l** prints a numbered list of last executed (specified) commands, **-r** reverses the order of the commands, **-s** executes the last (specified) command from history\\ ''​$ fc -l -20 | grep cat''​\\ (prints last 20 commands containing „cat“)\\ ''​$ fc -l 210 250''​\\ (prints a list of commands in the specified range)\\ ''​$ fc -s''​ / ''​fc !!''​\\ (executes the previous command)\\ ''​$ fc -s 560''​ / ''​fc !560''​\\ (executes a specified command) | | **fc** (<n> / <n m>) | edits last (specified) command(s) by default editor, **-e** <​editor>​ selects an editor, **-l** prints a numbered list of last executed (specified) commands, **-r** reverses the order of the commands, **-s** executes the last (specified) command from history\\ ''​$ fc -l -20 | grep cat''​\\ (prints last 20 commands containing „cat“)\\ ''​$ fc -l 210 250''​\\ (prints a list of commands in the specified range)\\ ''​$ fc -s''​ / ''​fc !!''​\\ (executes the previous command)\\ ''​$ fc -s 560''​ / ''​fc !560''​\\ (executes a specified command) |
 | **clear** | clears the terminal screen | | **clear** | clears the terminal screen |