Skip to content

Instantly share code, notes, and snippets.

@smamran
Last active March 19, 2016 14:02
Show Gist options
  • Select an option

  • Save smamran/02ca5910fd62fd8b1b53 to your computer and use it in GitHub Desktop.

Select an option

Save smamran/02ca5910fd62fd8b1b53 to your computer and use it in GitHub Desktop.
Linux Shell Run Root Directory files from current directory

c9.io Command

  sudo cp FileWalker.java /                                        ## copy FileWalker.java file to /(root) directory.
  (cd ..; cd .. ; cd .. ; javac FileWalker.java; java FileWalker)  ## it's a subshell , which executes a list of commands from current dir
  cp libc.h /home/ubuntu/workspace/                                ## compies libc.h file to c9.io workspace
  hostname -I                                                      ## get ip address of current machine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment