Monday, June 29, 2020
Tuesday, June 23, 2020
Run/test a generic Linux based container
To run/test a linux based container:
Ensure docker is running.
systemctl status docker
Then pull the image:
sudo docker pull quay.io/<repo name>/<image name>
Get the image id:
sudo docker images | grep <image name>
Then run the image:
docker run -it f4f4224a731c /usr/bin/bash
Here f4f4224a731c is an example image id.
There is a assumption made here that bash is installed in the linux image.
Tuesday, June 16, 2020
tmux intro - notes
tmux intro:
https://www.youtube.com/watch?v=MGN5JcpC7e0
prefix key + command
example:
CTRL B + T -> shows time
CTRL B + % -> vertical split
CTRL B + ' -> horizontal split
CTRL B + > => navigate
CTRL B + ^ => navigate
CTRL B + c -> create window
CTRL B + p -> Previous window CTRL B + b -> Next window
CTRL B + s -> list all windows/panes.
CTRL B + d -> detach
CTRL B + x -> kill
// to attach back
tmux a -t 0
### Lines for ~/.tmux.conf file to change the prefix key from CTRL+B to CTRL+A
set -g prefix C-a
bind C-a send-prefix
unbind C-b
###
Useful Tmux cheatsheet : https://tmuxcheatsheet.com/
Ctrl-b then [ then you can use your normal navigation keys to scroll around (eg. Up Arrow or PgDn). Press q to quit scroll mode.
Subscribe to:
Posts (Atom)