Skip to content

Instantly share code, notes, and snippets.

View michaelcoyote's full-sized avatar
👀
building and learning

Michael michaelcoyote

👀
building and learning
View GitHub Profile

Bash key combinations and shortcuts

The bash shell uses a library called GNU Readline that provides easy and quick CLI key combination access to bash history, screen movement and line editing commands. I've collected some of these here along with some builtin bash shortcuts for history and other functions.

Note: The command bind -p will list all the keybindings and the readline functions they call.

@michaelcoyote
michaelcoyote / Avamar_NodeInfo_Commands.txt
Created August 15, 2014 18:00
Commands to get the node serials and other info from Avamar nodes. Not a script, use wisely
# This is not a script, please paste commands direclty into a ssh/putty window.
# get the DPN status
status.dpn
# set the ssh agent keys
ssh-agent bash
@michaelcoyote
michaelcoyote / odoo_error_001.md
Created April 9, 2015 06:36
Odoo error on editing a product within sales.

Getting this error when editing a product from the "sales" page.

Using the following version of odoo installed from packages on Mint 17 (Ubuntu Trusty) Version 8.0-20150408

Odoo Server Error

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 530, in _handle_exception
@michaelcoyote
michaelcoyote / sed_GB-MB_convert.bash
Last active May 12, 2022 18:39
Dumb sed trick for converting GB/MB to bytes..
# Dumb sed trick for converting GB/MB to bytes..
# awk would be better for detail work as you can do math
sed 's/\.[0-9] GB/000000000/' Raw_Status.csv |sed 's/\.[0-9] MB/000000/' | sed 's/0\ bytes/0/' > Cooked_Status.cvs
@michaelcoyote
michaelcoyote / Bash_keys.md
Last active January 20, 2023 13:33
Bash Keyboard shortcuts

#Bash Keyboard Shortcuts

###Cursor movement:

Ctrl + a   Go to the beginning of the line (Home)
Ctrl + e   Go to the End of the line (End)
Ctrl + p   Previous command (Up arrow)
Ctrl + n   Next command (Down arrow)
Alt + b   Back (left) one word

Alt + f Forward (right) one word

@michaelcoyote
michaelcoyote / avamar_commands.txt
Created August 15, 2014 18:07
Useful Avamar cli commands for managing backups, clients, groups, policies, etc.
- Notes on avamar client configuration using command line
Generally scheduling of clients, setting retentions and datasets are done via groups (best practice).
It is recommended to work with the backup team to set up an agreed upon set of schedules, retentions and datasets
and assign these to group policies as needed.
With this in mind it is likely that you will only really need the command to list the group policies, add a client to a group and start a backup.