Skip to content

Instantly share code, notes, and snippets.

@ksferguson
Last active August 18, 2018 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksferguson/2a04c321fda5aa90b814f63d45e1e556 to your computer and use it in GitHub Desktop.
Save ksferguson/2a04c321fda5aa90b814f63d45e1e556 to your computer and use it in GitHub Desktop.
Ubuntu Cheats

Ubuntu Cheats

GPU mgmt

lspci | egrep 'VGA|3D'
cat /proc/acpi/bbswitch
sudo tee /proc/acpi/bbswitch <<< ON
lsmod | grep nvidia
modprobe nvidia
nvidiaismi 
modprobe -r nvidia
sudo tee /proc/acpi/bbswitch <<< OFF

installs

sudo dpkg -i yourfile.deb
sudo apt-get install -f

sudo apt-get update
sudo apt-get upgrade

sudo sh yourruntime.run

copy (from directory containing )

cp -avr <foldername> <newtargetfolder>
cp -avr kmlc-challenge-1-cats-vs-dogs ~/data

copy between machines

scp user@ip:filename localdir
scp paperspace@184.105.188.221:testfile.txt ~/data 

scp localfile user@ip:dirname

untar

tar -xvzf /path/to/yourfile.tgz

Window off screen

Alt-Tab or Click on Launcher Bar until the window name shows on top menu bar, then Alt-F7 to move or Alt-Space to bring up the Close - Min - Max menu from Top Menu bar

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