Function | Shortcut |
---|---|
New Tab | ⌘ + T |
Close Tab or Window | ⌘ + W (same as many mac apps) |
Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----- Esc ----- | |
Quick change directory: Esc + c | |
Quick change directory history: Esc + c and then Esc + h | |
Quick change directory previous entry: Esc + c and then Esc + p | |
Command line history: Esc + h | |
Command line previous command: Esc + p | |
View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
Print current working directory in command line: Esc + a | |
Switch between background command line and MC: Ctrl + o | |
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# | |
# есть большой файл логов с кучей строк типа: | |
# 10.10.2020 1.2.3.4 /index.html | |
# нужно найти последние уникальные 100 IP адресов в файлике | |
# | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$DefaultPassword = "Password2015" | |
$SecurePassword = $DefaultPassword | ConvertTo-SecureString -AsPlainText -Force | |
$UserName = "contoso\admin" | |
$SetupCredential = New-Object System.Management.Automation.PSCredential -ArgumentList $UserName, $SecurePassword | |
$SAPass = $DefaultPassword | ConvertTo-SecureString -AsPlainText -Force | |
$SAUserName = "sa" | |
$saCreds = New-Object System.Management.Automation.PSCredential -ArgumentList $SAUserName, $SAPass | |
$configdata = @{ | |
AllNodes = @( | |
@{ |