Skip to content

Instantly share code, notes, and snippets.

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

HARDWARE

uname -a

lscpu or cat /proc/cpuinfo

lspci
# cheat_sheet.org.sh
# The contents of this file are released under the GNU General Public License. Feel free to reuse the contents of this work, as long as the resultant works give proper attribution and are made publicly available under the GNU General Public License.
# Best viewed in emacs org-mode.
# Alternately, one can keep this cheat sheet handy by adding the following line to ~/.bashrc:
#
# alias cheatsheet="less ~/path_to_cheat_sheet.org.sh"
* Reference:
** Basics:

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@hvan021
hvan021 / gist:5fcc185edb5352f743a7
Created May 30, 2014 14:23
Bash keyboard shortcut
http://ss64.com/osx/syntax-bashkeyboard.html
Bash Keyboard Shortcuts
Moving the cursor:
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)
@hvan021
hvan021 / UnixTrick.md
Last active August 29, 2015 14:03
Unix Tricks

I have marked with a * those which I think are absolutely essential Items for each section are sorted by oldest to newest. Come back soon for more!

BASH

  • In bash, 'ctrl-r' searches your command history as you type
  • Input from the commandline as if it were a file by replacing 'command < file.in' with 'command <<< "some input text"'
  • '^' is a sed-like operator to replace chars from last command 'ls docs; ^docs^web^' is equal to 'ls web'. The second argument can be empty.
@hvan021
hvan021 / ArchLinuxInstallationSteps.md
Last active August 29, 2015 14:05
Arch linux installation steps
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@hvan021
hvan021 / Setup MAMP.md
Last active August 29, 2015 14:25
Setup MAMP

In terminal:

  • sudo apachectl start

  • sudo vim /etc/apache2/httpd.conf uncomment "LoadModule php5_module libexec/apache2/libphp5.so"

  • sudo apachectl restart

  • cd to Dev folder