Skip to content

Instantly share code, notes, and snippets.

@sanbor
Last active October 6, 2015 00:28
Show Gist options
  • Select an option

  • Save sanbor/2903983 to your computer and use it in GitHub Desktop.

Select an option

Save sanbor/2903983 to your computer and use it in GitHub Desktop.
Unix cheatsheet

Run a command as another user

runuser -l mysql -c

sudo mount -o umask=0,uid=nobody,gid=nobody /dev/something /mnt/somewhere

X port forwarding its a pain in the ass INCOMPLETE

awebb | xpra is like screen or tmux for X, with ssh or tcp support

Unpack a .tar.gz2

tar xfj file.tar.bz2 -C ~/tmp

Debian packages cheatsheet

http://www.cyberciti.biz/ref/apt-dpkg-ref.html

Command line resources

Right handed trackpad, left handed mouse

xmodmap -e "pointer = 3 2 1" xinput set-button-map "SynPS/2 Synaptics TouchPad" 3 2 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment