Linux / Bash Cheatsheet

Collected commands, tips, and tricks for working headless in Ubuntu


Introduction The purpose of this project is to document our implementation of ROS and teach lab members how to use it for a number of purposes specific to the activities of a robotics lab like the IDEAlab.

SSH General Reference

The most useful SSH-specific commands

GPG Reference

List gpg keys gpg –list-keys gpg –list-secret-keys prints out ids

01-Installation Notes

Introduction These notes are from memory, so they may be out of order.

Disabling Password-based SSH

Settings for hardening ssh on Ubuntu

Grep Cookbook

Using grep by itself search for “searchtext”, ignoring case, ignoring binary files, recurisvely search, with line numbers, in this folder.

Install Docker

From here Install and test sudo apt remove docker containerd runc sudo apt remove docker* sudo apt update sudo apt install -y ca-certificates curl gnupg lsb-release sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.

Remote Unlock your LUKS-encrypted Hard Drive

Updated for Ubuntu 22.04 Install Software sudo apt update sudo apt -y upgrade sudo apt install -y busybox dropbear* Create and add key

Using the find command in bash

Using the find command in bash Find all files below the current directory that match “tecmint.