Skip to content

Instantly share code, notes, and snippets.

@theWhiteFox
Last active January 21, 2018 11:54
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 theWhiteFox/2966036fa8caecc3ce50 to your computer and use it in GitHub Desktop.
Save theWhiteFox/2966036fa8caecc3ce50 to your computer and use it in GitHub Desktop.
Linux Ubuntu Commands
sudo rm -r /opt/LightTable /usr/bin/lighttable #remove a program lighttable
sudo apt-get upgrade
whereis <command> - This will give you the directory of the command
ssh-add -l - Check what keys you have
pwd - Shows you what directory you’re in
/usr/local/google/home/keeganb
rm <filename> - delete a file
Rmdir <directory> to remove folder
Mv - Move?
Copying
cp <filename> <directory destination> don’t forget to start with bold section /root/GNS3/Images
cd .. - go back a directory
sudo halt, or sudo shutdown -h now - shut down machine
sudo reboot - Reboot machine
sudo -s - enter sudo
clear - clear screen
grep - search for a word in a file
grep boo /etc/passwd - this means to search for “boo” in the file passwd
Enter Root Mode - sudo -s
Create a folder - mkdir
keeganb0.dub.corp.google.com
keeganb-macbookpro.roam.corp.google.com
Terminating Processes
killall chrome
pkill chrome
kill apport - apport is a debug capture thingy, holds up the closing of crashed applications
pwd - show current directory
mkdir
rd
sudo netstat -peanut | grep ":80" - To see what applications are listening on a port
.local folder
hit ctrl+H to reveal hidden folders when in the home folder and you will see it
Wine
This command will run Packet Tracer if the .lnk file is situated on the Wine C drive in the user/keeganb/desktop location
cd /usr/local/google/home/keeganb/.wine/drive_c/users/keeganb/Desktop/
wine start CiscoPacketTracerStudent.lnk
route - show routing table
To find a file on the entire hard drive - find / -type f -name “file name”
Add a folder link to the desktop. - ln -s <folders full path> ~/desktop
// Windows subsystem for Linux
// WSL stores your Windows drives in the /mnt folder
cd /mnt/d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment