Skip to content

Instantly share code, notes, and snippets.

View shercoder's full-sized avatar

Pardeep Singh Sanghera shercoder

View GitHub Profile
@shercoder
shercoder / gist:5992823
Last active December 19, 2015 17:38
Linux Commands

##Create public keys

  • Generate a public key
ssh-keygen -t dsa
  • Now put public key to your remote server
scp .ssh/id_dsa.pub [email protected]:
  • Install public key on remote server
@shercoder
shercoder / gist:5906915
Last active December 19, 2015 05:49
Cool linux stuff
  • Termination status of the last executed program available via a shell variable named $?
@shercoder
shercoder / gist:5647795
Last active December 17, 2015 17:39
Bash Aliases that I think are useful
# I just installed SanDisk 6Gig/s SSD in my Sony VAIO Laptop today.
# I also installed Xubuntu 13.04 on it as well. I have been
# using Ubuntu from almost a year now. I was actually kind of
# getting tired of Ubuntu, it was causing a lot of issues. And yes I
# am well aware of the fact that Xubuntu is technically Ubuntu.
# Anyways that's not why I am writing this gist. I am just creating
# this gist so I can have a reference to my bash aliases file
# and so that other's can use it as an example as well.