2021-09-15 22:04:37 +03:00
2021-08-30 04:26:02 +03:00
ref
2021-09-15 21:44:51 +03:00
ref
2021-09-15 22:04:20 +03:00
2021-08-29 03:32:56 +03:00
ref
2021-09-15 21:38:08 +03:00
ref
2021-09-15 22:04:37 +03:00

BashConfig

Content

Project description

Bash config files

SSH

Create ssh key on local device

  1. ssh-keygen
  2. Save to ~/.ssh
  3. Enter passphrase
  4. Copy content of ~/.ssh/id_rsa.pub key to remote ~/.ssh/authorized_keys


Add aliases for ssh to ~/.ssh/config:

Host host_name
   HostName ip
   Port 22
   User root
   IdentityFile ~/.ssh/id_rsa


Using aliases:

ssh host_name
sftp host_name

Tips

Bash

esc + . - last object
ctrl + r - bash_history search
history -d 130 - delete 130 line
history -c - delete all history

Vim

d -> ctrl + end - delete from cursor to end of file

Description
Languages
Shell 79.6%
Lua 18.2%
Python 1.4%
Ruby 0.7%